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:
Kubernetes Prow Robot 2019-09-04 07:58:59 -07:00 committed by GitHub
commit d90b75cf1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -171,6 +171,9 @@ spec:
memory: {{ KubeDNS.MemoryRequest }}
args: [ "-conf", "/etc/coredns/Corefile" ]
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
mountPath: /etc/coredns
readOnly: true
@ -208,6 +211,9 @@ spec:
scheme: HTTP
dnsPolicy: Default
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
configMap:
name: coredns

View File

@ -283,7 +283,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
{
key := "coredns.addons.k8s.io"
version := "1.3.0-kops.2"
version := "1.3.1"
{
location := key + "/k8s-1.12.yaml"