[k8s] Upgrade default coreDNS version to 1.6.6

The default version of coreDNS now is upgraded to 1.6.6 and
the coreDNS pod can be scheduled to master nodes.

Task: 39209
Story: 2007256

Change-Id: Icc4aa1f61f3b3937e5d9cc35dbe01c63c18ba3cd
This commit is contained in:
Feilong Wang 2020-03-31 16:09:46 +13:00
parent 2e203dc92b
commit 9f5203bf5f
4 changed files with 21 additions and 5 deletions

View File

@ -1180,7 +1180,7 @@ _`container_infra_prefix`
Images that must be mirrored:
* docker.io/coredns/coredns:1.3.1
* docker.io/coredns/coredns
* docker.io/openstackmagnum/etcd
* docker.io/openstackmagnum/flannel
* docker.io/openstackmagnum/kubernetes-apiserver
@ -1268,7 +1268,9 @@ _`coredns_tag`
based on its container tag
<https://hub.docker.com/r/coredns/coredns/tags/>`_.
If unset, the current Magnum version's a default etcd version.
For stein, 1.3.1
Stein Default: 1.3.1
Train Default: 1.3.1
Ussuri Default: 1.6.6
_`flannel_tag`
This label allows users to select `a specific flannel version,

View File

@ -110,8 +110,14 @@ spec:
priorityClassName: system-cluster-critical
serviceAccountName: coredns
tolerations:
- key: "CriticalAddonsOnly"
operator: "Exists"
# Make sure the pod can be scheduled on master kubelet.
- effect: NoSchedule
operator: Exists
# Mark the pod as a critical add-on for rescheduling.
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
operator: Exists
nodeSelector:
beta.kubernetes.io/os: linux
containers:

View File

@ -474,7 +474,7 @@ parameters:
coredns_tag:
type: string
description: tag for coredns
default: 1.3.1
default: 1.6.6
flannel_tag:
type: string
@ -938,6 +938,9 @@ resources:
- protocol: tcp
port_range_min: 22
port_range_max: 22
- protocol: tcp
port_range_min: 53
port_range_max: 53
- protocol: tcp
port_range_min: 7080
port_range_max: 7080

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
The default CoreDNS version has been upgraded to 1.6.6 and now
it can be schedule to master nodes.