-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/nats] support for deploying nats with "Deployment" #13537
Conversation
Hi @guessi. Thanks for your PR. I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @tompizmor |
rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @guessi
If we're supporting two different modes: deployment and statefulset, then let's use two different manifests for each of them. It's extremely complex to understand the YAML if it's mixing configuration for the deployment and the statefulset.
Here you have an example (bitnami/minio):
https://github.com/bitnami/charts/blob/master/bitnami/minio/templates/statefulset.yaml
https://github.com/bitnami/charts/blob/master/bitnami/minio/templates/deployment-standalone.yaml
We use one manifest or the other depending on the parameter mode
(see https://github.com/bitnami/charts/tree/master/bitnami/minio#configuration)
@juan131 will do, thanks for suggestion |
Signed-off-by: guessi <guessi@gmail.com>
@juan131 rebased and merged, please take a look for the diffs, thanks |
Signed-off-by: guessi <guessi@gmail.com>
Signed-off-by: guessi <guessi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for using different manifests. Please take a look to my suggestions when you have a chance.
Signed-off-by: guessi <guessi@gmail.com>
@juan131 just update the PR, would like to have your review again, thanks. |
HI @guessi
The directory /opt/bitnami/nats/ is the "working directory" and the non-root user (1001 by default) has writing permission on that directory. See: https://github.com/bitnami/bitnami-docker-nats/blob/master/1/debian-9/Dockerfile#L12 |
…)" This reverts commit 5d1537d. See discussion at the following link: - #13537 (comment) Signed-off-by: guessi <guessi@gmail.com>
@juan131 Thanks for let me know the trick inside Dockerfile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for addressing every suggestion! I'm approving your changes.
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guessi, juan131 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* [stable/nats] support deploying nats with "Deployment" Signed-off-by: guessi <guessi@gmail.com> * [stable/nats] split statefulset/deployment with "mode" flag Signed-off-by: guessi <guessi@gmail.com> * [stable/nats] fix missing params in values-production.yaml Signed-off-by: guessi <guessi@gmail.com> * [stable/nats] enhanced resource type detection Signed-off-by: guessi <guessi@gmail.com> * Revert "[stable/nats] Update configuration path for gnatsd.conf (helm#13505)" This reverts commit 5d1537d. See discussion at the following link: - helm#13537 (comment) Signed-off-by: guessi <guessi@gmail.com>
* [stable/nats] support deploying nats with "Deployment" Signed-off-by: guessi <guessi@gmail.com> * [stable/nats] split statefulset/deployment with "mode" flag Signed-off-by: guessi <guessi@gmail.com> * [stable/nats] fix missing params in values-production.yaml Signed-off-by: guessi <guessi@gmail.com> * [stable/nats] enhanced resource type detection Signed-off-by: guessi <guessi@gmail.com> * Revert "[stable/nats] Update configuration path for gnatsd.conf (helm#13505)" This reverts commit 5d1537d. See discussion at the following link: - helm#13537 (comment) Signed-off-by: guessi <guessi@gmail.com>
What this PR does / why we need it:
Currently, nats-cluster is deploy via StatefulSets with no volume defined, also, scaling with Deployment is much more faster than StatefulSets.
Which issue this PR fixes
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[stable/chart]