Daily Archives: 27.03.2018
Kubectl helpful commands
k8s cheatsheet. Get all pods by label $ kubectl —kubeconfig <config file> get po -lapp=<pod name without hash> -Lversion,cfg,infra-cfg Exec into the pod $ kubectl —kubeconfig <config file> exec -it <pod name> sh Port forwarding $ kubectl —kubeconfig <config file> port-forward <pod name> <local port>:<remote port> Getting logs $ kubectl —kubeconfig <config file> logs <pod …