How to put a Kubernetes or Docker Swarm service behind a firewall -


i have been playing little kubernetes , docker swarm 2 alternatives managing containers in self-hosted solution. not find straight forward answer to, how should put service behind firewall in each of them.

from saw in docker swarm , in kubernetes (when using nodeport), service exposed on ip addresses of hosts running in cluster, , requests being routed services running in cluster, regardless of host hit.

now suppose want put service behind firewall.i need ip address configure in fw target ip address, right? don't want use specific host ip address because hosts may come , go, , don't want single host single-point-of-failure.

any pointers highly appreciated!

technically, put behind firewall not service, whole kubernetes cluster. if have solid support loadbalancer type service, exposed public ip, through lb, hence traffic pass client > lb > clusternodes. see, yopu need allow connections load balancer cluster nodes.

in provisioners / environments kind of behaviour default. example kops, when provisioned private topology, put cluster nodes in internal network closed connections ourside world other via lb (or bastion)


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -