Comments (9)
@tomereli Applying --set
in the command line resets the previous settings to defaults. From helm help:
--reuse-values when upgrading, reuse the last release's values and merge in any overrides from the command line via --set and -f. If '--reset-values' is specified, this is ignored
Thus, your previous setting of:
--set ingress.traefik.enabled=true
If set to false after you applied the --set size=3
. To keep the previous ingress values, you need to apply the --reuse-values
to your later upgrades. So, the size upgrade would be:
helm upgrade k8ssandra-cluster-a k8ssandra/k8ssandra-cluster --set size=3 --reuse-values
That is assuming the behavior is the same as before as described better in this article:
https://medium.com/@kcatstack/understand-helm-upgrade-flags-reset-values-reuse-values-6e58ac8f127e
from k8ssandra.
@jeffbanks I think you were in process of verifying this? Could you send update to the doc or should I?
@burmanm I will take care of updating the documentation to avoid future confusion. Thanks for the additional information here to assist @tomereli.
from k8ssandra.
@jeffbanks Can you take a look at this?
from k8ssandra.
Yes, researching and reaching out to get more information regarding commands in steps 5 & 6.
from k8ssandra.
Hi @tomereli can you provide some more details for us to further investigate?
What commands did you use for the following steps:
- Scale up the cluster to 3 nodes and wait for it to be fully operational
- Scale down the cluster back to 1 node
Also, did you possibly perform two Helm upgrade commands by chance? That could be wiping out the original settings.
from k8ssandra.
Hi @tomereli can you provide some more details for us to further investigate?
What commands did you use for the following steps:
- Scale up the cluster to 3 nodes and wait for it to be fully operational
- Scale down the cluster back to 1 node
Also, did you possibly perform two Helm upgrade commands by chance? That could be wiping out the original settings.
I used helm upgrade commands to scale up and down, according to the documentation:
scale up - https://k8ssandra.io/docs/topics/provision-a-cluster/#scale-up-the-cluster
scale down - https://k8ssandra.io/docs/topics/provision-a-cluster/#scale-down-the-cluster
What do you mean that it could be wiping out the original settings?
from k8ssandra.
Thanks for providing the details. I wanted to verify that those steps didn't override something previously set. I was referring to how multiple helm upgrades or two same key assignments can override the original intention.
helm upgrade --set foo=bar --set foo=baz k8ssandra ./k8ssandra
Given this detail, I will go through your exact steps and attempt to reproduce this locally.
from k8ssandra.
@tomereli Applying
--set
in the command line resets the previous settings to defaults. From helm help:
--reuse-values when upgrading, reuse the last release's values and merge in any overrides from the command line via --set and -f. If '--reset-values' is specified, this is ignored
Thus, your previous setting of:
--set ingress.traefik.enabled=true
If set to false after you applied the
--set size=3
. To keep the previous ingress values, you need to apply the--reuse-values
to your later upgrades. So, the size upgrade would be:
helm upgrade k8ssandra-cluster-a k8ssandra/k8ssandra-cluster --set size=3 --reuse-values
That is assuming the behavior is the same as before as described better in this article:
https://medium.com/@kcatstack/understand-helm-upgrade-flags-reset-values-reuse-values-6e58ac8f127e
Well I guess this is it then - nice catch. I think it would be good to add this to the documentation, cause I guess more users may fall in this pitfall.
from k8ssandra.
@jeffbanks I think you were in process of verifying this? Could you send update to the doc or should I?
from k8ssandra.
Related Issues (20)
- Unable to connect with public ip after exposing K8ssandra with service type LoadBalancer
- getting 404 for EKS doc HOT 1
- When adding new node to an existing cluster, the new node gets deployed by K8s but stays at 1/2 forever HOT 17
- Add nodeSelector and tolerations support to cass-operator helm chart
- The search button in the K8ssandra documentation does not work HOT 1
- Warning CALL list keyspaces system_traces failed on all datacenter dc1 pods
- cass-operator chart does not allow override of certain images in values.yaml
- Need Helm chart to bring cassandra cluster as kind K8ssandraCluster for reaper and Medusa. HOT 4
- kustomize is now integrated into kubectl use this command instead
- Stargate doesn't start and it remains in CrashLoopBackoff state HOT 1
- Getting 404 for https://helm.k8ssandra.io/stable HOT 2
- How to create a single cluster with `containerd` instead of `docker` ?
- k8ssandra repair taking days to complete HOT 1
- Issue with Replication Alteration During K8ssandra v1 to K8ssandra-Operator Migration HOT 2
- cass-operator chart is missing resources
- If metrics are set to :8080, then the containerPort should be set also HOT 1
- Pull cass-operator from cr.k8ssandra.io and cr.dtsx.io
- Trying to set up ingress with nginx HOT 2
- Make it possible to disable the check for cert-manager in the Helm chart
- Certificate Request failure due to missing secret in cert-manager HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8ssandra.