fix(homarr): use python:3.12-alpine + wget kubectl in probe patch Job
bitnami/kubectl:1.31 doesn't exist (Bitnami retired versioned tags in 2025). Standard pattern: python:3.12-alpine + wget kubectl binary.
This commit is contained in:
@@ -16,15 +16,18 @@ spec:
|
|||||||
serviceAccountName: homarr-probe-patcher
|
serviceAccountName: homarr-probe-patcher
|
||||||
containers:
|
containers:
|
||||||
- name: patch
|
- name: patch
|
||||||
image: bitnami/kubectl:1.31
|
image: python:3.12-alpine
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
echo "Patching Homarr deployment probes..."
|
echo "Installing kubectl..."
|
||||||
|
wget -q -O /tmp/kubectl https://dl.k8s.io/release/v1.28.0/bin/linux/amd64/kubectl
|
||||||
|
chmod +x /tmp/kubectl
|
||||||
|
|
||||||
kubectl -n dashboard patch deployment homarr --type=json -p='[
|
echo "Patching Homarr deployment probes..."
|
||||||
|
/tmp/kubectl -n dashboard patch deployment homarr --type=json -p='[
|
||||||
{
|
{
|
||||||
"op": "replace",
|
"op": "replace",
|
||||||
"path": "/spec/template/spec/containers/0/livenessProbe/initialDelaySeconds",
|
"path": "/spec/template/spec/containers/0/livenessProbe/initialDelaySeconds",
|
||||||
@@ -57,7 +60,9 @@ spec:
|
|||||||
}
|
}
|
||||||
]'
|
]'
|
||||||
|
|
||||||
echo "Probes patched successfully"
|
echo "✅ Probes patched successfully"
|
||||||
|
echo " Liveness: 60s initial, 30s period, 5s timeout"
|
||||||
|
echo " Readiness: 45s initial, 15s period, 5s timeout"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
|
|||||||
Reference in New Issue
Block a user