'How to schedule a pod to a specific node, and the client can only access that node to get service?
I have a k8s cluster with one master and three workers (worker1:192.168.1.1, worker2:192.168.1.2, worker3:192.168.1.3).
Now, I can use nodeName to force the k8s to schedule one pod to worker3. I want the client can only access that pod using the worker3 IP address and port(192.168.1.3), which means they can not reach that pod using the master, worker1, and worker2 addresses.
Is it possible to do this?
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
