mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
20 lines
830 B
Bash
20 lines
830 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
export KUBECONFIG=/Users/chrisfu/dev/knoe/knoe-k3s.kubeconfig
|
|
|
|
echo "==> Switching webservice + sidekiq to Recreate strategy..." && \
|
|
kubectl -n gitea patch deployment gitlab-webservice-default \
|
|
--type=merge -p '{"spec":{"strategy":{"type":"Recreate","rollingUpdate":null}}}' && \
|
|
kubectl -n gitea patch deployment gitlab-sidekiq-all-in-1-v2 \
|
|
--type=merge -p '{"spec":{"strategy":{"type":"Recreate","rollingUpdate":null}}}' && \
|
|
echo "Done"
|
|
|
|
echo "==> Force-deleting ALL webservice+sidekiq pods so Recreate fires fresh..." && \
|
|
kubectl -n gitea delete pods \
|
|
-l 'app in (webservice,sidekiq)' \
|
|
--force --grace-period=0 --ignore-not-found 2>&1
|
|
|
|
echo "==> Waiting 30s for new pods to appear..." && \
|
|
sleep 30 && \
|
|
kubectl -n gitea get pods --no-headers | grep -E "webservice|sidekiq"
|