From 3ea2a463dd6d813b47aec1d56a6e64a65f7641f3 Mon Sep 17 00:00:00 2001 From: vampire-yuta Date: Sat, 11 May 2024 16:15:34 +0900 Subject: [PATCH] containerPort can be specified --- dev/helm/templates/deployment.yaml | 2 +- dev/helm/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/helm/templates/deployment.yaml b/dev/helm/templates/deployment.yaml index 62f02bc7..1d6d11b3 100644 --- a/dev/helm/templates/deployment.yaml +++ b/dev/helm/templates/deployment.yaml @@ -77,7 +77,7 @@ spec: {{- end }} ports: - name: http - containerPort: 3000 + containerPort: {{ .Values.containerPort }} protocol: TCP livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} diff --git a/dev/helm/values.yaml b/dev/helm/values.yaml index 1a450d6e..9899c791 100644 --- a/dev/helm/values.yaml +++ b/dev/helm/values.yaml @@ -13,6 +13,8 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +containerPort: 3000 + serviceAccount: # Specifies whether a service account should be created create: true