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

21 lines
490 B
YAML

apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-prometheus-metrics
namespace: loki
spec:
description: Allow Prometheus read and write
endpointSelector:
matchLabels:
app.kubernetes.io/instance: loki
ingress:
- fromEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: prometheus
toPorts:
- ports:
- port: "3100"
protocol: TCP
- port: "3500"
protocol: TCP