mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-09-20 14:56:10 +08:00
New: Make it posssible to configure helm probes
This commit is contained in:
parent
97b92376a0
commit
ef33ca90f7
|
@ -62,32 +62,9 @@ spec:
|
||||||
- name: smtp
|
- name: smtp
|
||||||
containerPort: 587
|
containerPort: 587
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
readinessProbe:
|
readinessProbe: {{- toYaml .Values.readinessProbe | nindent 12 }}
|
||||||
initialDelaySeconds: 5
|
livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }}
|
||||||
periodSeconds: 60
|
startupProbe: {{- toYaml .Values.startupProbe | nindent 12 }}
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- 'printf "EHLO healthcheck\n" | nc 127.0.0.1 587 | grep -qE "^220.*ESMTP Postfix"'
|
|
||||||
livenessProbe:
|
|
||||||
initialDelaySeconds: 5
|
|
||||||
periodSeconds: 5
|
|
||||||
failureThreshold: 1
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- 'ps axf | fgrep -v grep | fgrep -q "{supervisord}" && ps axf | fgrep -v grep | fgrep -q "/usr/libexec/postfix/master"'
|
|
||||||
startupProbe:
|
|
||||||
initialDelaySeconds: 2
|
|
||||||
periodSeconds: 5
|
|
||||||
failureThreshold: 12
|
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- 'ps axf | fgrep -v grep | fgrep -q "{supervisord}" && ps axf | fgrep -v grep | fgrep -q "{postfix-script}" && ps axf | fgrep -v grep | fgrep -q "{opendkim.sh}"'
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ $fullName | quote }}
|
name: {{ $fullName | quote }}
|
||||||
|
|
|
@ -70,7 +70,8 @@ container:
|
||||||
|
|
||||||
# Define data which should be stored in a Secret
|
# Define data which should be stored in a Secret
|
||||||
# (and shared with the pod as environment variables)
|
# (and shared with the pod as environment variables)
|
||||||
# secret: {}
|
# secret:
|
||||||
|
# hello: world
|
||||||
|
|
||||||
config:
|
config:
|
||||||
general: {}
|
general: {}
|
||||||
|
@ -103,3 +104,32 @@ persistence:
|
||||||
existingClaim: ""
|
existingClaim: ""
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
|
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 60
|
||||||
|
failureThreshold: 2
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- 'printf "EHLO healthcheck\n" | nc 127.0.0.1 587 | grep -qE "^220.*ESMTP Postfix"'
|
||||||
|
livenessProbe:
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 5
|
||||||
|
failureThreshold: 2
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- 'ps axf | fgrep -v grep | fgrep -q "{supervisord}" && ps axf | fgrep -v grep | fgrep -q "/usr/libexec/postfix/master"'
|
||||||
|
startupProbe:
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 5
|
||||||
|
failureThreshold: 12
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- 'ps axf | fgrep -v grep | fgrep -q "{supervisord}" && ps axf | fgrep -v grep | fgrep -q "{postfix-script}" && ps axf | fgrep -v grep | fgrep -q "{opendkim.sh}"'
|
||||||
|
|
Loading…
Reference in a new issue