Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Connection to k8s endpoint- api.clustername.skydns.local is failing #39

Open
abrarshivani opened this issue Apr 10, 2017 · 4 comments
Open
Assignees
Labels
Milestone

Comments

@abrarshivani
Copy link

No description provided.

@abrarshivani abrarshivani changed the title Add network name flag from kops command Add network name flag in kops command Apr 10, 2017
@prashima prashima added the task label Apr 11, 2017
@prashima prashima added this to the M0 milestone Apr 11, 2017
@abrarshivani
Copy link
Author

abrarshivani commented Apr 13, 2017

Currently, we are not able to connect to Kubernetes cluster externally which is launched by Kops on vSphere. This is because dns name used by Kops to connect the cluster externally is mapped to ip address of docker interface.

Dns controller in Kops updates dns record in CoreDNS. It watches all the Kubernetes nodes and pods for updating the records. It sets api.clustername to external ip reported in node addresses of master and api.internal.clustername to ip of the apiserver pod. Since the Kubelet is not running in standalone mode it assigns internal ip address reported by vSphere CloudProvider to the apiserver pod. (Note: apiserver pod is using host network). vSphere CloudProvider should map internal and external ip address appropriately to resolve this issue.

Without this fix we need to run e2e tests and kubectl commands by logging into master node. With this fix we can do it externally.

Created issue for vSphere CloudProvider here: vmware-archive/kubernetes-archived#133

@prashima prashima changed the title Add network name flag in kops command Connection to k8s endpoint- api.clustername.skydns.local is failing Apr 13, 2017
@prashima
Copy link

We are waiting for team's response on the strategy as well as kubernetes folk to confirm inclusion of cloud provider changes.

I am moving this to M1. Upstream PR is already out for review, so we are not waiting for this one.

@prashima prashima modified the milestones: M1, M0 Apr 21, 2017
@prashima
Copy link

prashima commented Jun 6, 2017

As per @divyenpatel 's comment, on vmware-archive/kubernetes-archived#133, kubernetes#45201 has fixed this problem by making vSphere cloud provider return same internal and external ip. The fix has been cherry picked for kubernetes 1.6 only. We need to try out this fix for 1.6.

1.5.* kubernetes versions don't have the fix for the IP. So api.clustername.skydns.local won't be accessible for this deployments.

@fabulous-gopher
Copy link

This issue was moved to kubernetes#2744

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants