Hello people,
I am implementing traefik on kubernetes here in my company, but I have difficulty accessing hosts
My kuberntes cluster is below an internal network (VPN) without external access.
kubectl get nodes
NAME STATUS ROLES AGE VERSION
itp-kub-01 Ready <none> 3d8h v1.15.4
itp-kub-02 Ready <none> 3d8h v1.15.4
itp-kub-clx Ready master 3d8h v1.15.4 (172.16.50.144)
kubectl cluster-info
Kubernetes master is running at https://172.16.50.144:6443
KubeDNS is running at https://172.16.50.144:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
By setting service/traefik-web-ui to type: NodePort, I can easily access
But accessing from the host configured on ingress does not work(https://github.com/containous/traefik/blob/v1.7/examples/k8s/ui.yaml):
$ curl http://traefik-ui.minikube/
curl: (7) Failed to connect to traefik-ui.minikube port 80: connection refused
Ingress description
kubectl describe ing -n kube-system
Name: traefik-web-ui
Namespace: kube-system
Address:
Default backend: default-http-backend:80 (<none>)
Rules:
Host Path Backends
---- ---- --------
traefik-ui.minikube
/ traefik-web-ui:web (10.40.0.3:8080)
Annotations:
kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"extensions/v1beta1","kind":"Ingress","metadata":{"annotations":{},"name":"traefik-web-ui","namespace":"kube-system"},"spec":{"rules":[{"host":"traefik-ui.minikube","http":{"paths":[{"backend":{"serviceName":"traefik-web-ui","servicePort":"web"},"path":"/"}]}}]}}
Events: <none>
vi /etc/hosts
127.0.0.1 localhost
127.0.1.1 fplima
172.16.50.144 questcode.org
35.247.235.201 staging.questcode.org
200.215.80.66 fernandodelima.com.br
172.16.50.144 traefik-ui.minikube
172.16.50.142 itp-dock-01
172.16.50.142 itp-dock-01.portoitapoa.local
172.16.50.143 itp-dock-02
172.16.50.143 itp-dock-02.portoitapoa.local
172.16.50.71 itp-db-02.portoitapoa.local
192.168.99.100 dpaula.com
172.16.50.144 itp-kub-clx
172.16.50.144 itp-kub-clx.portoitapoa.local
172.16.50.145 itp-kub-01
172.16.50.145 itp-kub-01.portoitapoa.local
172.16.50.146 itp-kub-02
172.16.50.146 itp-kub-02.portoitapoa.local
172.16.50.75 NODE1.portoitapoa.local
172.16.50.75 NODE1
172.16.50.144 teste.dpaula.org
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters