-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Use cluster-dns IP setup by kubeadm #6472
Use cluster-dns IP setup by kubeadm #6472
Conversation
Welcome @vijaykatam! |
Hi @vijaykatam. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can one of the admins verify this patch? |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: vijaykatam The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@vijaykatam interesting PR ! I am curious if this will break anyone ! btw the unit tests datas need to be updated for the PR. |
/ok-to-test |
6c18456
to
ff95d0a
Compare
Error: running mkcmp: exit status 1 |
@medyagh if user didn't pass |
I updated unit test setup data and they pass now. Integration test failures seem unrelated to this change. |
Thanks @vijaykatam I will investigate, please run make lint |
@medyagh I didn't see lint errors running
I rebased with latest from master and I see 2 lint errors unrelated to my change which I am fixing.
|
Removed hardcoded `cluster-dns` IP 10.96.0.10, this allows kubelet to use `clusterDNS` configured by kubeadm in `/var/lib/kubelet/config.yaml` Tested by starting minikube with `--service-cluster-ip-range=100.64.0.0/13` and verifying DNS resolution works. /etc/systemd/system/kubelet.service.d/10-kubeadm.conf ``` [Unit] Wants=docker.socket [Service] ExecStart= ExecStart=/var/lib/minikube/binaries/v1.17.0/kubelet --authorization-mode=Webhook --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --cgroup-driver='cgroupfs' --client-ca-file=/v ar/lib/minikube/certs/ca.crt --cluster-domain=cluster.local --config=/var/lib/kubelet/config.yaml --container-runtime=docker --fail-swap-on=false --hostname-override=minikube --kubeconfig=/e tc/kubernetes/kubelet.conf --node-ip=192.168.64.7 --pod-manifest-path=/etc/kubernetes/manifests [Install] ``` DNS resolution test ``` kubectl run -i --tty --rm busybox --image=busybox --restart=Never -- sh If you don't see a command prompt, try pressing enter. / # nslookup kubernetes.io Server: 100.64.0.10 Address: 100.64.0.10:53 Non-authoritative answer: Name: kubernetes.io Address: 147.75.40.148 ``` Fixes: kubernetes#5727 fix lint errors
ff95d0a
to
cf8e247
Compare
Codecov Report
@@ Coverage Diff @@
## master #6472 +/- ##
=======================================
Coverage 37.96% 37.96%
=======================================
Files 138 138
Lines 8698 8698
=======================================
Hits 3302 3302
Misses 4980 4980
Partials 416 416
|
Thank you! |
We need a newer version that fixes kubernetes/minikube#6472. Signed-off-by: Niels de Vos <ndevos@redhat.com>
We need a newer version that fixes kubernetes/minikube#6472. Signed-off-by: Niels de Vos <ndevos@redhat.com>
We need a newer version that fixes kubernetes/minikube#6472. Signed-off-by: Niels de Vos <ndevos@redhat.com>
Removed hardcoded
cluster-dns
IP 10.96.0.10, this allows kubelet to useclusterDNS
configured by kubeadm in/var/lib/kubelet/config.yaml
Tested by starting minikube with
--service-cluster-ip-range=100.64.0.0/13
and verifying DNS resolution works./etc/systemd/system/kubelet.service.d/10-kubeadm.conf
DNS resolution test
Fixes: #5727