deploy.sh 329 B

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