I am learning kubernetes. I set up two node test cluster using RKE1 on my servers (not cloud). But I stuck in network topic. ClusterIP and NodePort are simple and OK. But LoadBalancer and Ingress gets complicated.
For example I have two Kubernetes host host1 and host2. Rke1 have built in nginx-ingress. And also I have two web applications app1 and app2. I want to access to apps using urls shown below:
- host1:8080, host2:8080 -> app1:80
- host1:8090, host2:8090 -> app2:80
I used docker swarm before. This scenario is very easy in swarm. In Kubernetes I tried different methods but I was failed. Can you help me about suitable and best practise solutions for the problem? Thanks