This message was deleted.
# k3s
a
This message was deleted.
w
With helm you could create a different values.yaml file for each environment. We have used values.dev.yaml for instance and then based on the condition in our CICD pipeline we pass it the correct values file with the -f flag
create a base values.yaml with what stays the same in all environments then just put in the things that change in each like the ingress hosts for example or the number of replicas. You can pass more than one values file using multiple -f flags
the one that comes second replaces just the pieces that overlap
a
But that will install the chart in the server where I run that command right? 🤔
w
It will install the chart on the kubernetes cluster based on the context you have set
helm install --kube-context ~/.kube/dev.yaml -f values.dev.yaml
👍 1
You can also change context with a flag to point it at a different set of servers you want to install on
👀 1
a
Okay, I'll read more about contexts looks better approach than use ssh-pipeline-steps in my Jenkins pipeline. Thanks for the reply