I want to understand how we could run a for loop inside kubectl exec. Currently I’m running the following and getting an error.
kubectl exec -it my-statefulset-0 -n my-namespace -- for i in {0..5}; do curl http://127.0.0.1:8080/health; done
-bash: syntax error near unexpected token `do'