Skip to content

Commit 93c9973

Browse files
jupyterhub docs
1 parent 36bade2 commit 93c9973

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

jupyterhub/helm/jupyterhub/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jupyterhub:
2323
- to:
2424
- ipBlock:
2525
cidr: 0.0.0.0/0
26-
26+
2727
proxy:
2828
service:
2929
type: ClusterIP
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Network Policy
2+
3+
Jupyterhub makes extensive use of kubernetes network policies. This allows you to finely scope a jupyter notebook's access to resources available on the network, which can be very important in a multi-tenant kubernetes cluster. That said, you might want to expose some services to your network either on-cluster or in an adjacent network, and here are some recipes to do that.
4+
5+
In all cases, the following yaml will be added to `jupyterhub/helm/jupyterhub/values.yaml` or you can modify directly in the console at `/apps/jupyterhub/config`
6+
7+
## Get access to an adjacent namespace
8+
9+
```yaml
10+
jupyterhub:
11+
jupyterhub:
12+
singleuser:
13+
networkPolicy:
14+
egress:
15+
- to:
16+
- namespaceSelector:
17+
matchLabels:
18+
kubernetes.io/metadata.name: <namespace>
19+
```
20+
21+
## Get access to a CIDR range
22+
23+
24+
```yaml
25+
jupyterhub:
26+
jupyterhub:
27+
singleuser:
28+
networkPolicy:
29+
egress:
30+
- to:
31+
- ipBlock:
32+
cidr: 10.0.0.0/16 # access resources on an internal subnetwork for example
33+
```
34+
35+
## Combine multiple policies
36+
37+
38+
```yaml
39+
jupyterhub:
40+
jupyterhub:
41+
singleuser:
42+
networkPolicy:
43+
egress:
44+
- to:
45+
- namespaceSelector:
46+
matchLabels:
47+
kubernetes.io/metadata.name: <namespace>
48+
- to:
49+
- ipBlock:
50+
cidr: 10.0.0.0/16
51+
```

jupyterhub/repository.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ icon: plural/icons/jupyterhub.png
55
releaseStatus: BETA
66
notes: plural/notes.tpl
77
homepage: https://jupyter.org/hub
8+
docs: plural/docs
89
gitUrl: https://github.com/jupyterhub/jupyterhub
910
oauthSettings:
1011
uriFormat: https://{domain}/hub/oauth_callback

0 commit comments

Comments
 (0)