User cannot install packages with jupyternotebook terminal since name resolution does not work

User cannot install packages with jupyternotebook terminal since name resolution does not work as you can see on the picture. on the server that jupyterhub installed DNS is working and connected to internet, the only thing is that the jupyterhub server is behind the firewall and can be only accessed through http, and https and SSH protocl…all other ports are closed.
What is the problem with name resolution?

I used microk8s-zero to hub installation guide and dns module is enabled and coredns is running and service/kube-dns is up on IP 10.152.183.10

You haven’t said anything about your setup so I’m assuming you’re using the default Z2JH config… in which case the problem is mostly like in the micro-k8s setup. We rely on the community to maintain the micro-k8s docs, hopefully someone here will know.

Hi Manics;

I followed Z2JH installation guide and microk8s setup for kubernetes single node cluster…as you can see on the following pics, coredns is running and got internal IP address…
I stop centos7 firewalld but as I mentioned above my server is behind the enterprise firewall and from outside; clients can only reach it via htpp, https and SSH protocol all other ports are closed…calico-kube-controllers and calico-node pods also running…

Don’t know if it is due to firewall or somewhere in installation steps I did sth wrong.

I found the answer, my first guess was correct it cannot see the DNS since server is behind firewall and firewall was blocked it…but I’m wondering on the server which jupyterhub was installed DNS resolving happens but when request comes from user from jupyternotebook terminal with firewall blocking DNS for user; it cannot resolve!! (I mean resolving happens via server, and server have access to DNS!!!)
if user’s request sends to jupyterhub via http to the server and on the server terminal resolve can happen; Why blocking DNS port (53) with firewall user cannot resolve and install packages via terminal?!!

1 Like