Bird
0
0

How do you correctly override the service.port value to 8080 using the Helm CLI?

easy📝 Syntax Q3 of 15
Kubernetes - Helm Package Manager
How do you correctly override the service.port value to 8080 using the Helm CLI?
Ahelm install myapp ./chart --set service.port=8080
Bhelm install myapp ./chart --set service-port=8080
Chelm install myapp ./chart --set service_port=8080
Dhelm install myapp ./chart --set service.port:8080
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct syntax

    Helm uses dot notation for nested values in --set.
  2. Step 2: Apply correct command

    Use --set service.port=8080 to override nested port value.
  3. Final Answer:

    helm install myapp ./chart --set service.port=8080 -> Option A
  4. Quick Check:

    Dot notation for nested keys [OK]
Quick Trick: Use dot notation for nested values [OK]
Common Mistakes:
  • Using dashes or underscores instead of dots
  • Using colon instead of equals sign
  • Incorrect key naming

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes