0

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.

ACM
  • 1
  • 1
  • 1
    This might help https://kubernetes.github.io/ingress-nginx/troubleshooting/ – Tummala Dhanvi Dec 12 '20 at 03:26
  • Thank you for answering @TummalaDhanvi . I have followed that article and everything is correct. But I still can't access it from outside the culster. – ACM Dec 13 '20 at 15:14
  • It's hard to guess. Can you provide your configuration manifests? Its on your local machine? Are you using any virtualization tools like VMWare or VirtualBox? You are using MetalLB and Nginx Ingress? It's Kubeadm or Minikube? All configuration which might help to replicate your environment would be useful. – PjoterS Dec 14 '20 at 09:22

0 Answers0