mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Update CoreDNS version and Corefile.
This commit is contained in:
parent
cdbfff0773
commit
8c8cdfe7b7
@ -57,9 +57,11 @@ data:
|
|||||||
Corefile: |
|
Corefile: |
|
||||||
.:53 {
|
.:53 {
|
||||||
errors
|
errors
|
||||||
log stdout
|
log
|
||||||
health
|
health
|
||||||
kubernetes __PILLAR__DNS__DOMAIN__ __PILLAR__CLUSTER_CIDR__
|
kubernetes __PILLAR__DNS__DOMAIN__ __PILLAR__CLUSTER_CIDR__ {
|
||||||
|
pods insecure
|
||||||
|
}
|
||||||
prometheus
|
prometheus
|
||||||
proxy . /etc/resolv.conf
|
proxy . /etc/resolv.conf
|
||||||
cache 30
|
cache 30
|
||||||
@ -93,7 +95,7 @@ spec:
|
|||||||
operator: "Exists"
|
operator: "Exists"
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: coredns/coredns:0.9.10
|
image: coredns/coredns:1.0.1
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -57,9 +57,11 @@ data:
|
|||||||
Corefile: |
|
Corefile: |
|
||||||
.:53 {
|
.:53 {
|
||||||
errors
|
errors
|
||||||
log stdout
|
log
|
||||||
health
|
health
|
||||||
kubernetes {{ pillar['dns_domain'] }} {{ pillar['service_cluster_ip_range'] }}
|
kubernetes {{ pillar['dns_domain'] }} {{ pillar['service_cluster_ip_range'] }} {
|
||||||
|
pods insecure
|
||||||
|
}
|
||||||
prometheus
|
prometheus
|
||||||
proxy . /etc/resolv.conf
|
proxy . /etc/resolv.conf
|
||||||
cache 30
|
cache 30
|
||||||
@ -93,7 +95,7 @@ spec:
|
|||||||
operator: "Exists"
|
operator: "Exists"
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: coredns/coredns:0.9.10
|
image: coredns/coredns:1.0.1
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -57,9 +57,11 @@ data:
|
|||||||
Corefile: |
|
Corefile: |
|
||||||
.:53 {
|
.:53 {
|
||||||
errors
|
errors
|
||||||
log stdout
|
log
|
||||||
health
|
health
|
||||||
kubernetes $DNS_DOMAIN $SERVICE_CLUSTER_IP_RANGE
|
kubernetes $DNS_DOMAIN $SERVICE_CLUSTER_IP_RANGE {
|
||||||
|
pods insecure
|
||||||
|
}
|
||||||
prometheus
|
prometheus
|
||||||
proxy . /etc/resolv.conf
|
proxy . /etc/resolv.conf
|
||||||
cache 30
|
cache 30
|
||||||
@ -93,7 +95,7 @@ spec:
|
|||||||
operator: "Exists"
|
operator: "Exists"
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: coredns/coredns:0.9.10
|
image: coredns/coredns:1.0.1
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -293,7 +293,7 @@ data:
|
|||||||
Corefile: |
|
Corefile: |
|
||||||
.:53 {
|
.:53 {
|
||||||
errors
|
errors
|
||||||
log stdout
|
log
|
||||||
health
|
health
|
||||||
kubernetes {{ .DNSDomain }} {{ .ServiceCIDR }} {
|
kubernetes {{ .DNSDomain }} {{ .ServiceCIDR }} {
|
||||||
pods insecure
|
pods insecure
|
||||||
|
@ -27,14 +27,14 @@ const (
|
|||||||
|
|
||||||
kubeDNSProbeSRV = "SRV"
|
kubeDNSProbeSRV = "SRV"
|
||||||
kubeDNSProbeA = "A"
|
kubeDNSProbeA = "A"
|
||||||
coreDNSVersion = "1.0.0"
|
coreDNSVersion = "1.0.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetDNSVersion returns the right kube-dns version for a specific k8s version
|
// GetDNSVersion returns the right kube-dns version for a specific k8s version
|
||||||
func GetDNSVersion(kubeVersion *version.Version, dns string) string {
|
func GetDNSVersion(kubeVersion *version.Version, dns string) string {
|
||||||
// v1.8.0+ uses kube-dns 1.14.5
|
// v1.8.0+ uses kube-dns 1.14.5
|
||||||
// v1.9.0+ uses kube-dns 1.14.7
|
// v1.9.0+ uses kube-dns 1.14.7
|
||||||
// v1.9.0+ uses CoreDNS 1.0.0
|
// v1.9.0+ uses CoreDNS 1.0.1
|
||||||
|
|
||||||
// In the future when the version is bumped at HEAD; add conditional logic to return the right versions
|
// In the future when the version is bumped at HEAD; add conditional logic to return the right versions
|
||||||
// Also, the version might be bumped for different k8s releases on the same branch
|
// Also, the version might be bumped for different k8s releases on the same branch
|
||||||
|
Loading…
Reference in New Issue
Block a user