Skip to content

Commit 77c94a3

Browse files
feat(k8s): add frontend container to deployment
1 parent 090aa64 commit 77c94a3

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

helm-chart/templates/deployment.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,23 @@ spec:
6767
port: http
6868
resources:
6969
{{- toYaml .Values.resources | nindent 12 }}
70+
- name: {{ .Chart.Name }}-frontend
71+
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag | default .Chart.AppVersion }}"
72+
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
73+
ports:
74+
- name: http
75+
containerPort: 80
76+
protocol: TCP
77+
livenessProbe:
78+
httpGet:
79+
path: /
80+
port: http
81+
readinessProbe:
82+
httpGet:
83+
path: /
84+
port: http
85+
resources:
86+
{{- toYaml .Values.resources | nindent 12 }}
7087
{{- with .Values.nodeSelector }}
7188
nodeSelector:
7289
{{- toYaml . | nindent 8 }}

helm-chart/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ tolerations: []
5454

5555
affinity: {}
5656

57+
frontend:
58+
image:
59+
repository: ghcr.io/codeforphilly/third-places/frontend
60+
pullPolicy: IfNotPresent
61+
# Overrides the image tag whose default is the chart appVersion.
62+
tag: 0.1.2
63+
5764
postgresql:
5865
image:
5966
repository: postgis/postgis

0 commit comments

Comments
 (0)