LAB02: Get Cluster Basic & Detailed Information
LAB02 Get Cluster Basic & Detailed Information
Lab Goals
** Prerequisites**
** PART 1: Kubeconfig & Cluster Access**
1.1 View kubeconfig file
Check the file:
Key information inside kubeconfig:
View current context:
List contexts:
Switch context:
** PART 2: Kubernetes Certificates**
List certificates:
Check certificate validity:
Check expiry:
** PART 3: Static Pods Manifest**
List static pod definitions:
Example: View API Server manifest:
** PART 4: Cluster Name & API Server Endpoint**
Get cluster name:
Get API Server endpoint:
Or from kubeconfig:
** PART 5: Configure Lens to Join the Cluster**
Steps:
** PART 6: Useful Cluster Metadata Commands**
Get nodes:
Get API server version:
Get cluster info:
View component statuses (if enabled):
Get namespaces:
Get all pods in all namespaces:
** PART 7: Inspecting Control Plane Pods**
Check control plane pods:
** PART 8: Bonus — Explore API Server Logs**
Get logs:
Last updated