apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: jupyter-netpol namespace: {{ .Release.Namespace }} labels: app: jupyter tenant: 'tenant-{{ .Values.name }}' spec: podSelector: matchLabels: app: jupyter tenant: 'tenant-{{ .Values.name }}' policyTypes: - Ingress - Egress # Entrée ingress: - ports: - protocol: TCP port: 8888 # Sortie egress: - to: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: kube-system ports: - protocol: UDP port: 53 - protocol: TCP port: 53 # 2. Vers MinIO - to: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: minio ports: - protocol: TCP port: 9000