v1.10: make root mounted as rshared to fix kube-addon and kube-dns issues #8
Conversation
Thanks for the fix! I should really add a test in the future to test that all the k8s components work correctly, to prevent these problems in the future. |
79b8f3c
into
lilic:minikube-26-kube-1.10
1 check passed
1 check passed
@lilic No problem! If you want I could give it a try to add few more tests cases. Could be a nice Kube practice. |
@xmudrii Hvala! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Hi there!👋
This PR fixes the problems with kube-addon-manager and kube-dns by mounting the root partition as rshared. This issues is present with Kubernetes v1.10, while for older versions everything works flawlessly.
The problem I had is that all basic Kubernetes functionalities worked perfectly (such as pod creating and scheduling, etc), but I was not able to resolve Services via URLs. For example, if you would try to fetch something from
http://service-name.namespace.svc
, it would return error. Also,nslookup
would fail for the Service URLs.Executing
kubectl get all --all-namespaces
returns:For some reason,
kube-addon-manage
is looping in CrashLoopBackOff and there're nokube-dns
pods. Describing thekube-addon-manager
pod mentions the mount issue:I think this could be related to kubernetes/kubernetes#61058. The
local-up-cluster.sh
script mounts root as rshared when running in CI, in order to fix some DIND problems.I've tried to use that for Minikube setup, and that seems to fix the described problems. I also tried to test this with my E2E tests, and everything works perfectly and Services are resolvable.