fix: add svc and lb

This commit is contained in:
2025-09-26 17:39:36 +02:00
parent bddf6ee703
commit 8f18128e37
2 changed files with 34 additions and 0 deletions
@@ -0,0 +1,15 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-world-lb
namespace: slurm
spec:
description: Allow ingress from world
endpointSelector:
matchLabels:
app.kubernetes.io/name: slurmdbd
ingress:
- fromEntities:
- world
{{- end}}
+19
View File
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/instance: slurm
app.kubernetes.io/name: slurmdbd
name: slurm-lb
namespace: slurm
spec:
allocateLoadBalancerNodePorts: true
type: LoadBalancer
loadBalancerIP: 10.255.241.15
ports:
- name: slurmdbd
port: 6819
targetPort: slurmdbd
selector:
app.kubernetes.io/instance: slurm
app.kubernetes.io/name: slurmdbd