diff --git a/deployment/deploy-yml.tmpl b/deployment/deploy-yml.tmpl index 1c234bc..a3391e8 100644 --- a/deployment/deploy-yml.tmpl +++ b/deployment/deploy-yml.tmpl @@ -32,6 +32,14 @@ spec: - name: smtp containerPort: 25 protocol: TCP + readinessProbe: + tcpSocket: + port: 25 + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + successThreshold: 1 + failureThreshold: 3 volumeMounts: - name: exim-config mountPath: /etc/exim/db @@ -66,6 +74,7 @@ metadata: name: exim-forwarder spec: type: LoadBalancer + externalTrafficPolicy: Local selector: app: exim-forwarder ports: