fix(jupyterhub): network policy
This commit is contained in:
@@ -141,6 +141,7 @@ singleuser:
|
|||||||
|
|
||||||
extraEnv:
|
extraEnv:
|
||||||
VAULT_ADDR: "{{ .Env.VAULT_ADDR }}"
|
VAULT_ADDR: "{{ .Env.VAULT_ADDR }}"
|
||||||
|
|
||||||
networkPolicy:
|
networkPolicy:
|
||||||
egress:
|
egress:
|
||||||
- to:
|
- to:
|
||||||
@@ -182,14 +183,29 @@ singleuser:
|
|||||||
ports:
|
ports:
|
||||||
- port: 8200
|
- port: 8200
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
# Allow DNS resolution
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
ports:
|
||||||
|
- port: 53
|
||||||
|
protocol: UDP
|
||||||
|
- port: 53
|
||||||
|
protocol: TCP
|
||||||
|
# Allow HTTP traffic
|
||||||
|
- to:
|
||||||
|
- ipBlock:
|
||||||
|
cidr: 0.0.0.0/0
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
# Allow HTTPS traffic
|
||||||
- to:
|
- to:
|
||||||
- ipBlock:
|
- ipBlock:
|
||||||
cidr: 0.0.0.0/0
|
cidr: 0.0.0.0/0
|
||||||
ports:
|
ports:
|
||||||
- port: 443
|
- port: 443
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
domains:
|
|
||||||
- '*.shds.dev'
|
|
||||||
|
|
||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
@@ -248,6 +264,13 @@ singleuser:
|
|||||||
# nvidia.com/gpu: "1"
|
# nvidia.com/gpu: "1"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
cull:
|
||||||
|
enabled: true
|
||||||
|
timeout: 7200 # 2 hours idle timeout
|
||||||
|
every: 600 # Check every 10 minutes
|
||||||
|
adminUsers: true # Also cull admin users' server pods
|
||||||
|
users: false # Don't delete user accounts, only stop server pods
|
||||||
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
|
|
||||||
@@ -263,10 +286,3 @@ ingress:
|
|||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- {{ .Env.JUPYTERHUB_HOST }}
|
- {{ .Env.JUPYTERHUB_HOST }}
|
||||||
|
|
||||||
cull:
|
|
||||||
enabled: true
|
|
||||||
timeout: 7200 # 2 hours idle timeout
|
|
||||||
every: 600 # Check every 10 minutes
|
|
||||||
adminUsers: true # Also cull admin users' server pods
|
|
||||||
users: false # Don't delete user accounts, only stop server pods
|
|
||||||
|
|||||||
Reference in New Issue
Block a user