Kubectl helpful commands

k8s cheatsheet.

Get all pods by label

Exec into the pod

Port forwarding

Getting logs

Get replica limits from configs:

Remove pod from load balancing to debug startup errors:

Scale (up/down) pods:

More commands here — https://kubernetes.io/docs/reference/kubectl/overview/

LEAVE A COMMENT