I have some Helm value files.
There are value.yaml
, value.dev.yaml
, value.test.yaml
, ... file.
In value.dev.yaml
:
env:
"Environment" "development"
For some parameters in value.yaml
file, I expected they override or insert them into pod parameters while deployment.
If I set up them into each value.dev.yaml
, value.test.yaml
,... it works with helm upgrade --install --set env.parameter=$variable
Now I want to define all variables in value.yaml
file and expect them insert (override) them in to pods while deployment.
In value.yaml
file :
env:
"Appconfig": "dev"
I'd like to combine them while deployment:
env:
"Environment": "development"
"Appconfig": "dev"
Apreciate your help !
CodePudding user response:
You can specify the --values
/-f
flag multiple times. The priority will be given to the last (right-most) file specified. For example, if both myvalues.yaml
and override.yaml
contained a key called 'Test', the value set in override.yaml
would take precedence:
$ helm install -f myvalues.yaml -f override.yaml myredis ./redis
- Ref Helm Install Doc