fix: add svc and lb
This commit is contained in:
@@ -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}}
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user