Kubernetes cheat sheet part 21 min read

Prabhin Prabharkaran Administrator
DevOps Engineer

He is a Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!

follow me

This the continuation from previous post , please check if you haven’t gone through that Kubernetes cheat book part-1

List the services

kubectl get svc

List Statefulset

kubectl get sts

Edit running statefulset

kubectl edit sts <statefulsetname>


Get the list of deployment

kubectl get deploy

Edit the running deployment

kubectl edit deploy <deploymentname>

Add a label to the node

kubectl label node nodename key=value

ex: kubectl label node server1 disk=hdd

List the Persistent Volume Claim

kubectl get pvc

List the Persistent Volumes

Kubectl get pv


Delete a pod


kubectl delete po podname

Create namespace

kubectl create ns <namespacename>


© 2021, Techrunnr. All rights reserved.

Questions Answered
Articles Written
Overall Points

Related posts

Leave a Reply