proteus: Add netpol
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{{- if .Values.clusterConfig.cilium.enabled }}
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: proteus-egress
|
||||
namespace: proteus
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels: {}
|
||||
egress:
|
||||
# Temporal frontend (in-cluster on ekman)
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: temporal
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "7233"
|
||||
protocol: TCP
|
||||
# k8s API server (for batch/v1 Job create/poll/delete)
|
||||
- toEntities:
|
||||
- kube-apiserver
|
||||
# DNS
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: kube-system
|
||||
k8s-app: kube-dns
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "53"
|
||||
protocol: UDP
|
||||
- port: "53"
|
||||
protocol: TCP
|
||||
# RabbitMQ on oceanbox via NodePort (prod: 30672, staging: 31672)
|
||||
- toCIDR:
|
||||
- 10.255.241.0/24
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "30672"
|
||||
protocol: TCP
|
||||
- port: "31672"
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user