Add helm/templates/networkpolicy.yaml
This commit is contained in:
16
helm/templates/networkpolicy.yaml
Normal file
16
helm/templates/networkpolicy.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-allow-ingress
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
app: mcp-server
|
||||
ingress:
|
||||
- fromEntities:
|
||||
- host
|
||||
- remote-node
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "{{ .Values.service.targetPort }}"
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user