Skip to content

Commit

Permalink
Update configuration options in RTCD probes (#408)
Browse files Browse the repository at this point in the history
* Update configuration options in probes

Signed-off-by: Stavros Foteinopoulos <[email protected]>

* bump RTCD version

Signed-off-by: Stavros Foteinopoulos <[email protected]>

---------

Signed-off-by: Stavros Foteinopoulos <[email protected]>
  • Loading branch information
stafot authored Jul 11, 2023
1 parent 05205f7 commit 3eae143
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/mattermost-rtcd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mattermost-rtcd
description: A Helm chart for Kubernetes to deploy Mattermost's RTCD
type: application
version: 1.2.1
version: 1.3.0
appVersion: latest
keywords:
- mattermost
Expand Down
9 changes: 9 additions & 0 deletions charts/mattermost-rtcd/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,19 @@ spec:
httpGet:
path: /version
port: api
initialDelaySeconds: {{ .Values.configuration.livenessProbeInitialDelaySeconds | default 30 }}
failureThreshold: {{ .Values.configuration.livenessProbeFailureThreshold | default 3 }}
periodSeconds: {{ .Values.configuration.livenessProbePeriodSeconds | default 10 }}
timeoutSeconds: {{ .Values.configuration.livenessProbeTimeoutSeconds | default 5 }}

readinessProbe:
httpGet:
path: /version
port: api
initialDelaySeconds: {{ .Values.configuration.readinessProbeInitialDelaySeconds | default 30 }}
failureThreshold: {{ .Values.configuration.readinessProbeFailureThreshold | default 3 }}
periodSeconds: {{ .Values.configuration.readinessProbePeriodSeconds | default 10 }}
timeoutSeconds: {{ .Values.configuration.readinessProbeTimeoutSeconds | default 5 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
8 changes: 8 additions & 0 deletions charts/mattermost-rtcd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,18 @@ spec:
httpGet:
path: /version
port: api
initialDelaySeconds: {{ .Values.configuration.livenessProbeInitialDelaySeconds | default 30 }}
failureThreshold: {{ .Values.configuration.livenessProbeFailureThreshold | default 3 }}
periodSeconds: {{ .Values.configuration.livenessProbePeriodSeconds | default 10 }}
timeoutSeconds: {{ .Values.configuration.livenessProbeTimeoutSeconds | default 5 }}
readinessProbe:
httpGet:
path: /version
port: api
initialDelaySeconds: {{ .Values.configuration.readinessProbeInitialDelaySeconds | default 30 }}
failureThreshold: {{ .Values.configuration.readinessProbeFailureThreshold | default 3 }}
periodSeconds: {{ .Values.configuration.readinessProbePeriodSeconds | default 10 }}
timeoutSeconds: {{ .Values.configuration.readinessProbeTimeoutSeconds | default 5 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down

0 comments on commit 3eae143

Please sign in to comment.