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!
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
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
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.