Challenge - 5 Problems
Kubernetes Dashboard Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Accessing Kubernetes Dashboard Token
You run the command
kubectl -n kubernetes-dashboard get secret and see a secret named kubernetes-dashboard-token-abcde. What command will correctly display the token value for this secret?Attempts:
2 left
💡 Hint
The token is stored in base64 encoded form inside the secret's data field.
✗ Incorrect
The token is stored in the secret's data.token field encoded in base64. Using jsonpath to extract and then decoding base64 shows the token string.
🧠 Conceptual
intermediate1:30remaining
Purpose of Kubernetes Dashboard
What is the primary purpose of the Kubernetes Dashboard in a cluster?
Attempts:
2 left
💡 Hint
Think about what a dashboard usually does in software.
✗ Incorrect
The Kubernetes Dashboard is a web UI that helps users view and manage cluster resources like pods, deployments, and services.
❓ Troubleshoot
advanced2:00remaining
Dashboard Not Accessible Externally
You deployed the Kubernetes Dashboard with default settings. When trying to access it from outside the cluster, the browser cannot connect. What is the most likely reason?
Attempts:
2 left
💡 Hint
Check the service type and how it exposes the dashboard.
✗ Incorrect
By default, the dashboard service is ClusterIP, which means it is only reachable from inside the cluster. To access externally, you need to change the service type or use port forwarding.
🔀 Workflow
advanced2:30remaining
Steps to Securely Access Kubernetes Dashboard
Which sequence of steps correctly describes how to securely access the Kubernetes Dashboard from your local machine?
Attempts:
2 left
💡 Hint
Think about creating credentials before starting the proxy and then using the token to login.
✗ Incorrect
First create the service account and assign permissions, then start the proxy to securely connect, next get the token, and finally open the dashboard URL and login.
✅ Best Practice
expert3:00remaining
Best Practice for Dashboard Access in Production
What is the best practice to securely expose the Kubernetes Dashboard in a production environment?
Attempts:
2 left
💡 Hint
Think about minimizing exposure and enforcing authentication.
✗ Incorrect
Using kubectl proxy creates a secure tunnel and RBAC with tokens ensures only authorized users can access the dashboard, which is best for production security.