close metrics port for external

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
This commit is contained in:
IvanHunters
2025-11-04 12:00:30 +03:00
parent eea685065a
commit 52a23eacfc
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: {{ include "flux-operator.fullname" . }}-restrict
spec:
nodeSelector: {}
ingressDeny:
- fromEntities:
- world
toPorts:
- ports:
- port: "8080"
protocol: TCP
- port: "8081"
protocol: TCP
ingress:
- fromEntities:
- cluster

View File

@@ -4,7 +4,7 @@ flux-operator:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoSchedule
hostNetwork: false
hostNetwork: true
resources:
limits:
cpu: 100m