mirror of
https://github.com/bitnami/charts.git
synced 2026-03-07 08:07:55 +08:00
Fix network policy
This commit is contained in:
@@ -12,15 +12,15 @@ spec:
|
||||
# Allow inbound connections
|
||||
- ports:
|
||||
- port: 5432
|
||||
{{- if not .Values.networkPolicy.allowExternal }}
|
||||
from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
{{ template "postgresql-ha.fullname" . }}-client: "true"
|
||||
- podSelector:
|
||||
matchLabels: {{- include "postgresql-ha.matchLabels" . | nindent 18 }}
|
||||
app.kubernetes.io/component: pgpool
|
||||
{{- end }}
|
||||
{{- if not .Values.networkPolicy.allowExternal }}
|
||||
from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
{{ template "postgresql-ha.fullname" . }}-client: "true"
|
||||
- podSelector:
|
||||
matchLabels: {{- include "postgresql-ha.matchLabels" . | nindent 14 }}
|
||||
app.kubernetes.io/component: pgpool
|
||||
{{- end }}
|
||||
# Allow prometheus scrapes
|
||||
- ports:
|
||||
- port: 9187
|
||||
|
||||
Reference in New Issue
Block a user