Fix KubeDNS missing resourceVersion - update channel version

This commit is contained in:
Ciprian Hacman 2020-07-08 08:11:33 +03:00
parent 15c241b2cd
commit edfabfef87
2 changed files with 4 additions and 1 deletions

View File

@ -2903,6 +2903,9 @@ metadata:
k8s-app: kube-dns k8s-app: kube-dns
kubernetes.io/cluster-service: "true" kubernetes.io/cluster-service: "true"
kubernetes.io/name: "KubeDNS" kubernetes.io/name: "KubeDNS"
# Without this resourceVersion value, an update of the Service between versions will yield:
# Service "kube-dns" is invalid: metadata.resourceVersion: Invalid value: "": must be specified for an update
resourceVersion: "0"
spec: spec:
selector: selector:
k8s-app: kube-dns k8s-app: kube-dns

View File

@ -228,7 +228,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
{ {
key := "kube-dns.addons.k8s.io" key := "kube-dns.addons.k8s.io"
version := "1.15.13-kops.1" version := "1.15.13-kops.2"
{ {
location := key + "/k8s-1.6.yaml" location := key + "/k8s-1.6.yaml"