Access specific kubernetes pod from external

11/1/2016

I have a replication controller creating 10 instances of my pod. The pod runs a Zeppelin notebook which should be accessed by users over the web. However I need the possibility to access a specific notebook/pod over the web. If I expose the pods using a service of type LoadBalancer I will automatically be routed to any pod.

Is there a way to expose an extra IP per pod or another way to access specific pods over the web? Or is the only way to create 10 replication controllers and 10 services?

-- nik
kubernetes

2 Answers

11/3/2016

Another option a colleague of mine just came up with is to create an own namespace per needed replication and deploy the same replication controller and service into those. That's at least a bit more comfortable and offers a higher level of isolation.

-- nik
Source: StackOverflow

11/2/2016

To get 1:1 IP addresses you'd need a replication controller for each site. Replication controllers are for managing identically configured resources.

However, you could always do host-based or path-based routing to get to the right service / pod. That way you could just have a subdomain + mapping for each user.

-- pnovotnak
Source: StackOverflow