QuestionQ283

VerifiedKubernetes Fundamentals

Which command correctly uses kubectl exec to examine environment variables within a running container?

Explanation

kubectl exec executes the command placed after -- in a running container. The env command outputs that container’s environment variables; Kubernetes documentation demonstrates this as kubectl exec shell-demo -- env.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!