Coredns affinity tolerations (#7039)

* added 'affinity' and 'tolerations' configuration hooks to coredns

* bumped up version. No breaking changes hence the minor version increase.

* Update Chart.yaml
This commit is contained in:
Gintautas Sulskus
2018-08-07 08:08:20 -07:00
committed by k8s-ci-robot
parent bdb1004bae
commit 888030a2d1
3 changed files with 32 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: coredns
version: 0.9.0
version: 0.9.1
appVersion: 1.0.6
description: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services
keywords:
@@ -13,5 +13,5 @@ sources:
maintainers:
- name: Acaleph
email: hello@acale.ph
- name: Shashidhara TD
- name: shashidharatd
email: shashidhara.huawei@gmail.com
+8
View File
@@ -43,6 +43,14 @@ spec:
{{- end }}
{{- if .Values.isClusterService }}
dnsPolicy: Default
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
containers:
- name: "coredns"
+22
View File
@@ -36,6 +36,28 @@ serviceType: "ClusterIP"
# Can be one of three options: "UDPNTCP" (default), "UDP" or "TCP"
serviceProtocol: "UDPNTCP"
# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#affinity-v1-core
# for example:
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: foo.bar.com/role
# operator: In
# values:
# - master
affinity: {}
# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core
# for example:
# tolerations:
# - key: foo.bar.com/role
# operator: Equal
# value: master
# effect: NoSchedule
tolerations: []
# plugn configuration of CoreDNS refer to https://github.com/coredns/coredns/tree/master/plugin
# for all specific details. set enabled to true/false to enable/disable a plugin.
plugins: