From a38038938612cc253c4c4c066310e87d59ee83c0 Mon Sep 17 00:00:00 2001 From: ariretiarno Date: Sun, 5 Oct 2025 22:25:33 +0700 Subject: [PATCH 1/4] ingress server --- charts/helm/checkmate/templates/server-ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/helm/checkmate/templates/server-ingress.yaml b/charts/helm/checkmate/templates/server-ingress.yaml index 0d7ca867b..6e2d0d4d6 100644 --- a/charts/helm/checkmate/templates/server-ingress.yaml +++ b/charts/helm/checkmate/templates/server-ingress.yaml @@ -22,7 +22,7 @@ spec: - host: {{ .Values.server.ingress.host }} http: paths: - - path: / + - path: /api/v1 pathType: Prefix backend: service: From 711253beb223531dc81d2b085bbc4c4de093dfb3 Mon Sep 17 00:00:00 2001 From: ariretiarno Date: Sun, 5 Oct 2025 22:36:39 +0700 Subject: [PATCH 2/4] affinity request limit --- .../helm/checkmate/templates/client-deployment.yaml | 12 ++++++++++++ .../checkmate/templates/mongodb-statefulsets.yaml | 12 ++++++++++++ .../helm/checkmate/templates/server-deployment.yaml | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/charts/helm/checkmate/templates/client-deployment.yaml b/charts/helm/checkmate/templates/client-deployment.yaml index a5d487dc8..07175b674 100644 --- a/charts/helm/checkmate/templates/client-deployment.yaml +++ b/charts/helm/checkmate/templates/client-deployment.yaml @@ -12,6 +12,14 @@ spec: labels: app: checkmate-client spec: + {{- with .Values.client.affinity }} + affinity: + {{- tpl ( . | toYaml) $ | nindent 8 }} + {{- end }} + {{- with .Values.client.tolerations }} + tolerations: + {{- tpl ( . | toYaml) $ | nindent 8 }} + {{- end }} containers: - name: client image: {{ .Values.client.image }} @@ -26,6 +34,10 @@ spec: - name: config-volume mountPath: /etc/nginx/conf.d/default.conf subPath: default.conf + {{- with .Values.client.resources }} + resources: + {{- tpl ( . | toYaml) $ | nindent 12 }} + {{- end }} volumes: - name: config-volume configMap: diff --git a/charts/helm/checkmate/templates/mongodb-statefulsets.yaml b/charts/helm/checkmate/templates/mongodb-statefulsets.yaml index 1ffd1c228..f849e4e21 100644 --- a/charts/helm/checkmate/templates/mongodb-statefulsets.yaml +++ b/charts/helm/checkmate/templates/mongodb-statefulsets.yaml @@ -12,6 +12,14 @@ spec: labels: app: checkmate-mongodb spec: + {{- with .Values.mongodb.affinity }} + affinity: + {{- tpl ( . | toYaml) $ | nindent 8 }} + {{- end }} + {{- with .Values.mongodb.tolerations }} + tolerations: + {{- tpl ( . | toYaml) $ | nindent 8 }} + {{- end }} containers: - name: mongodb image: {{ .Values.mongodb.image }} @@ -21,6 +29,10 @@ spec: volumeMounts: - name: checkmate-mongo-persistent-storage mountPath: /data/db + {{- with .Values.mongodb.resources }} + resources: + {{- tpl ( . | toYaml) $ | nindent 12 }} + {{- end }} volumeClaimTemplates: - metadata: name: checkmate-mongo-persistent-storage diff --git a/charts/helm/checkmate/templates/server-deployment.yaml b/charts/helm/checkmate/templates/server-deployment.yaml index 8c9403916..2ba045b1f 100644 --- a/charts/helm/checkmate/templates/server-deployment.yaml +++ b/charts/helm/checkmate/templates/server-deployment.yaml @@ -12,6 +12,14 @@ spec: labels: app: checkmate-server spec: + {{- with .Values.server.affinity }} + affinity: + {{- tpl ( . | toYaml) $ | nindent 8 }} + {{- end }} + {{- with .Values.server.tolerations }} + tolerations: + {{- tpl ( . | toYaml) $ | nindent 8 }} + {{- end }} containers: - name: server image: {{ .Values.server.image }} @@ -20,6 +28,10 @@ spec: envFrom: - secretRef: name: checkmate-secrets + {{- with .Values.server.resources }} + resources: + {{- tpl ( . | toYaml) $ | nindent 12 }} + {{- end }} env: - name: CLIENT_HOST value: "http://{{ .Values.client.ingress.host }}" From 7298faac2bbbf9187cb9605d44ba0432b41b473f Mon Sep 17 00:00:00 2001 From: ariretiarno Date: Sun, 5 Oct 2025 22:47:48 +0700 Subject: [PATCH 3/4] protocol --- charts/helm/checkmate/templates/client-deployment.yaml | 2 +- charts/helm/checkmate/templates/server-deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/helm/checkmate/templates/client-deployment.yaml b/charts/helm/checkmate/templates/client-deployment.yaml index 07175b674..381631ef5 100644 --- a/charts/helm/checkmate/templates/client-deployment.yaml +++ b/charts/helm/checkmate/templates/client-deployment.yaml @@ -29,7 +29,7 @@ spec: - name: UPTIME_APP_API_BASE_URL value: "{{ .Values.server.protocol }}://{{ .Values.server.ingress.host }}/api/v1" - name: UPTIME_APP_CLIENT_HOST - value: "http://{{ .Values.client.ingress.host }}" + value: "{{ .Values.client.protocol }}://{{ .Values.client.ingress.host }}" volumeMounts: - name: config-volume mountPath: /etc/nginx/conf.d/default.conf diff --git a/charts/helm/checkmate/templates/server-deployment.yaml b/charts/helm/checkmate/templates/server-deployment.yaml index 2ba045b1f..393964ccd 100644 --- a/charts/helm/checkmate/templates/server-deployment.yaml +++ b/charts/helm/checkmate/templates/server-deployment.yaml @@ -34,4 +34,4 @@ spec: {{- end }} env: - name: CLIENT_HOST - value: "http://{{ .Values.client.ingress.host }}" + value: "{{ .Values.client.protocol }}://{{ .Values.client.ingress.host }}" From 91a4911d421f941a0e4adc84110e26ee28519a48 Mon Sep 17 00:00:00 2001 From: ariretiarno Date: Sun, 5 Oct 2025 22:49:20 +0700 Subject: [PATCH 4/4] protocol --- charts/helm/checkmate/values.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/helm/checkmate/values.yaml b/charts/helm/checkmate/values.yaml index 1840cf909..0ba0051f8 100644 --- a/charts/helm/checkmate/values.yaml +++ b/charts/helm/checkmate/values.yaml @@ -1,6 +1,7 @@ client: image: ghcr.io/bluewave-labs/checkmate-client:v3.2.0 port: 80 + protocol: http ingress: enabled: true host: change_me