Avoid full-home chown on startup and add SSH startupProbe.
build-and-push / build (push) Failing after 1m37s
build-and-push / build (push) Failing after 1m37s
chown -R over a multi-GB PVC blocked sshd past liveness and risked restart loops after volume reattach.
This commit is contained in:
@@ -49,15 +49,19 @@ spec:
|
||||
limits:
|
||||
cpu: "4"
|
||||
memory: 8Gi
|
||||
# startupProbe covers slow first boot (sshd after host-key/auth setup).
|
||||
startupProbe:
|
||||
tcpSocket:
|
||||
port: ssh
|
||||
failureThreshold: 60
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: ssh
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: ssh
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
volumeMounts:
|
||||
- name: home
|
||||
|
||||
Reference in New Issue
Block a user