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

Allow exposing extra ports in autohttps/traefik deployment #1901

Merged
merged 2 commits into from
Nov 7, 2020

Conversation

yuvipanda
Copy link
Collaborator

Follow-up to #1852. Useful to explicitly expose ports
in deployment too - otherwise you can't use port names like
ssh in service definitions. To allow ingress on a port named
ssh in traefik right now, you have to know it is listening
on port 8022, and set the following:

proxy:
  autohttps:
    networkPolicy:
      allowedIngress: [http, https, 8022]

This requires knowledge that 8022 is the ssh port. Instead,
it would be nice to specify ssh instead - and that requires
defining that in the deployment. This is true for other places
too - like the service definition.


Follow-up to jupyterhub#1852. Useful to explicitly expose ports
in deployment too - otherwise you can't use port names like
`ssh` in service definitions. To allow ingress on a port named
`ssh` in traefik right now, you have to know it is listening
on port 8022, and set the following:

```yaml
proxy:
  autohttps:
    networkPolicy:
      allowedIngress: [http, https, 8022]
```

This requires knowledge that `8022` is the ssh port. Instead,
it would be nice to specify `ssh` instead - and that requires
defining that in the deployment. This is true for other places
too - like the service definition.
@consideRatio consideRatio merged commit 90e143e into jupyterhub:master Nov 7, 2020
@consideRatio
Copy link
Member

Nice! There is no publishing CI atm though as travis is down for us.

@consideRatio consideRatio changed the title Allow exposing extra ports in traefik deployment Allow exposing extra ports in autohttps/traefik deployment Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants