wildduck: improve config and add healthchecks
This commit is contained in:
@@ -184,6 +184,11 @@ spec:
|
||||
secretKeyRef:
|
||||
name: wildduck-mongodb
|
||||
key: MONGO_URI
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 2525
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
volumes:
|
||||
- name: cert
|
||||
secret:
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user