34 lines
882 B
YAML
34 lines
882 B
YAML
env:
|
|
- name: FTP_USER
|
|
value: "minecluster"
|
|
- name: FTP_PASS
|
|
value: "minecluster"
|
|
image: garethflowers/ftp-server
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
exec: { command: ["/bin/sh", "-c", "netstat -a | grep -q ftp"] }
|
|
failureThreshold: 20
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 5
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
name: changeme-name-ftp
|
|
ports: [] # Programatically add all the ports for easier readability, Ports include: 20,21,40000-400009
|
|
readinessProbe:
|
|
exec: { command: ["/bin/sh", "-c", "netstat -a | grep -q ftp"] }
|
|
failureThreshold: 20
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 5
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
stdin: true
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
tty: true
|
|
volumeMounts:
|
|
- mountPath: /home/minecluster
|
|
name: datadir
|