-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New production ready Helm chart #1224
base: main
Are you sure you want to change the base?
Conversation
Definitely it is a good idea to use non-root user in the containers. I'll provide a PR for that. |
Great ! Also, read-only filesystem can be nice to use. |
Another thing I thinked about, that's using a GitHub Action to bump chart version and change appVersion when a new tag is made. Like that, we don't need to set manually the image tag version when upgrading. I don't know too much about GH Actions but I found that : https://github.com/shini4i/helm-charts-updater |
21644ee
to
93115ea
Compare
@ab-smith @eric-intuitem Chart seems done. Need a review (and some tests on your side if possible). I didn't added the GitHub Actions to generate and publish the chart, if you can check to add it, it can be nice (see the previous comment) |
we'll need to explicitly mention the @Nathanael-Mtd : how is it supposed to behave? user should install pg using specific values/settings first or it will be installed automatically as a dependency? side note: helm has an annoying limitation, that can interfere with this, on |
@ab-smith Warning fixed. I added a templating file to add custom instructions to install the chart from official helm chart repo (I supposed it will be To test the build and push of the helm chart, you can use these commands :
But I think you can find an existing GH Action which can handle the release with these steps. |
candidate for 2.0.5 or 2.0.6 |
One question, do I need to disable security contexts by default due to dockerfile app user commit revert ? |
If we manage to bring back the non-root user properly before 2.0.6, no, otherwise yes and I’ll tag you accordingly ;) |
Hello @Nathanael-Mtd yes let's disable k8s security context for this one and work on it on the next releases. |
Hey there, In the meantime, I tried to dumbly deploy it with this value file:
That gave me 2 errors:
Anyway, thank you in advance ! |
@jgournet Thanks for the feedback and test, I will check tomorrow. |
7530583
to
1753a6a
Compare
@jgournet I made the changes, if you want to test it ! |
@ab-smith I added the idea to add liveness/readiness checks on chart, but I will not add now. It needs to be implemented in backend/frontend as HTTP endpoints. |
@Nathanael-Mtd : thank you ! those 2 issues have now been resolved ! However, I still have one issue though ( that I did not report previously, as I guess it's not fully related to this new helm chart): After install, I set a new superuser email+pass (via poetry run python manage.py createsuperuser ).
Either I did something wrong, or it might be related to the split of backend/frontend to separate pods ? Here's my values files:
Note: we don't use an ingress as we have istio, so we build our own ... that could be related too |
@jgournet You use the same domain name as the one set in global.domain value, for the backend and frontend ? PS : maybe it's an copy paste error, but the |
@Nathanael-Mtd : Good news, you can ignore this error => it's all good for me now ! Just one last question:
but I got:
Reading the helm chart, it seems that the tmp-data volume is created only when there is some persistence enabled, but we always try to mount it. |
@jgournet Oh wait, we should not ignore that error, because https need to be set on URLs if you want to use it but without ingress ! For the tmp-data thing, it's a mistake from my side. I added it inside a wrong conditional instruction, I will move it outside tomorrow. |
@Nathanael-Mtd : you probably have already noticed that template/_helpers.tpl needs to be changed from .Values.ingress.tls on line 73 (and in ./templates/ingress/tls-secret.yaml too) I was a bit too eager to try out the helm chart after the last commit |
@jgournet Oops yes, I forgot to do a helm lint before pushing (and my VSCode search is broken)😶 |
After discussions in #1216, I made a new "next" Helm Chart with more options to have more flexibility in Kubernetes deployments.
Many changes in comparaison of the current chart, need some reviews.
Current features progress in this new chart: