New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"The Service "kube-dns" is invalid" on fresh install #585
Comments
Thank you for reporting this @AdamIsrael. I am sure you see that the dns addon, being an important service for the cluster expects to get the |
We somehow hardcode the clusterip in the kube-dns service manifest. Just wondering is it necessary to do so? |
We would need to remove the hardcoded cluster ip in https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/coredns.yaml#L151 and do a query to the API server for the appointed IP in the enable script https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/enable.dns.sh#L24 |
Thanks. If the cluster-dns is set on the kubelet on the get go even without enabling dns, would it still give the same ip to newly created services? Sorry for the lame question. 😁 |
The cluster IPs are not appointed by kubelet so I assume you cannot reserve an IP like this (pre-configuring kubelet). Also if we run with a kubelet pre-configured with a cluster-dns it would inject that dns ip into all created pods causing problems when the pods try to resolve anything and the dns is nor enabled. |
@ktsakalozos oh i get it now. Thanks for the insight. What about enabling dns by default upon installing microk8s. I think most apps needs the dns anyway. |
Any updates on this? |
@davigar15 the fix described in #585 (comment) has low priority as the workaround is to do the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
inspection-report-20190806_185828.tar.gz
During a fresh installation on Bionic with microk8s v1.15.2, I received the following when enabling the dns plugin:
That IP address is already assigned to heapster:
microk8s.status
reports that DNS is enabled, but I can't edit its configmap:$ microk8s.kubectl -n kube-system edit configmap/kube-dns Error from server (NotFound): configmaps "kube-dns" not found
Disabling DNS fails:
Attempting to re-enable DNS results in the same error:
The text was updated successfully, but these errors were encountered: