Code Review
/
ric-plt
/
ric-dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update Kong ingress controller to version 1.4. It fixes the occasional 404 error.
[ric-plt/ric-dep.git]
/
helm
/
infrastructure
/
subcharts
/
kong
/
charts
/
postgresql
/
templates
/
svc.yaml
diff --git
a/helm/infrastructure/subcharts/kong/charts/postgresql/templates/svc.yaml
b/helm/infrastructure/subcharts/kong/charts/postgresql/templates/svc.yaml
index
31b9b08
..
0baea4a
100755
(executable)
--- a/
helm/infrastructure/subcharts/kong/charts/postgresql/templates/svc.yaml
+++ b/
helm/infrastructure/subcharts/kong/charts/postgresql/templates/svc.yaml
@@
-9,23
+9,29
@@
metadata:
heritage: {{ .Release.Service | quote }}
{{- with .Values.service.annotations }}
annotations:
heritage: {{ .Release.Service | quote }}
{{- with .Values.service.annotations }}
annotations:
-{{ t
oYaml .
| indent 4 }}
+{{ t
pl (toYaml .) $
| indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
+ {{- end }}
+ {{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
+ loadBalancerSourceRanges:
+ {{ with .Values.service.loadBalancerSourceRanges }}
+{{ toYaml . | indent 4 }}
+{{- end }}
{{- end }}
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
ports:
{{- end }}
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
ports:
-
- name:
postgresql
-
port: {{ .Values.service.port
}}
-
targetPort:
postgresql
- {{- if .Values.service.nodePort }}
- nodePort: {{ .Values.service.nodePort }}
- {{- end }}
+
- name: tcp-
postgresql
+
port: {{ template "postgresql.port" .
}}
+
targetPort: tcp-
postgresql
+
{{- if .Values.service.nodePort }}
+
nodePort: {{ .Values.service.nodePort }}
+
{{- end }}
selector:
app: {{ template "postgresql.name" . }}
release: {{ .Release.Name | quote }}
selector:
app: {{ template "postgresql.name" . }}
release: {{ .Release.Name | quote }}