proc.name
field in the event output.kubectl exec
to access the container running the program and inspect its environment variables using the command kubectl exec <pod-name> -- env
.kubectl get pods
to list all the pods in the cluster.kubectl get pod <pod_name> -o yaml > pod.yaml
to export the pod’s YAML manifest to a file.pod.yaml
file and locate the env
section under spec.containers
.kubectl apply -f pod.yaml
to apply the changes and update the pod.
kubectl get pods
or kubectl describe pod <pod_name>
.