This repository contains the code and resources used in the YouTube video Environment Variables in Kubernetes Part 2: Exposing Pod Information to Containers.
In this video, we will learn how to expose pod information to containers in Kubernetes. We will look at different methods of passing information from the pod to the container via environment variables.
kubectl apply -f <file-name>
kubectl get pods
kubectl logs <pod-name>
kubectl exec <pod-name> -- printenv
By the end of this video, you should have a better understanding of how to expose pod information to containers in Kubernetes.