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:
configMapKeyRef:
name: {{ template "theodolite.fullname" . }}-kafka-metrics
key: kafka-metrics-config.yml
{{- with .Values.strimzi.kafka.nodeSelectorTerms}}
template:
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
{{- toYaml . | nindent 16 }}
{{- end}}
zookeeper:
{{- with .Values.strimzi.zookeeper.replicas }}
......@@ -38,6 +47,15 @@ spec:
{{- end }}
storage:
type: ephemeral
{{- with .Values.strimzi.zookeeper.nodeSelectorTerms}}
template:
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
{{- toYaml . | nindent 16 }}
{{- end}}
kafkaExporter: {}
......
......@@ -173,6 +173,12 @@ strimzi:
jvmOptions:
"-Xmx": "512M"
"-Xms": "512M"
nodeSelectorTerms:
- matchExpressions:
- key: env
operator: In
values:
- prod
zookeeper:
replicas: 3
zooEntrance:
......@@ -180,6 +186,13 @@ strimzi:
zookeeperClient:
enabled: true
nodeSelector: {}
nodeSelectorTerms:
- matchExpressions:
- key: env
operator: In
values:
- prod
topicOperator:
enabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment