# Internal and external network suggestion

**URL:** <https://forums.suse.com/t/internal-and-external-network-suggestion/16066>\
**Category:** SUSE Rancher Prime\
**Created:** [December 11, 2019, 11:42am UTC](https://forums.suse.com/t/internal-and-external-network-suggestion/16066 "2019-12-11T11:42:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![donnib](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/donnib/32/5863_2.png) [@donnib](https://forums.suse.com/u/donnib)\
**Post date:** [December 11, 2019, 11:42am UTC](https://forums.suse.com/t/internal-and-external-network-suggestion/16066/1 "2019-12-11T11:42:01Z")

</div>

Hi,  
I am trying to learn kubernetes and rancher. Here is what i want to accomplish :

1. I have few docker containers which i want to service only from my internal network using [x.mydomain.com](http://x.mydomain.com)
2. I have same as above but those containers will be accessible from internet on [x.mydomain.com](http://x.mydomain.com)

What i have at the moment is following :

1. Rancher server
2. RancherOS to be used for the cluster and as one node
3. I have made a cluster and added the node from 2. and disabled the nginx controller.
4. Install traefik app
5. I have forwarded port 80, 443 to my node.
6. Added few containers
7. Added ingress rules

So at the moments it works with the external network. I can write [app1.mydomain.com](http://app1.mydomain.com) from the internet and everything works as it should.

Now my problem is how can i add the internal network now ?

Do i create another cluster ? Another node on the same host ? Should i install two traefik and then use class in ingress for the internal stuff ?

My idea was to add another ip to the same interface on the rancheros then add another node on the same host but with the other ip but i can’t get it to work. Rancher sees both nodes with the same name and doesn’t use the information i give it i mean --address when creating the node. Of course even when i do this it would require that i setup a DNS server internally so it knows which domains are served internally but i haven’t done that yet since i can’t seem to figure out how to handle the two ip on the host and use them in two different nodes. I am unsure what is require, maybe it’s the wrong route i am going.

I would appreciate if somebody had some ideas.

/donnib
