Files
manifests/apps/charts/sys-cilium-policies/templates/prometheus/CiliumNetworkPolicy-allow-opencost-scrape.yaml
T
2025-05-06 16:00:57 +02:00

20 lines
473 B
YAML

apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-opencost-scrape
namespace: prometheus
spec:
description: Allow OpenCost scrape
endpointSelector:
matchLabels:
app.kubernetes.io/name: prometheus
ingress:
- fromEndpoints:
- matchLabels:
app.kubernetes.io/name: opencost
io.kubernetes.pod.namespace: opencost
- toPorts:
- ports:
- port: "9090"
protocol: TCP