wildduck: improve config and add healthchecks
This commit is contained in:
@@ -184,6 +184,11 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: wildduck-mongodb
|
name: wildduck-mongodb
|
||||||
key: MONGO_URI
|
key: MONGO_URI
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 2525
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
volumes:
|
volumes:
|
||||||
- name: cert
|
- name: cert
|
||||||
secret:
|
secret:
|
||||||
|
@@ -97,6 +97,15 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /cert
|
- mountPath: /cert
|
||||||
name: 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:
|
volumes:
|
||||||
- name: cert
|
- name: cert
|
||||||
secret:
|
secret:
|
||||||
|
@@ -31,7 +31,9 @@ data:
|
|||||||
authentication = true
|
authentication = true
|
||||||
maxRecipients=100
|
maxRecipients=100
|
||||||
starttls=false
|
starttls=false
|
||||||
|
[api]
|
||||||
|
port=12080
|
||||||
|
host='0.0.0.0'
|
||||||
[plugins]
|
[plugins]
|
||||||
# @include "plugin-wildduck.toml"
|
# @include "plugin-wildduck.toml"
|
||||||
[pools]
|
[pools]
|
||||||
@@ -96,7 +98,7 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 9465
|
- containerPort: 9465
|
||||||
name: zonemta-msa
|
name: zonemta-msa
|
||||||
- containerPort: 10280
|
- containerPort: 12080
|
||||||
name: api
|
name: api
|
||||||
securityContext:
|
securityContext:
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
@@ -109,6 +111,11 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 200Mi
|
memory: 200Mi
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9465
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
env:
|
env:
|
||||||
- name: APPCONF_plugins_wildduck_srs_secret
|
- name: APPCONF_plugins_wildduck_srs_secret
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
Reference in New Issue
Block a user