Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

host and internet connectivity in combination with Kubernetes #260

Closed
slintes opened this issue Dec 4, 2014 · 11 comments
Closed

host and internet connectivity in combination with Kubernetes #260

slintes opened this issue Dec 4, 2014 · 11 comments
Assignees
Labels

Comments

@slintes
Copy link

slintes commented Dec 4, 2014

Hi. I'm evaluating using weave in combination with docker, and have a setup running based on https://github.com/errordeveloper/weave-demos/tree/master/poseidon.
I have to issued with this setup:

  1. I can not reach other hosts (e.g. for using etcd running on an other CoreOS instance. Workaround: run another etcd in a docker container)
  2. I can not reach "the internet" (usecase: run an own docker registry in a container, which also builds the images itself, based on Dockerfiles hosted on github...)

I discussed this already with Ilya, and he pointed me to kubernetes/kubernetes#15. While on the one hand that sounds somewhat reasonable to me (I'm not an network expert), I only can say that with flannel I have access to other hosts and to the internet...?

@rade
Copy link
Member

rade commented Dec 4, 2014

Hmm. If, as you say, this works with flannel then it should certainly work with weave.

Re your first point, so you want to run etcd on the host and have to talk to other hosts over weave? That should be possible through service routing. Did you try that?

Re your second point... is that a problem with name resolution or routing? Can you reach "the internet" by IP address?

@slintes
Copy link
Author

slintes commented Dec 4, 2014

  1. I was not aware of service routing yet, thanks, will have look.
  2. Both. I can not ping internet servers by name (name is not resolved) or by IP address.

@errordeveloper
Copy link
Contributor

@slintes a few more details would help:

  • are you running the same version of kubernetes in your test with flannel and weave?
  • do you run docker --iptables=false --ip-masq=false in both of the tests as well?

@slintes
Copy link
Author

slintes commented Dec 4, 2014

@slintes
Copy link
Author

slintes commented Dec 4, 2014

oh wait, sorry, with flannel I don't use these flags, see https://github.com/slintes/CoreOSKubernetesTest/blob/master/Cluster/coreos-userdata
Can I just skip the flags with weave, too?

@errordeveloper
Copy link
Contributor

Sure, those flags are the reason. I have put them there in the first place as per Kubernetes docs. I suppose you could try to remove them and see how it plays out.

@slintes
Copy link
Author

slintes commented Dec 4, 2014

That was easy ;) Works, thanks!

@slintes slintes closed this as completed Dec 4, 2014
@errordeveloper
Copy link
Contributor

I'd like to keep this open, until I make an update to the blog post...

@errordeveloper
Copy link
Contributor

@slintes could you confirm which revision of Kubernetes you are running?

@errordeveloper
Copy link
Contributor

@slintes please comment on kubernetes/kubernetes#15, so we can clarify the upstream status.

@alwansm
Copy link

alwansm commented May 11, 2017

Hello I am facing the same problem is there any update the previous solution didn't work

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

4 participants