From 4e01ae735ad25a234075414e84b56b9ea7ddd99b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Wed, 7 Sep 2022 16:40:07 +0200 Subject: [PATCH] real heart images --- helm/templates/deployment.yaml | 22 ++++++++++++++++++++-- helm/values.yaml | 5 ++--- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 96fd4d4..4e8788e 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -27,10 +27,10 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - - name: {{ .Chart.Name }} + - name: heart-front securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.image.static }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http @@ -46,6 +46,24 @@ spec: port: http resources: {{- toYaml .Values.resources | nindent 12 }} + - name: heart-api + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.api }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + args: [ api ] + ports: + - name: api + containerPort: 3000 + protocol: TCP + livenessProbe: + tcpSocket: + port: api + readinessProbe: + tcpSocket: + port: api + resources: + {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/helm/values.yaml b/helm/values.yaml index 0551991..74dc819 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -5,10 +5,9 @@ replicaCount: 1 image: - repository: nginx + api: bgatellier/heart-novit:1.0 + static: mcluseau/heart-front:latest pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" imagePullSecrets: [] nameOverride: ""