deploy.sh 308 B

1234567891011121314
  1. #!/bin/bash
  2. ./stop.sh
  3. ./start.sh
  4. kubectl get pod
  5. while ! kubectl -n default get pod test-taskmanager-1-1
  6. do
  7. sleep 1;
  8. done
  9. while ! [ $(kubectl -n default get pod test-taskmanager-1-1 -o jsonpath="{.status.phase}") == "Running" ]
  10. do
  11. sleep 1;
  12. done
  13. kubectl -n default logs --tail 20 -f test-taskmanager-1-1