[PATCH] Import FTP Readiness & Liveness probe correctly configured

This commit is contained in:
Dunemask 2024-03-12 22:58:27 -06:00
parent 6efa50e86b
commit 7eaa13113e

View file

@ -6,7 +6,7 @@ env:
image: garethflowers/ftp-server image: garethflowers/ftp-server
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
livenessProbe: livenessProbe:
exec: { command: ["echo"] } exec: { command: ["/bin/sh", "-c", "netstat -a | grep -q ftp"] }
failureThreshold: 20 failureThreshold: 20
initialDelaySeconds: 0 initialDelaySeconds: 0
periodSeconds: 5 periodSeconds: 5
@ -15,7 +15,7 @@ livenessProbe:
name: changeme-name-ftp name: changeme-name-ftp
ports: [] # Programatically add all the ports for easier readability, Ports include: 20,21,40000-400009 ports: [] # Programatically add all the ports for easier readability, Ports include: 20,21,40000-400009
readinessProbe: readinessProbe:
exec: { command: ["echo"] } exec: { command: ["/bin/sh", "-c", "netstat -a | grep -q ftp"] }
failureThreshold: 20 failureThreshold: 20
initialDelaySeconds: 0 initialDelaySeconds: 0
periodSeconds: 5 periodSeconds: 5