Search This Blog

Showing posts with label kuberntes cheat sheet. Show all posts
Showing posts with label kuberntes cheat sheet. Show all posts

Monday, October 28, 2024

Kubernetes cheat sheet

Below major cmdline cmds keep it handy to play in your playground easily..

kubectl get pods  ( listing of pods )
get services 
get deployments
get nodes 
kubectl get pods -o wide -A  ( all pods in all name spaces)
describe pod <podname>
describe service <sernamr>
apply -f <yaml>
delete pod <podname>
delete -f <yamlfilename>
logs <podname>
logs <podname> -c container name
-exec podname --shellname (to login)
scale deployement depname --replicas=n
expose deployment 
port-forward podname port1:port2
rollout status deployment/depname
config get-context
config use-context contxtname
config view