Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxy-public is none #2

Open
bpfrd opened this issue Dec 13, 2023 · 3 comments
Open

proxy-public is none #2

bpfrd opened this issue Dec 13, 2023 · 3 comments

Comments

@bpfrd
Copy link

bpfrd commented Dec 13, 2023

Hi I tried to deploy the basic scripts. But the proxy-public external IP is always none. Shouldn't be the the same as the address of ingress service? I'm wondering how we can fix it?

[centos@master-01 basic]$ kubectl get svc
NAME           TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
kubernetes      ClusterIP   ip1       <none>        443/TCP    8m7s
proxy-public   ClusterIP   ip2    <none>        80/TCP     56s
proxy-api        ClusterIP   ip3   <none>        8001/TCP   56s
hub                 ClusterIP   ip4   <none>        8081/TCP   56s
[centos@master-01 basic]$ kubectl get ingress
NAME              CLASS     HOSTS   ADDRESS     PORTS   AGE
jupyter-ingress   traefik   *       ip5   80      7s
@dirkcgrunwald
Copy link
Owner

What version of k3s are you using? I haven't updated this in a while, I'll check & respond.

@bpfrd
Copy link
Author

bpfrd commented Dec 13, 2023

Thanks for your response. I'm using

[centos@master-01 z2jh]$ k3s -v
k3s version v1.28.4+k3s2 (6ba6c1b6)
go version go1.20.11

@bpfrd
Copy link
Author

bpfrd commented Dec 13, 2023

Just a general question: even with the default z2jh config file (except for replacing proxy->service->LoadBalancer with NodePort) I have the below services running:

[centos@master-01 z2jh]$ kubectl get svc
NAME           TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
kubernetes     ClusterIP   10.43.0.x       <none>        443/TCP        15m
hub            ClusterIP   10.43.70.x    <none>        8081/TCP       8m47s
proxy-api      ClusterIP   10.43.187.x    <none>        8001/TCP       8m47s
proxy-public   NodePort    10.43.164.x   <none>        80:31533/TCP   8m47s

If i do curl http://nodeportip/hub on the server it creates a new line in the logs

kubectl logs pod/hub-55c994b5b5-xh7l6 | tail
>[I 2023-12-13 17:23:16.088 JupyterHub log:191] 301 GET /hub -> /hub/

or my master node IP curl my-master-node-ip:31533/hub/xxxxxx also works too.
So it's working locally.
But I can't access jupyterhub in my local browser using http://my_public_ip:31533. I'm not familiar with networking but there seems to be a problem there. I was wondering how I can fix it?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants