Passing variables to Kubernetes manifest
Passing variables to Kubernetes manifest
When using kubectl apply, environment variables in Kubernetes manifests are not parsed. For this to happen, the envsubst command can be used.
envsubst < deployment.yml | kubectl apply -f -