Kops: Can I change DNS Provider from kubedns to coredns in an existing cluster?

Created on 30 May 2018  路  6Comments  路  Source: kubernetes/kops

I found I can specific a dns provider when I creating a cluster in the docs

spec:
kubeDNS:
provider: CoreDNS

My question is:
I already have a cluster created by kops 1.9. How can I change the dnsprovider from kubedns to coredns?

Thanks!

Most helpful comment

Yes, you can just edit the cluster, update cluster and coredns will start coming up. It will be behind the same service as kube-dns. Then you can scale down kube-dns-autoscaler and kube-dns.

All 6 comments

coredns addon is not part of 1.9 release branch:

https://github.com/kubernetes/kops/tree/release-1.9/upup/models/cloudup/resources/addons

it is merged on master only: https://github.com/kubernetes/kops/tree/master/upup/models/cloudup/resources/addons

planned to be released with kops 1.10

@so0k Thank you.

I know that this feature is only available in master branch.
I want to know how can I change the dns provider from kubedns to coredns use the master branch I build by my self.
Can I just edit cluster and it will rolling update automatically ?

Yes, you can just edit the cluster, update cluster and coredns will start coming up. It will be behind the same service as kube-dns. Then you can scale down kube-dns-autoscaler and kube-dns.

@mikesplain thanks!

hi when i do kops edit cluster I get this
spec:
api:
dns: {}
authorization:
rbac: {}
channel: stable

cloudProvider: aws

where should i place
spec:
kubeDNS:
provider: CoreDNS

i use kops 1.10 version (new to k8s)

I wanted to move from kube-dns to core-dns how can i add to the cluster to update with core-dns? ( iam new to k8s please some one help me on this )
Thanks in advance

Was this page helpful?
0 / 5 - 0 ratings