NG: bitwarden-cli bridge: liveness probe requires the unlocked status
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 31s
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 31s
`bw serve` can lose its login while /sync still answers; every lookup then fails with 500. The probe now also checks /status, so the pod restarts itself. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
04c35083ef
commit
b6c671bc23
1 file changed
+9
-5
@@ -62,15 +62,19 @@ spec:
|
|||||||
containerPort: 8087
|
containerPort: 8087
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
|
# Syncs the vault and requires the bridge to be logged in: `bw serve` can
|
||||||
|
# lose its login (status "unauthenticated") while /sync still answers, and
|
||||||
|
# every lookup then fails with 500. Failing the probe restarts the pod.
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- wget
|
- sh
|
||||||
- -q
|
- -c
|
||||||
- http://127.0.0.1:8087/sync
|
- >-
|
||||||
- --post-data=''
|
wget -q -O /dev/null --post-data='' http://127.0.0.1:8087/sync &&
|
||||||
|
wget -q -O - http://127.0.0.1:8087/status | grep -q '"status":"unlocked"'
|
||||||
initialDelaySeconds: 20
|
initialDelaySeconds: 20
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 10
|
||||||
periodSeconds: 120
|
periodSeconds: 120
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
|||||||
Reference in new issue
Block a user