Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Kubernetes Commands: kubectl get – Tutorials and Examples

Listing and Inspecting your cluster, pods, services and more.

kubectl cluster-info

review status and roles

kubectl get nodes

Additional information about each node in the cluster.

kubectl get nodes -o wide

Let’s get a list of pods…but there isn’t any running

kubectl get pods

True, but let’s get a list of system pods. A namespace is a way to group resources together.

kubectl get pods –namespace kube-system

Let’s get additional information about each pod.

kubectl get pods –namespace kube-system -o wide

Now let’s get a list of everything that’s running in all namespaces

kubectl get all –all-namespaces | more

Let’s look at the headers in each column. Name, Alias/shortnames, API Group (or where that resource is in the k8s API Path),

Is the resource in a namespace, for example StorageClass issn’t and is available to all namespaces and finally Kind…this is the object type.

kubectl api-resources | head -n 10

We can easily filter using group

kubectl api-resources | grep pod

Explain an indivdual resource in detail

kubectl explain pod | more
kubectl explain pod.spec | more
kubectl explain pod.spec.containers | more

You’ll soon find your favorite alias

kubectl get no

Let’s take a closer look at our nodes using Describe

Check out Name, Taints, Conditions, Addresses, System Info, Non-Terminated Pods, and Events

kubectl describe nodes c1-master1
kubectl describe nodes c1-node1

Ok, so now that we’re tired of typing commands out, let’s enable bash auto-complete of our kubectl commands

sudo apt-get install bash-completion
echo “source <(kubectl completion bash)” >> ~/.bashrc
source ~/.bashrc
kubectl g[tab][tab] po[tab][tab] –all[tab][tab]
kubectl -h | more
kubectl get -h | more
kubectl describe -h | more

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Kubernetes Job & CronJob Explained: API Resource, YAML Example, and Use Cases

Kubernetes Jobs and CronJobs Explained with Examples: Complete Hands-on Guide for DevOps Engineer Keywords 1. Introduction In Kubernetes, not every workload is a long-running application like a…

Read More

Kubernetes Secret Explained: Secret API Resource, YAML Example, and Use Cases

What is Kubernetes SecretsA Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key. Objects of…

Read More

Kubernetes ConfigMap Explained: API Resource, YAML Example, and Use Cases

Content of reverseproxy.conf Commands to execute to create configmap Example pod using configmap Validating configmap inside a pod Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps,…

Read More

Kubernetes Service Explained: API Resource, YAML Example, and Use Cases

In Kubernetes, a Service is an abstraction that defines a logical set of pods and a policy by which to access them. It provides a stable network…

Read More

Kubernetes Deployment Explained: API Resource, YAML Example, and Use Cases

Fearture of Kubernetes Deployment Note:ReplicaSets = Replication+Controller in the Deployment Kubernetes Deployement Strategy Type of deployment .spec.strategy specifies the strategy used to replace old Pods by new…

Read More

Kubernetes ReplicaSet Explained: API Resource, YAML Example, and Use Cases

Rajesh Kumar I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More