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?
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.
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.