N
N
NosovK2018-07-17 01:28:39
linux
NosovK, 2018-07-17 01:28:39

How to bind service to IP in Rancher (Kubernetis)?

Given:
- server with rancher
- server with rancher-agent and 4 ip (actually it's a server with Kubernetes cluster)
How to tell rancher-agent that a host has multiple IPs?
It binds to 0.0.0.0. Accordingly, one port cannot be used for different services on different ip.
hostPort binds to all ip addresses of the host, without the ability to select a specific one.
https://github.com/rancher/rancher/issues/14550 the option to specify ip along with the port does not help
. Is it possible to use ip separately somehow? So that I have one instance of the service on ip2:65, and another on ip3:65?
That is, I need to bind the workload not just to a port, like a nodeport or hostport, but also to bind it to a specific ip.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2018-08-06
@MaxDukov

judging by the QA of Rancher himself - no way.
Yes, and it looks across the ideology of the cuber, in fact, you will hard pin the container to a specific host address. Unless ingress could be posted on these different IPs, but even here the profit is doubtful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question