Some kubectl shortcuts for bash automation (will be updated)

Hits: 32

Get Podname via selector in bash, for example for port-forwarding

kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name) 9000:9000

Scale to 0 all deployment in whole namespace

kubectl scale deploy -n <namespace> --replicas=0 --all