I am working on a Chart development, which includes Service.yaml
and Deployment.yaml
template.
Deployment POD/Containers expects an environment variable which should be the exposed NodePort of the service. So I need to inject Service Nodeport into templates/deployment.yaml
I would like to have the template engine render and create the object for Service.yaml
first, and then based on the returned/Created Service object, use the exposed Service NodePort
as a template variable in Deployment.yaml
.
Is this possible, without hard coding a Service NodePort?