Skip to content

Commit cd0be91

Browse files
authored
Enable ingress access from within cluster (#352)
Currently ingress have rule to allow access from outside cluster, but have no rule to access from within cluster. This PR introduces fix for allow ingress access from any namespace by default. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new network policy for managing ingress traffic, enhancing security and traffic management capabilities. - The policy is dynamically configured based on the tenant's settings, allowing for tailored network access. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Andrei Kvapil <[email protected]>
1 parent 0f312d5 commit cd0be91

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,21 @@ spec:
8383
{{- end }}
8484
{{- end }}
8585
---
86+
{{- if .Values.ingress }}
87+
apiVersion: cilium.io/v2
88+
kind: CiliumClusterwideNetworkPolicy
89+
metadata:
90+
name: {{ include "tenant.name" . }}-ingress-ingress
91+
spec:
92+
endpointSelector:
93+
matchLabels:
94+
"k8s:io.kubernetes.pod.namespace": "{{ include "tenant.name" . }}"
95+
cozystack.io/service: ingress
96+
ingress:
97+
- fromEndpoints:
98+
- {}
99+
{{- end }}
100+
---
86101
{{- if .Values.etcd }}
87102
apiVersion: cilium.io/v2
88103
kind: CiliumClusterwideNetworkPolicy

0 commit comments

Comments
 (0)