In your setup you are using 3 types of ingress ( HTTP application routing add-on, AGIC addon , and the native unmanaged Ingress controller in one of the ingress YAML files).
Better to decide which one do want to use since there will be an annotation in ingress route YAML to decide which one should be used.
This annotation for HTTP app routing addon:
annotations:
kubernetes.io/ingress.class: addon-http-application-routing
This annotation for AGIC addon:
annotations:
kubernetes.io/ingress.class: azure/application-gateway
and for native unmagaed, we don't use annotation but we use the ingressclass ( kubectl get ingressclass) and the default value will be ingress:
spec:
ingressClassName: nginx
For your installation, use of of these ways and create the ingress route based on the selected way as in the links which I shared above.
Keep in mind the following:
- If you added a host in the ingress route YAML then you should not access the ingress IP since the routing will be based host name not IP. ( you will get 404 if you access the IP direclty)
- If you used a public host name then the ingress IP address should be added to the global DNS for your domain to be able to access your domain publicly.
- If your domain is local and you need to test then you add it it to the hosts file on your machine or use this command:
curl -H 'Host:domain-name.com' https://IPaddress/pathIfExists -k
Hope this helps, and please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.