こんなかんじ。
#!/bin/bash pods=`kubectl get pods "-o=jsonpath={.items[*].metadata.name}"` for pod in ${pods}; do kubectl delete pods ${pod} done
こんなかんじ。
#!/bin/bash pods=`kubectl get pods "-o=jsonpath={.items[*].metadata.name}"` for pod in ${pods}; do kubectl delete pods ${pod} done