How to access the external IP of a K3s running in a docker container?

5/20/2020

I have installed k3s in a docker container, which has an ingress-nginx-ingress-controller installed (I have removed the traefik chart since the use of ingress is necessary for the test) type LoadBalancer and an external IP assigned LoadBalancer Ingress: 172.17.0.4

I have successfully deployed an application running at http://my-app-in-production.172.17.0.4.nip.io. My etc/hosts file has an entry 127.0.0.1 kubernetes.docker.internal

docker ps

CONTAINER ID        IMAGE                                                                                         COMMAND                  CREATED             STATUS              PORTS                                          NAMES
259d0327b370        theimagerepository   "/bin/k3s server --c…"   About an hour ago   Up About an hour    0.0.0.0:6443->6443/tcp, 0.0.0.0:8080->80/tcp   k3s

how can I on my host machine access http://my-app-in-production.172.17.0.4.nip.io?

-- Sofia
docker
k3s
kubernetes
nginx-ingress

0 Answers