Skip to content

Commit 03ce734

Browse files
committed
Added container-internal host aliases,PG 11->13
1 parent dfcedec commit 03ce734

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/helm-chart/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ spec:
2424
imagePullSecrets:
2525
{{- toYaml . | nindent 8 }}
2626
{{- end }}
27+
{{- with .Values.hostAliases }}
28+
hostAliases:
29+
{{ toYaml . | nindent 8 }}
30+
{{- end }}
2731
serviceAccountName: {{ include "helm-chart.serviceAccountName" . }}
2832
securityContext:
2933
{{- toYaml .Values.podSecurityContext | nindent 8 }}

src/helm-chart/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ db:
2323
repository: postgres
2424
pullPolicy: IfNotPresent
2525
# Overrides the image tag whose default is the chart appVersion.
26-
tag: "11.3-alpine"
26+
tag: "13.2-alpine"
2727

2828

2929
storage:
@@ -57,6 +57,14 @@ securityContext: {}
5757
# runAsNonRoot: true
5858
# runAsUser: 1000
5959

60+
hostAliases:
61+
- ip: "127.0.0.1"
62+
hostnames:
63+
- "server"
64+
- "paws-compose-db"
65+
- "client"
66+
67+
6068
service:
6169
type: NodePort #ClusterIP
6270
port: 80

0 commit comments

Comments
 (0)