Hi! Im studying some kubernetes. I have already set up a 3 nodes cluster with one master without master taint so it acts as a worker. Making a simple two pages html to see how ingress works. I externally configured HAproxy as a loadbalancer. Im trying to resolve development.example.com to service1 and example.com to service2. The question is, how can i handle traffic in this case? when i configured loadblancer i used nodeip:nodeport. I need to handle this at the proxy level? srry for poor english. I got a working ingress. When i go to the url i get an NGINX error. (yeah!!). So now i have nginx access (with error) over port 80 and 443 over the three nodes. My ingress file is:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: bs-ingress
namespace: nginx-ingress
spec:
rules:
- host: example.com.ar
http:
paths:
- pathType: Prefix
path: “/”
backend:
service:
name: nginx-service
port:
number: 31888- host: development.example.com.ar
http:
paths:
- pathType: Prefix
path: “/”
backend:
service:
name: login-service
port:
number: 31887
If i navigate to the nodes ip, i can see the service working. but i cant get the url to resolve over the correct service. Should i copy more conf files?