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

z2jh ingress not working #3299

Closed
bpfrd opened this issue Dec 15, 2023 · 4 comments
Closed

z2jh ingress not working #3299

bpfrd opened this issue Dec 15, 2023 · 4 comments
Labels

Comments

@bpfrd
Copy link

bpfrd commented Dec 15, 2023

Hi,

here is ingress part of my config:

 ingress:
    annotations:
      kubernetes.io/tls-acme: "true"
    enabled: true
    hosts:
      - domain
    tls:
      - hosts:
        - domain
        secretName: my-tls-secret

here is the output of k get svc and k get ingress:

NAME           TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
kubernetes     ClusterIP   10.152.183.1     <none>        443/TCP    25h
course-svc     ClusterIP   None             <none>        <none>     4h6m
hub            ClusterIP   10.152.183.130   <none>        8081/TCP   4h6m
proxy-api      ClusterIP   10.152.183.185   <none>        8001/TCP   4h6m
proxy-public   ClusterIP   10.152.183.71    <none>        80/TCP     4h6m
NAME         CLASS     HOSTS                 ADDRESS   PORTS     AGE
jupyterhub   traefik   domain             80, 443   4h6m

As you see, the address is empty in the ingress. here is the output of k get ingress -o yaml

apiVersion: v1
items:
- apiVersion: networking.k8s.io/v1
  kind: Ingress
  metadata:
    annotations:
      kubernetes.io/tls-acme: "true"
      meta.helm.sh/release-name: nbgrader
      meta.helm.sh/release-namespace: default
    creationTimestamp: "2023-12-15T10:04:58Z"
    generation: 1
    labels:
      app: jupyterhub
      app.kubernetes.io/managed-by: Helm
      chart: jupyterhub-3.0.3
      component: ingress
      heritage: Helm
      release: nbgrader
    name: jupyterhub
    namespace: default
    resourceVersion: "121228"
    uid: 61fc4f3f-064c-44a5-af07-f1355d474b84
  spec:
    ingressClassName: traefik
    rules:
    - host: domain
      http:
        paths:
        - backend:
            service:
              name: proxy-public
              port:
                name: http
          path: /
          pathType: Prefix
    tls:
    - hosts:
      - domain
      secretName: my-tls-secret
  status:
    loadBalancer: {}
kind: List
metadata:
  resourceVersion: ""

I was wondering how I can fix this? I'm running a single-node microk8s cluster

best regards,

@bpfrd bpfrd added the bug label Dec 15, 2023
Copy link

welcome bot commented Dec 15, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@manics
Copy link
Member

manics commented Dec 15, 2023

You'll need to ensure you've got an ingress controller in your cluster: https://z2jh.jupyter.org/en/stable/kubernetes/other-infrastructure/step-zero-other.html

@manics manics added support and removed bug labels Dec 15, 2023
Copy link

Hi there @bpfrd 👋!

I closed this issue because it was labelled as a support question.

Please help us organize discussion by posting this on the https://discourse.jupyter.org/ forum. If it's your first time posting
please read https://discourse.jupyter.org/t/getting-good-answers-to-your-questions/1825.
The more information you provide the more likely we can help you.

Our goal is to sustain a positive experience for both users and developers. We use GitHub issues for specific discussions related to changing a repository's content, and let the forum be where we can more generally help and inspire each other.

Thanks you for being an active member of our community! ❤️

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
@bpfrd
Copy link
Author

bpfrd commented Dec 15, 2023

You'll need to ensure you've got an ingress controller in your cluster: https://z2jh.jupyter.org/en/stable/kubernetes/other-infrastructure/step-zero-other.html

Thanks for your response. I posted this with more details on the discourse.jupyter https://discourse.jupyter.org/t/jupyterhub-z2jh-ingress-not-working/22940 I really appreciate it if you could have a look sometimes.

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

No branches or pull requests

2 participants