Remove deprecated kubectl run --generator
It now defaults to pod, so the --generator option is not required.pull/1838/head
parent
4607ee7452
commit
0ed6f045f6
|
|
@ -18,7 +18,7 @@ function _set_pkg_aliases()
|
||||||
alias kcgpan='kubectl get pods --all-namespaces'
|
alias kcgpan='kubectl get pods --all-namespaces'
|
||||||
alias kcgdan='kubectl get deployments --all-namespaces'
|
alias kcgdan='kubectl get deployments --all-namespaces'
|
||||||
# launches a disposable netshoot pod in the k8s cluster
|
# 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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue