We have Azure Pipeline setup to build docker image and store to container registry in Azure. We have configured the environment variables (development, staging, and production) in our application code.
Now we have to use the Build Once, Deploy everywhere (development, staging, and production) strategy. We are using azuredeployment.yaml ( below) to deploy the docker image to Kubernetes.
- name: application-1
- containerPort: 5001
# start - service
- protocol: TCP
How can we configure the pipeline and kubectl command to pass the environment variables?