Skip to content

Commit adbaeb0

Browse files
lexfreiclaude
andcommitted
fix(tenant): allow egress to vlogs in parent tenants
Add vlogs to the tenant egress CiliumClusterwideNetworkPolicy, mirroring the existing vminsert rule. This allows Fluent Bit in nested Kubernetes clusters to send logs to VLogs in parent tenants. Without this fix, logs from nested clusters timeout because Cilium blocks traffic to vlogs pods while metrics to vminsert work fine. Fixes #1970 Co-Authored-By: Claude <[email protected]> Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent 4fa7eed commit adbaeb0

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎packages/apps/tenant/templates/networkpolicy.yaml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,20 @@ spec:
5252
{{- end }}
5353
{{- end }}
5454
{{- end }}
55-
{{- end }}
55+
{{- end }}
56+
{{- if ne (include "tenant.name" .) "tenant-root" }}
57+
- toEndpoints:
58+
{{- if hasPrefix "tenant-" .Release.Namespace }}
59+
{{- $parts := splitList "-" .Release.Namespace }}
60+
{{- range $i, $v := $parts }}
61+
{{- if ne $i 0 }}
62+
- matchLabels:
63+
"k8s:app.kubernetes.io/name": "vlogs"
64+
"k8s:io.kubernetes.pod.namespace": {{ join "-" (slice $parts 0 (add $i 1)) }}
65+
{{- end }}
66+
{{- end }}
67+
{{- end }}
68+
{{- end }}
5669
{{- if ne (include "tenant.name" .) "tenant-root" }}
5770
- toEndpoints:
5871
{{- if hasPrefix "tenant-" .Release.Namespace }}

0 commit comments

Comments
 (0)