Kubernetes cheat sheet part 21 min read

We need your support!!
Other Amount:
techrunnr.com:
24-Hour Flash Sale. Courses from just ₹ 490.
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>

Cheers!!

We need your support!!
Other Amount:
techrunnr.com:
#1
#2
#3
Questions Answered
Articles Written
Overall Points

Prabhin Prabharkaran

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

You may also like...

Leave a Reply