Merge pull request #1838 from bialad/patch-1

Remove deprecated kubectl run --generator
This commit is contained in:
Noah Gorny
2021-02-24 19:06:55 +02:00
committed by GitHub

View File

@@ -18,7 +18,7 @@ function _set_pkg_aliases()
alias kcgpan='kubectl get pods --all-namespaces'
alias kcgdan='kubectl get deployments --all-namespaces'
# launches a disposable netshoot pod in the k8s cluster
alias kcnetshoot='kubectl run --generator=run-pod/v1 netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
fi
}