mirror of https://github.com/kubernetes/kops.git
Merge pull request #7492 from grupozap/coredns_missing_dir_workaround
fix(addons/coredns.addons.k8s.io) Workaound to stop coredns crashing on 1.3.1 version
This commit is contained in:
commit
d90b75cf1b
|
@ -171,6 +171,9 @@ spec:
|
||||||
memory: {{ KubeDNS.MemoryRequest }}
|
memory: {{ KubeDNS.MemoryRequest }}
|
||||||
args: [ "-conf", "/etc/coredns/Corefile" ]
|
args: [ "-conf", "/etc/coredns/Corefile" ]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
# Workaround for 1.3.1 bug, can be removed after bumping to 1.4+. See: https://github.com/coredns/coredns/pull/2529
|
||||||
|
- name: tmp
|
||||||
|
mountPath: /tmp
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /etc/coredns
|
mountPath: /etc/coredns
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -208,6 +211,9 @@ spec:
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
dnsPolicy: Default
|
dnsPolicy: Default
|
||||||
volumes:
|
volumes:
|
||||||
|
# Workaround for 1.3.1 bug, can be removed after bumping to 1.4+. See: https://github.com/coredns/coredns/pull/2529
|
||||||
|
- name: tmp
|
||||||
|
emptyDir: {}
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: coredns
|
name: coredns
|
||||||
|
|
|
@ -283,7 +283,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
|
||||||
|
|
||||||
{
|
{
|
||||||
key := "coredns.addons.k8s.io"
|
key := "coredns.addons.k8s.io"
|
||||||
version := "1.3.0-kops.2"
|
version := "1.3.1"
|
||||||
|
|
||||||
{
|
{
|
||||||
location := key + "/k8s-1.12.yaml"
|
location := key + "/k8s-1.12.yaml"
|
||||||
|
|
Loading…
Reference in New Issue