大量更新

This commit is contained in:
zeaslity
2026-05-19 14:28:44 +08:00
parent a8f6bda703
commit 9fc3372fa3
5299 changed files with 423176 additions and 426690 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
kubectl scale deployment --all --replicas=0 -n uavcloud-dev
kubectl scale statefulset --all --replicas=0 -n uavcloud-dev
kubectl scale deployment --all --replicas=0 -n uavcloud-devflight
kubectl scale statefulset --all --replicas=0 -n uavcloud-devflight
kubectl scale deployment --all --replicas=0 -n uavcloud-devoperation
kubectl scale statefulset --all --replicas=0 -n uavcloud-devoperation
export name_space=uavcloud-devflight
export name_space=uavcloud-devoperation
export name_space=uavcloud-dev
kubectl delete pods -n $name_space --field-selector status.phase!=Running --force
kubectl get pods -n $name_space -o json | jq -r '.items[] | select(.status.containerStatuses[0].ready == false) | .metadata.name' | xargs -r kubectl delete pod -n $name_space --force
/var/lib/docker/containers/8380daef87f894cdc0ba98f0b528c39945f6d5c603129fe68fd7f00132d89001/8380daef87f894cdc0ba98f0b528c39945f6d5c603129fe68fd7f00132d89001-json.log