mirror of https://github.com/easzlab/kubeasz.git
bump coredns version 1.6.6
parent
78ac6514ef
commit
7fce68ec83
|
@ -4,7 +4,7 @@ dns_backend: "coredns"
|
|||
# 设置 dns svc ip (这里选用 SERVICE_CIDR 中第2个IP)
|
||||
CLUSTER_DNS_SVC_IP: "{{ SERVICE_CIDR | ipaddr('net') | ipaddr(2) | ipaddr('address') }}"
|
||||
kubednsVer: "1.14.13"
|
||||
corednsVer: "1.6.2"
|
||||
corednsVer: "1.6.6"
|
||||
kubedns_offline: "kubedns_{{ kubednsVer }}.tar"
|
||||
coredns_offline: "coredns_{{ corednsVer }}.tar"
|
||||
dns_offline: "{%- if dns_backend == 'coredns' -%} \
|
||||
|
|
|
@ -54,7 +54,9 @@ data:
|
|||
Corefile: |
|
||||
.:53 {
|
||||
errors
|
||||
health
|
||||
health {
|
||||
lameduck 5s
|
||||
}
|
||||
ready
|
||||
kubernetes {{ CLUSTER_DNS_DOMAIN }} in-addr.arpa ip6.arpa {
|
||||
pods insecure
|
||||
|
@ -67,7 +69,7 @@ data:
|
|||
loadbalance
|
||||
}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: coredns
|
||||
|
@ -96,6 +98,15 @@ spec:
|
|||
operator: "Exists"
|
||||
nodeSelector:
|
||||
beta.kubernetes.io/os: linux
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: k8s-app
|
||||
operator: In
|
||||
values: ["kube-dns"]
|
||||
topologyKey: kubernetes.io/hostname
|
||||
containers:
|
||||
- name: coredns
|
||||
image: coredns/coredns:{{ corednsVer }}
|
||||
|
|
|
@ -185,7 +185,7 @@ function get_sys_pkg() {
|
|||
function get_offline_image() {
|
||||
# images needed by k8s cluster
|
||||
calicoVer=v3.4.4
|
||||
corednsVer=1.6.2
|
||||
corednsVer=1.6.6
|
||||
dashboardVer=v2.0.0-beta6
|
||||
dashboardMetricsScraperVer=v1.0.2
|
||||
flannelVer=v0.11.0-amd64
|
||||
|
|
Loading…
Reference in New Issue