[stable/datadog] Add nodeSelector and affinity values for daemonset (#4928)

* [stable/datadog] Add nodeSelector and affinity values

* [stable/datadog] Delete duplicated nodeSelector block

* [stable/datadog] Add links for node affinity/selection
This commit is contained in:
Sven Nebel
2018-06-07 07:37:23 -07:00
committed by k8s-ci-robot
parent deb9980821
commit fd3887cafe
4 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: datadog
version: 0.14.0
version: 0.15.0
appVersion: 6.2.1
description: DataDog Agent
keywords:
+2 -1
View File
@@ -59,9 +59,10 @@ The following table lists the configurable parameters of the Datadog chart and t
| `kubeStateMetrics.enabled` | If true, create kube-state-metrics | `true` |
| `daemonset.podAnnotations` | Annotations to add to the DaemonSet's Pods | `nil` |
| `daemonset.tolerations` | List of node taints to tolerate (requires Kubernetes >= 1.6) | `nil` |
| `daemonset.nodeSelector` | Node selectors | `nil` |
| `daemonset.affinity` | Node affinities | `nil` |
| `daemonset.useHostNetwork` | If true, use the host's network | `nil` |
| `daemonset.useHostPort` | If true, use the same ports for both host and container | `nil` |
| `daemonset.nodeSelector` | Node labels for pod assignment | `{}` |
| `datadog.leaderElection` | Adds the leader Election feature | `false` |
| `datadog.leaderLeaseDuration`| The duration for which a leader stays elected.| `nil` |
| `deployment.affinity` | Node / Pod affinities | `{}` |
+4
View File
@@ -168,6 +168,10 @@ spec:
{{- if .Values.daemonset.tolerations }}
tolerations:
{{ toYaml .Values.daemonset.tolerations | indent 8 }}
{{- end }}
{{- if .Values.daemonset.affinity }}
affinity:
{{ toYaml .Values.daemonset.affinity | indent 8 }}
{{- end }}
serviceAccountName: {{ if .Values.rbac.create }}{{ template "datadog.fullname" . }}{{ else }}"{{ .Values.rbac.serviceAccountName }}"{{ end }}
{{- if .Values.daemonset.nodeSelector }}
+6 -2
View File
@@ -36,9 +36,13 @@ daemonset:
## Allow the DaemonSet to schedule on tainted nodes (requires Kubernetes >= 1.6)
# tolerations: []
# Node labels for pod assignment
## Allow the DaemonSet to schedule on selected nodes
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}
# nodeSelector: {}
## Allow the DaemonSet to schedule ussing affinity rules
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
# affinity: {}
## Allow the DaemonSet to perform a rolling update on helm update
## ref: https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/