整体增删pod
find . -type f -exec kubectl apply -f {} \;
find . -type f -exec kubectl delete -f {} \;
find /ecapp/k8s_yaml/ -type f -name "*.yaml" | xargs -n 1 echo 'kubectl apply -f'
find /ecapp/k8s_yaml/ -type f -name "*.yaml" | xargs -n 1 echo 'kubectl apply -f' | sh
find /ecapp/k8s_yaml/ -type f -name "*.yaml" | xargs -n 1 echo 'kubectl delete -f'
find /ecapp/k8s_yaml/ -type f -name "*.yaml" | xargs -n 1 echo 'kubectl delete -f' | sh