feat(jupyterhub): enable service monitor

This commit is contained in:
Masaki Yatsu
2025-11-09 21:29:40 +09:00
parent d3f1e0143e
commit f429bcb3f8
4 changed files with 109 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ hub:
JupyterHub:
authenticator_class: generic-oauth
admin_access: false
authenticate_prometheus: false
Authenticator:
enable_auth_state: true
@@ -132,6 +133,19 @@ hub:
podSecurityContext:
fsGroup: {{ .Env.JUPYTER_FSGID }}
networkPolicy:
ingress:
- from:
- podSelector:
matchLabels:
hub.jupyter.org/network-access-hub: "true"
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: {{ .Env.PROMETHEUS_NAMESPACE }}
ports:
- port: http
protocol: TCP
proxy:
service:
type: ClusterIP