How to call one variable to another in value.yaml of a chart? for example, this is the value.yaml
app: "test"
count: 1
frontend:
image: "mydockerhub/$app"
replicaCount: $count
backend:
image: "mydockerhub/backend"
replicaCount: $count
Here one line 1 and 2. I am assigning values to app
and count
. Now I want to use this variable in defining frontend image and replicacount.
I know I can directly update the variables in values.yaml but the original values.yaml is quite big and complicated.
P.S I am trying to access a parameter's value into another in Value.yaml itself, not any configmap or any other file.