- Home
- All questions
- Question 212
CKA study material · question 212 of 1000
What form do the environment variables the kubelet injects for a Service named redis-primary take?
Show the answer
Answer: D. REDIS_PRIMARY_SERVICE_HOST and REDIS_PRIMARY_SERVICE_PORT
The Service name is upper-cased with dashes turned into underscores, followed by _SERVICE_HOST and _SERVICE_PORT.
Source: Service (Kubernetes) — Environment variables