I've a cluster with kubernetes (k8s) v.1.16 on-premise. I've installed MetalLB (v.0.9.3) and Nginx (v.1.9.1). MetalLB set ingress-nginx external IP correctly. Then I deployed the following example of a tea and coffee service:
https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/complete-example
When I do a --curl to test the application, from inside the cluster:
IC_IP=xxx.xxx.xxx.xx (External IP assigned by MetalLB to nginx)
IC_HTTPS_PORT=443
curl --resolve cafe.example.com:$IC_HTTPS_PORT:$IC_IP https://cafe.example.com:$IC_HTTPS_PORT/coffee --insecure
It works and I get the following response:
Server address: 192.168.142.204:8080
Server name: coffee-7c45f487fd-kks2q
Date: 11/Dec/2020:13:38:41 +0000
URI: /coffee
Request ID: d8c077785ab3a5e36514cf1719c9ea11
The problem is that I can't access from outside the cluster. I tried from Google Chrome with https://cafe.example.como/coffee and https://xxx.xxx.xxx.xx/coffee and I got the following response:
This site can´t be reached
The webpage at https://cafe.example.com/coffee might be temporarily down or it have moved permanently to a new web address.
Any suggestions why I can't access from outside the cluster?
Thank you very much.
Greetings.