fix: add local loki cilium network policies

This commit is contained in:
2025-02-07 13:43:18 +01:00
parent 7483a52cdd
commit 7971b73a75
6 changed files with 95 additions and 0 deletions
@@ -0,0 +1,18 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-loki-backend-to-api-server
namespace: loki
spec:
description: Promtail needs to reach kube-apiserver
egress:
- toEntities:
- kube-apiserver
toPorts:
- ports:
- port: "6443"
protocol: TCP
endpointSelector:
matchLabels:
app.kubernetes.io/component: backend
app.kubernetes.io/instance: loki