Kubernetes equivalent of env-file in Docker
You can populate a container’s environment variables through the use of Secrets or ConfigMaps. Use Secrets when the data you are working with is sensitive (e.g. passwords), and ConfigMaps when it is not. In your Pod definition specify that the container should pull values from a Secret: apiVersion: v1 kind: Pod metadata: labels: context: docker-k8s-lab … Read more