#software #kubernetes #commands
idea
These are useful k8s commands:
- Forward local port to pod:
kubectl port-forward $(k8s-pod) $SOURCE_PORT:$DESTINATION_PORT - Stream logs from a pod
kubectl log --follow $(k8s-pod) - Log in the shell on pod
kubectl exec -it $(k8s-pod) – /bin/sh - CP from pod
kubectl cp $(k8s-pod):/PATH/ ./target.ext