Bird
0
0

You want to access a pod's port 443 locally on port 8443 but your pod uses HTTPS with a self-signed certificate. What should you do to avoid browser security warnings?

hard📝 Application Q9 of 15
Kubernetes - kubectl Essential Commands
You want to access a pod's port 443 locally on port 8443 but your pod uses HTTPS with a self-signed certificate. What should you do to avoid browser security warnings?
ADisable TLS on the pod
BUse port-forward and configure your browser to trust the self-signed certificate
CExpose the pod port with a LoadBalancer service instead
DUse port-forward with HTTP instead of HTTPS
Step-by-Step Solution
Solution:
  1. Step 1: Understand port-forward with HTTPS

    Port-forward just tunnels traffic; HTTPS with self-signed cert causes browser warnings unless trusted.
  2. Step 2: Choose correct approach

    Configuring browser to trust the cert avoids warnings; switching to HTTP or disabling TLS reduces security; LoadBalancer is unrelated.
  3. Final Answer:

    Use port-forward and configure your browser to trust the self-signed certificate -> Option B
  4. Quick Check:

    Trust cert to avoid HTTPS warnings [OK]
Quick Trick: Trust self-signed cert in browser for HTTPS port-forward [OK]
Common Mistakes:
  • Switching to HTTP insecurely
  • Disabling TLS on pod
  • Assuming LoadBalancer fixes cert warnings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes