diff --git a/charts/mini-runtime/templates/deployment.yaml b/charts/mini-runtime/templates/deployment.yaml index b0f2eb12..e8d29402 100644 --- a/charts/mini-runtime/templates/deployment.yaml +++ b/charts/mini-runtime/templates/deployment.yaml @@ -184,6 +184,9 @@ spec: resources: {{- toYaml .Values.mini_runtime.kafka1.resources | nindent 10 }} restartPolicy: Always + {{- if .Values.tolerations }} + tolerations: {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} {{- if .Values.mini_runtime.kafka1.useTls }} volumes: - name: kafka-certs @@ -262,6 +265,9 @@ spec: - containerPort: 9300 resources: {{- toYaml .Values.keel.keel.resources | nindent 10 }} serviceAccountName: {{ include "akto.fullname" . }}-keel + {{- if .Values.tolerations }} + tolerations: {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} {{ end }} {{ if .Values.threat_client.aktoApiSecurityThreatClient.env.enabled }} @@ -341,4 +347,7 @@ spec: name: akto-api-security-threat-client resources: {{- toYaml .Values.threat_client.aktoApiSecurityThreatClient.resources | nindent 10 }} restartPolicy: Always + {{- if .Values.tolerations }} + tolerations: {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} {{ end }} diff --git a/charts/mini-runtime/templates/redis-deployment.yaml b/charts/mini-runtime/templates/redis-deployment.yaml index f4248b00..d3cda7a4 100644 --- a/charts/mini-runtime/templates/redis-deployment.yaml +++ b/charts/mini-runtime/templates/redis-deployment.yaml @@ -58,6 +58,9 @@ spec: {{- end }} resources: {{- toYaml .Values.redis.resources | nindent 10 }} + {{- if .Values.tolerations }} + tolerations: {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} volumes: {{- if .Values.redis.persistence.enabled }} - name: redis-data diff --git a/charts/mini-runtime/values.yaml b/charts/mini-runtime/values.yaml index 92645e97..8479f93d 100644 --- a/charts/mini-runtime/values.yaml +++ b/charts/mini-runtime/values.yaml @@ -1,6 +1,12 @@ mongo: aktoMongoConn: "" +tolerations: + - effect: NoSchedule + key: nodetype + operator: Equal + value: default + kubernetesClusterDomain: cluster.local mini_runtime: aktoApiSecurityRuntime: