czwartek, 10 października 2024

kubectl basic commands

List all pods:

kubectl get pods
kubectl get pods -n <namespace>


Show logs from last pod:

kubectl logs -n <namespace> <pod> -p


Show logs from current pod:

kubectl logs -n <namespace> <pod>
# add "-f" to follow

Brak komentarzy:

Prześlij komentarz