fix(spegel): Correct policies

This commit is contained in:
2025-11-10 17:09:26 +01:00
parent cf35b76fa7
commit 991afc4f72
4 changed files with 4 additions and 38 deletions
@@ -3,12 +3,12 @@ apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-api-server
namespace: slinky
namespace: spegel
spec:
egress:
- toEntities:
- kube-apiserver
endpointSelector:
matchLabels:
app.kubernetes.io/instance: slurm-operator
app.kubernetes.io/instance: spegel
{{- end}}
@@ -1,14 +0,0 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-host-to-slurm-operator
namespace: slinky
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/instance: slurm-operator
ingress:
- fromEntities:
- host
{{- end}}
@@ -3,11 +3,11 @@ apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-prometheus-metrics
namespace: slinky
namespace: spegel
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/instance: slurm-operator
app.kubernetes.io/instance: spegel
ingress:
- fromEndpoints:
- matchLabels:
@@ -1,20 +0,0 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-remote-node-webhooks
namespace: slinky
spec:
endpointSelector:
matchLabels: {}
ingress:
- fromEntities:
- kube-apiserver
- remote-node
toPorts:
- ports:
- port: "443"
protocol: TCP
- port: "9443"
protocol: TCP
{{- end}}