mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:24:32 +00:00
- fix conf/prod/prole.cfg by replacing hardcoded /Users/chrisfu paths with /Users/chrisfu - remove injected [update.sh] log lines and stray password artifacts so config is executable - include latest pending updates across deployment config, UI/core flow, vault/network artifacts, and helper scripts
24 lines
1.1 KiB
Bash
24 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
export KUBECONFIG=/Users/chrisfu/dev/prole/prole-k3s.kubeconfig
|
|
|
|
echo "==> CR stored liveness probe:" && \
|
|
kubectl -n gitea get gitlab gitlab \
|
|
-o jsonpath='{.spec.chart.values.gitlab.webservice.livenessProbe}' 2>&1 && echo
|
|
|
|
echo "==> Patching webservice Deployment liveness probe directly..." && \
|
|
kubectl -n gitea patch deployment gitlab-webservice-default --type=json -p '[
|
|
{"op":"replace","path":"/spec/template/spec/containers/0/livenessProbe/initialDelaySeconds","value":3600},
|
|
{"op":"replace","path":"/spec/template/spec/containers/0/livenessProbe/failureThreshold","value":30}
|
|
]' 2>&1
|
|
|
|
echo "==> Patching sidekiq Deployment liveness probe directly..." && \
|
|
kubectl -n gitea patch deployment gitlab-sidekiq-all-in-1-v2 --type=json -p '[
|
|
{"op":"replace","path":"/spec/template/spec/containers/0/livenessProbe/initialDelaySeconds","value":3600},
|
|
{"op":"replace","path":"/spec/template/spec/containers/0/livenessProbe/failureThreshold","value":30}
|
|
]' 2>&1 || true
|
|
|
|
echo "==> Checking rolling update — new pods:" && \
|
|
sleep 10 && \
|
|
kubectl -n gitea get pods --no-headers | grep -E "webservice|sidekiq"
|