Merge pull request #6485 from rajansandeep/updatemanifest

Update the CoreDNS manifest
This commit is contained in:
Kubernetes Prow Robot 2019-02-20 03:38:30 -08:00 committed by GitHub
commit d82241bca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View File

@ -7,7 +7,7 @@ metadata:
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
k8s-addon: coredns.addons.k8s.io k8s-addon: coredns.addons.k8s.io
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
labels: labels:
@ -32,7 +32,7 @@ rules:
verbs: verbs:
- get - get
--- ---
apiVersion: rbac.authorization.k8s.io/v1beta1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
annotations: annotations:
@ -75,7 +75,7 @@ data:
reload reload
} }
--- ---
apiVersion: extensions/v1beta1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: coredns name: coredns
@ -98,6 +98,7 @@ spec:
labels: labels:
k8s-app: kube-dns k8s-app: kube-dns
spec: spec:
priorityClassName: system-cluster-critical
serviceAccountName: coredns serviceAccountName: coredns
tolerations: tolerations:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"
@ -106,7 +107,7 @@ spec:
beta.kubernetes.io/os: linux beta.kubernetes.io/os: linux
containers: containers:
- name: coredns - name: coredns
image: k8s.gcr.io/coredns:1.3.0 image: k8s.gcr.io/coredns:1.3.1
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
resources: resources:
limits: limits:
@ -146,6 +147,11 @@ spec:
timeoutSeconds: 5 timeoutSeconds: 5
successThreshold: 1 successThreshold: 1
failureThreshold: 5 failureThreshold: 5
readinessProbe:
httpGet:
path: /health
port: 8080
scheme: HTTP
dnsPolicy: Default dnsPolicy: Default
volumes: volumes:
- name: config-volume - name: config-volume
@ -179,3 +185,6 @@ spec:
- name: dns-tcp - name: dns-tcp
port: 53 port: 53
protocol: TCP protocol: TCP
- name: metrics
port: 9153
protocol: TCP

View File

@ -211,7 +211,7 @@ func (b *BootstrapChannelBuilder) buildManifest() (*channelsapi.Addons, map[stri
if kubeDNS.Provider == "CoreDNS" { if kubeDNS.Provider == "CoreDNS" {
{ {
key := "coredns.addons.k8s.io" key := "coredns.addons.k8s.io"
version := "1.3.0-kops.2" version := "1.3.1-kops.2"
{ {
location := key + "/k8s-1.6.yaml" location := key + "/k8s-1.6.yaml"