mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Delete all deployments when tear down cluster alive resources
This commit is contained in:
parent
75c93b4063
commit
cff87c2017
@ -170,6 +170,7 @@ function create-kubeconfig-for-federation() {
|
||||
|
||||
function tear_down_alive_resources() {
|
||||
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
|
||||
"${kubectl}" delete deployments --all || true
|
||||
"${kubectl}" delete rc --all || true
|
||||
"${kubectl}" delete pods --all || true
|
||||
"${kubectl}" delete svc --all || true
|
||||
|
Loading…
Reference in New Issue
Block a user