resources, tolerations

This commit is contained in:
Nicholas Lockhart 2020-04-24 10:10:58 -04:00
parent 6c32fbac27
commit 869d09dc77
3 changed files with 39 additions and 0 deletions

View file

@ -31,3 +31,17 @@ spec:
fieldPath: metadata.namespace
- name: CONTROLLER_CONFIG_MAP
value: {{ .Release.Name }}-{{ .Values.gatewayController.name }}-configmap
resources:
{{ toYaml .Values.gatewayController.resources | indent 12 }}
{{- with .Values.gatewatController.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.gatewayController.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.gatewayController.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}

View file

@ -31,3 +31,18 @@ spec:
fieldPath: metadata.namespace
- name: CONTROLLER_CONFIG_MAP
value: {{ .Release.Name }}-{{ .Values.sensorController.name }}-configmap
resources:
{{ toYaml .Values.sensorController.resources | indent 12 }}
{{- with .Values.sensorController.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.sensorController.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.sensorController.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}

View file

@ -44,9 +44,19 @@ sensorController:
image: sensor-controller
tag: v0.14.0
replicaCount: 1
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
gatewayController:
name: gateway-controller
image: gateway-controller
tag: v0.14.0
replicaCount: 1
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}