top of page
nlsamkariashiva

Get information about your Kubernetes cluster

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-info

Additional Useful Commands


1. **Get Cluster Information (with detailed node information)**:


   kubectl get nodes -o wide

2. **Get Cluster Configuration Details**:

   kubectl config view

3. **Get All Namespaces**:

   kubectl get namespaces

4. **Get All Pods Across All Namespaces**:

   kubectl get pods --all-namespaces

5. **Get All Services Across All Namespaces**:

kubectl get services --all-namespaces

6. **Describe the Cluster (provides detailed information)**:

   kubectl describe nodes

These commands provide various levels of detail about the Kubernetes cluster, its nodes, and the resources running within it.

0 views0 comments

Recent Posts

See All

Comments


bottom of page