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
@@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: matrix-synapse
|
name: matrix-synapse
|
||||||
description: A Helm chart to deploy a Matrix Synapse server on Kubernetes
|
description: A Helm chart to deploy a Matrix Synapse server on Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 1.1.0+upv1.149.1
|
version: 1.2.0+upv1.149.1
|
||||||
appVersion: "v1.149.1"
|
appVersion: "v1.149.1"
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: jklein
|
- name: jklein
|
||||||
@@ -28,13 +28,31 @@ spec:
|
|||||||
subPath: nginx.conf
|
subPath: nginx.conf
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "128Mi"
|
memory: "{{ .Values.matrix.delegation.resources.limits.memory }}"
|
||||||
cpu: "250m"
|
cpu: "{{ .Values.matrix.delegation.resources.limits.cpu }}"
|
||||||
ephemeral-storage: "100Mi"
|
ephemeral-storage: "{{ .Values.matrix.delegation.resources.limits.ephemeralStorage }}"
|
||||||
requests:
|
requests:
|
||||||
memory: "64Mi"
|
memory: "{{ .Values.matrix.delegation.resources.requests.memory }}"
|
||||||
cpu: "125m"
|
cpu: "{{ .Values.matrix.delegation.resources.requests.cpu }}"
|
||||||
ephemeral-storage: "50Mi"
|
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:
|
volumes:
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
configMap:
|
configMap:
|
||||||
|
|||||||
@@ -38,8 +38,33 @@ spec:
|
|||||||
- name: http
|
- name: http
|
||||||
containerPort: 8008
|
containerPort: 8008
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
# TODO: Add liveness and readiness probes
|
readinessProbe:
|
||||||
# TODO: Add resource requests and limits
|
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:
|
volumeMounts:
|
||||||
- name: matrix-synapse-volume
|
- name: matrix-synapse-volume
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
|||||||
@@ -5,6 +5,24 @@ matrix:
|
|||||||
delegation:
|
delegation:
|
||||||
enabled: false
|
enabled: false
|
||||||
serverUrl: null
|
serverUrl: null
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "250m"
|
||||||
|
ephemeralStorage: "100Mi"
|
||||||
|
requests:
|
||||||
|
memory: "64Mi"
|
||||||
|
cpu: "125m"
|
||||||
|
ephemeralStorage: "50Mi"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "1Gi"
|
||||||
|
cpu: "1"
|
||||||
|
ephemeralStorage: "1Gi"
|
||||||
|
limits:
|
||||||
|
memory: "2Gi"
|
||||||
|
cpu: "2"
|
||||||
|
ephemeralStorage: "2Gi"
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
amount: 10Gi
|
amount: 10Gi
|
||||||
|
|||||||
Reference in new issue
Block a user