diff --git a/wildduck/haraka.yaml b/wildduck/haraka.yaml index a2bcb2c..b842aac 100644 --- a/wildduck/haraka.yaml +++ b/wildduck/haraka.yaml @@ -184,6 +184,11 @@ spec: secretKeyRef: name: wildduck-mongodb key: MONGO_URI + livenessProbe: + tcpSocket: + port: 2525 + initialDelaySeconds: 30 + periodSeconds: 10 volumes: - name: cert secret: diff --git a/wildduck/wildduck.yaml b/wildduck/wildduck.yaml index 9b53456..d04537d 100644 --- a/wildduck/wildduck.yaml +++ b/wildduck/wildduck.yaml @@ -97,6 +97,15 @@ spec: volumeMounts: - mountPath: /cert name: cert + livenessProbe: + exec: + command: + - sh + - -c + - | + wget --header="Authorization: Bearer $APPCONF_api_accessToken" --quiet --spider http://127.0.0.1:8080/health || exit 1 + initialDelaySeconds: 30 + periodSeconds: 10 volumes: - name: cert secret: diff --git a/wildduck/zonemta.yaml b/wildduck/zonemta.yaml index fe314b2..24779ef 100644 --- a/wildduck/zonemta.yaml +++ b/wildduck/zonemta.yaml @@ -31,7 +31,9 @@ data: authentication = true maxRecipients=100 starttls=false - + [api] + port=12080 + host='0.0.0.0' [plugins] # @include "plugin-wildduck.toml" [pools] @@ -96,7 +98,7 @@ spec: ports: - containerPort: 9465 name: zonemta-msa - - containerPort: 10280 + - containerPort: 12080 name: api securityContext: readOnlyRootFilesystem: true @@ -109,6 +111,11 @@ spec: requests: cpu: 50m memory: 200Mi + livenessProbe: + tcpSocket: + port: 9465 + initialDelaySeconds: 30 + periodSeconds: 10 env: - name: APPCONF_plugins_wildduck_srs_secret valueFrom: