v1.10: make root mounted as rshared to fix kube-addon and kube-dns issues #8
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.