Skip to content

Commit 4660b7a

Browse files
Lutherwavesmajiayu000
authored andcommitted
fix(helm): add custom egress rules to realtime network policy (#2481)
The realtime service network policy was missing the custom egress rules section that allows configuration of additional egress rules via values.yaml. This caused the realtime pods to be unable to connect to external databases (e.g., PostgreSQL on port 5432) when using external database configurations. The app network policy already had this section, but the realtime network policy was missing it, creating an inconsistency and preventing the realtime service from accessing external databases configured via networkPolicy.egress values. This fix adds the same custom egress rules template section to the realtime network policy, matching the app network policy behavior and allowing users to configure database connectivity via values.yaml.
1 parent 8651896 commit 4660b7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

helm/sim/templates/networkpolicy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ spec:
141141
ports:
142142
- protocol: TCP
143143
port: 443
144+
# Allow custom egress rules
145+
{{- with .Values.networkPolicy.egress }}
146+
{{- toYaml . | nindent 2 }}
147+
{{- end }}
144148
{{- end }}
145149

146150
{{- if .Values.postgresql.enabled }}

0 commit comments

Comments
 (0)