Fix network policy

This commit is contained in:
Alejandro Moreno
2019-12-20 10:04:14 +00:00
parent 3a4be0415b
commit e7251bc8ae

View File

@@ -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