Hey, I would like to ask you about some assistance:
Entrypoint to cluster for http/https is NGINX: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.25.0 running as deamonset
I want to achieve 2 things:
- preserve source IP of client
- direct traffic to nginx replica on current server (so if request is sent to server A, listed as externalIP address, nginx on node A should handle it)
- How is it possible?
- Is it possible without nodeport?
Control plane can be started with custom --service-node-port-range so I can add nodeport for 80 and 443, but it looks a little bit like a hack (after reading about nodeport intended usage)
Kubernetes version: v15.1
Cloud being used: bare-metal
Installation method: Manual, using deployments
Host OS: Ubuntu 18.04
CNI and version: Weavenet 2.6
CRI and version: Docker 18.9