affinity request limit

This commit is contained in:
ariretiarno committed 2025-10-05 22:36:39 +07:00
1 parent a380389386
commit 711253beb2
3 files changed
+36

No files matched your search

@@ -12,6 +12,14 @@ spec:
labels: labels:
app: checkmate-client app: checkmate-client
spec: spec:
{{- with .Values.client.affinity }}
affinity:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
{{- with .Values.client.tolerations }}
tolerations:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
containers: containers:
- name: client - name: client
image: {{ .Values.client.image }} image: {{ .Values.client.image }}
@@ -26,6 +34,10 @@ spec:
- name: config-volume - name: config-volume
mountPath: /etc/nginx/conf.d/default.conf mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf subPath: default.conf
{{- with .Values.client.resources }}
resources:
{{- tpl ( . | toYaml) $ | nindent 12 }}
{{- end }}
volumes: volumes:
- name: config-volume - name: config-volume
configMap: configMap:
@@ -12,6 +12,14 @@ spec:
labels: labels:
app: checkmate-mongodb app: checkmate-mongodb
spec: spec:
{{- with .Values.mongodb.affinity }}
affinity:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
{{- with .Values.mongodb.tolerations }}
tolerations:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
containers: containers:
- name: mongodb - name: mongodb
image: {{ .Values.mongodb.image }} image: {{ .Values.mongodb.image }}
@@ -21,6 +29,10 @@ spec:
volumeMounts: volumeMounts:
- name: checkmate-mongo-persistent-storage - name: checkmate-mongo-persistent-storage
mountPath: /data/db mountPath: /data/db
{{- with .Values.mongodb.resources }}
resources:
{{- tpl ( . | toYaml) $ | nindent 12 }}
{{- end }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: checkmate-mongo-persistent-storage name: checkmate-mongo-persistent-storage
@@ -12,6 +12,14 @@ spec:
labels: labels:
app: checkmate-server app: checkmate-server
spec: spec:
{{- with .Values.server.affinity }}
affinity:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
{{- with .Values.server.tolerations }}
tolerations:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
containers: containers:
- name: server - name: server
image: {{ .Values.server.image }} image: {{ .Values.server.image }}
@@ -20,6 +28,10 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: checkmate-secrets name: checkmate-secrets
{{- with .Values.server.resources }}
resources:
{{- tpl ( . | toYaml) $ | nindent 12 }}
{{- end }}
env: env:
- name: CLIENT_HOST - name: CLIENT_HOST
value: "http://{{ .Values.client.ingress.host }}" value: "http://{{ .Values.client.ingress.host }}"