21 lines
490 B
YAML
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
|