Study. uk . com
  1. Home
  2. All questions
  3. Question 211

CKA study material · question 211 of 1000

A Pod cannot find the environment variables for a Service that was created after it started. Why?

  1. Only headless Services produce variables
  2. The kubelet caches variables for one hour
  3. The variables are namespaced and the Pod is in another namespace
  4. Service variables are injected only when the Pod starts
Show the answer

Answer: D. Service variables are injected only when the Pod starts

The kubelet injects Service variables at Pod start, so a later Service is missing from them; DNS has no such ordering problem.

Source: Service (Kubernetes) — Discovering services

Challenge yourself on this topic → Study as cards