Skip to content
Snippets Groups Projects
Commit 4543bbaa authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Closes #372

parent 6e8a8f83
No related branches found
No related tags found
1 merge request!258Add nodeSelector feature for Strimzi Kafka and Zookeeper
...@@ -30,6 +30,15 @@ spec: ...@@ -30,6 +30,15 @@ spec:
configMapKeyRef: configMapKeyRef:
name: {{ template "theodolite.fullname" . }}-kafka-metrics name: {{ template "theodolite.fullname" . }}-kafka-metrics
key: kafka-metrics-config.yml key: kafka-metrics-config.yml
{{- with .Values.strimzi.kafka.nodeSelectorTerms}}
template:
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
{{- toYaml . | nindent 16 }}
{{- end}}
zookeeper: zookeeper:
{{- with .Values.strimzi.zookeeper.replicas }} {{- with .Values.strimzi.zookeeper.replicas }}
...@@ -37,7 +46,16 @@ spec: ...@@ -37,7 +46,16 @@ spec:
{{- toYaml . | nindent 6 }} {{- toYaml . | nindent 6 }}
{{- end }} {{- end }}
storage: storage:
type: ephemeral type: ephemeral
{{- with .Values.strimzi.zookeeper.nodeSelectorTerms}}
template:
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
{{- toYaml . | nindent 16 }}
{{- end}}
kafkaExporter: {} kafkaExporter: {}
......
...@@ -173,6 +173,12 @@ strimzi: ...@@ -173,6 +173,12 @@ strimzi:
jvmOptions: jvmOptions:
"-Xmx": "512M" "-Xmx": "512M"
"-Xms": "512M" "-Xms": "512M"
nodeSelectorTerms:
- matchExpressions:
- key: env
operator: In
values:
- prod
zookeeper: zookeeper:
replicas: 3 replicas: 3
zooEntrance: zooEntrance:
...@@ -180,6 +186,13 @@ strimzi: ...@@ -180,6 +186,13 @@ strimzi:
zookeeperClient: zookeeperClient:
enabled: true enabled: true
nodeSelector: {} nodeSelector: {}
nodeSelectorTerms:
- matchExpressions:
- key: env
operator: In
values:
- prod
topicOperator: topicOperator:
enabled: true enabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment