Is there a convenient syntax for exposing many ports in a Kubernetes service?

6/20/2016

I am trying to model a 3 nodes Couchbase cluster on Kubernetes. I have created a separate replication controller for each node based on this suggestion. Now, I am trying to define a Kubernetes service for each node with all the required ports. But, as per this documentation, it will require many ports to be opened in service definition. Is there a convenient way to open range of ports in the service definition?

-- Anand Patel
kubernetes

1 Answer

6/20/2016

is there a convenient way to open range of ports in the service definition?

Not yet: https://github.com/kubernetes/kubernetes/issues/23864

I replied to the linked question about petset too.

-- Prashanth B
Source: StackOverflow