feat(matrix-synapse): added liveness and readiness probes, resource requests and limits
This commit is contained in:
4 files changed
+70
-9
No files matched your search
@@ -28,13 +28,31 @@ spec:
|
||||
subPath: nginx.conf
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "250m"
|
||||
ephemeral-storage: "100Mi"
|
||||
memory: "{{ .Values.matrix.delegation.resources.limits.memory }}"
|
||||
cpu: "{{ .Values.matrix.delegation.resources.limits.cpu }}"
|
||||
ephemeral-storage: "{{ .Values.matrix.delegation.resources.limits.ephemeralStorage }}"
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "125m"
|
||||
ephemeral-storage: "50Mi"
|
||||
memory: "{{ .Values.matrix.delegation.resources.requests.memory }}"
|
||||
cpu: "{{ .Values.matrix.delegation.resources.requests.cpu }}"
|
||||
ephemeral-storage: "{{ .Values.matrix.delegation.resources.requests.ephemeralStorage }}"
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
volumes:
|
||||
- name: nginx-config
|
||||
configMap:
|
||||
|
||||
@@ -38,8 +38,33 @@ spec:
|
||||
- name: http
|
||||
containerPort: 8008
|
||||
protocol: TCP
|
||||
# TODO: Add liveness and readiness probes
|
||||
# TODO: Add resource requests and limits
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
scheme: HTTP
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
resources:
|
||||
requests:
|
||||
memory: "{{ .Values.matrix.resources.requests.memory }}"
|
||||
cpu: "{{ .Values.matrix.resources.requests.cpu }}"
|
||||
ephemeral-storage: "{{ .Values.matrix.resources.requests.ephemeralStorage }}"
|
||||
limits:
|
||||
memory: "{{ .Values.matrix.resources.limits.memory }}"
|
||||
cpu: "{{ .Values.matrix.resources.limits.cpu }}"
|
||||
ephemeral-storage: "{{ .Values.matrix.resources.limits.ephemeralStorage }}"
|
||||
volumeMounts:
|
||||
- name: matrix-synapse-volume
|
||||
mountPath: /data
|
||||
|
||||
Reference in new issue
Block a user