Add support to configure affinity and nodeSelector. Signed-off-by… (#13129)

* Add support to configure `affinity` and `nodeSelector`. Signed-off-by: Frank Reno <frank.reno@me.com>

Signed-off-by: Frank Reno <frank.reno@me.com>

* update version.

Signed-off-by: Frank Reno <frank.reno@me.com>

* fix alignment

Signed-off-by: Frank Reno <frank.reno@me.com>
This commit is contained in:
Frank Reno
2019-06-27 14:13:46 -07:00
committed by Kubernetes Prow Robot
parent d235ac1ac7
commit c6c091af43
4 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: sumologic-fluentd
version: 1.0.0
version: 1.1.0
appVersion: 2.3.0
description: Sumologic Log Collector
keywords:
+2
View File
@@ -61,6 +61,8 @@ The following table lists the configurable parameters of the sumologic-fluentd c
|-----------|-------------|---------|
| `podAnnotations` | Annotations to add to the DaemonSet's Pods | `{}` |
| `tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | `[]` |
| `nodeSelector` | Node labels for fluentd pod assignment | `{}` |
| `affinity` | Expressions for affinity | `{}` |
| `extraEnv` | List of additional env vars to append to pods | `[]` |
| `updateStrategy` | `OnDelete` or `RollingUpdate` (requires Kubernetes >= 1.6) | `OnDelete` |
| `sumologic.collectorUrl` | An HTTP collector in SumoLogic that the container can send logs to via HTTP | `Nil` You must provide your own value |
@@ -229,7 +229,15 @@ spec:
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
{{ if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
updateStrategy:
type: "{{ .Values.updateStrategy }}"
+6
View File
@@ -14,6 +14,12 @@ tolerations: []
# effect: NoSchedule
# operator: "Exists"
## Node labels for fluentd pod assignment
nodeSelector: {}
## Expressions for affinity
affinity: {}
# Extra environment variables to set for fluentd
extraEnv: []