[stable/coredns] Add support for customLabels / Upgrade to 1.6.6 (#17966)

* [stable/coredns] Add support for customLabels

Signed-off-by: Manuel Rüger <manuel@rueg.eu>

* [stable/coredns] Version bump to 1.6.6

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
Manuel Rüger
2019-12-17 06:24:00 -08:00
committed by Kubernetes Prow Robot
parent 42892c2304
commit fc5107993c
6 changed files with 20 additions and 5 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: coredns
version: 1.7.5
appVersion: 1.6.5
version: 1.8.0
appVersion: 1.6.6
description: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services
keywords:
- coredns
+2 -2
View File
@@ -47,7 +47,7 @@ The command removes all the Kubernetes components associated with the chart and
| Parameter | Description | Default |
|:----------------------------------------|:--------------------------------------------------------------------------------------|:------------------------------------------------------------|
| `image.repository` | The image repository to pull from | coredns/coredns |
| `image.tag` | The image tag to pull from | `v1.6.5` |
| `image.tag` | The image tag to pull from | `v1.6.6` |
| `image.pullPolicy` | Image pull policy | IfNotPresent |
| `replicaCount` | Number of replicas | 1 |
| `resources.limits.cpu` | Container maximum CPU | `100m` |
@@ -74,7 +74,7 @@ The command removes all the Kubernetes components associated with the chart and
| `tolerations` | Tolerations for pod assignment | [] |
| `zoneFiles` | Configure custom Zone files | [] |
| `extraSecrets` | Optional array of secrets to mount inside the CoreDNS container | [] |
| `customLabels` | Optional labels for Deployment, Pod, Service, ServiceMonitor objects | {} |
See `values.yaml` for configuration notes. Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```console
+6
View File
@@ -12,6 +12,9 @@ metadata:
kubernetes.io/name: "CoreDNS"
{{- end }}
app.kubernetes.io/name: {{ template "coredns.name" . }}
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
@@ -29,6 +32,9 @@ spec:
{{- end }}
app.kubernetes.io/name: {{ template "coredns.name" . }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.isClusterService }}
@@ -14,6 +14,9 @@ metadata:
{{- end }}
app.kubernetes.io/name: {{ template "coredns.name" . }}
app.kubernetes.io/component: metrics
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 4 }}
{{- end }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
spec:
+3
View File
@@ -12,6 +12,9 @@ metadata:
kubernetes.io/name: "CoreDNS"
{{- end }}
app.kubernetes.io/name: {{ template "coredns.name" . }}
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 4 }}
{{- end }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
spec:
+4 -1
View File
@@ -4,7 +4,7 @@
image:
repository: coredns/coredns
tag: "1.6.5"
tag: "1.6.6"
pullPolicy: IfNotPresent
replicaCount: 1
@@ -137,3 +137,6 @@ extraSecrets: []
# mountPath: /etc/coredns/tls/etcd
# - name: some-fancy-secret
# mountPath: /etc/wherever
# Custom labels to apply to Deployment, Pod, Service, ServiceMonitor
customLabels: {}