Search⌘ K
AI Features

View a Cluster

Explore how to use kubectl commands to view Kubernetes clusters, including listing namespaces and pods, inspecting resource YAML, and accessing application logs. This lesson helps you verify deployments and gain essential insights for managing your Kubernetes environment efficiently.

We'll cover the following...

View a cluster

Throughout the course, we’ll install applications and then verify if it was done correctly. There are multiple ways of getting insight from a cluster. The most native and simple way is to use the kubectl command in the terminal. For example, to get a list of namespaces, we run the following command:

Shell
kubectl get namespace

The output will be as follows:

NAME                 STATUS   AGE
default              Active   20m
kube-node-lease      Active   20m
kube-public          Active   20m
kube-system          Active   20m
local-path-storage   Active   20m
...