Get information about your Kubernetes cluster
- nlsamkariashiva
- May 30, 2024
- 1 min read
To get information about your Kubernetes cluster, you can use the `kubectl cluster-info` command. This command displays the addresses of the master and services such as the Kubernetes dashboard.
Here is the command:
kubectl cluster-infoAdditional Useful Commands
1. **Get Cluster Information (with detailed node information)**:
kubectl get nodes -o wide2. **Get Cluster Configuration Details**:
kubectl config view3. **Get All Namespaces**:
kubectl get namespaces4. **Get All Pods Across All Namespaces**:
kubectl get pods --all-namespaces5. **Get All Services Across All Namespaces**:
kubectl get services --all-namespaces6. **Describe the Cluster (provides detailed information)**:
kubectl describe nodesThese commands provide various levels of detail about the Kubernetes cluster, its nodes, and the resources running within it.




Comments