From da5800c268c09b6d09558d55041474ac692719f3 Mon Sep 17 00:00:00 2001 From: jon4hz Date: Wed, 28 Dec 2022 15:25:47 +0100 Subject: [PATCH] fix: allow setting of nodeport --- helm-charts/infisical/templates/frontend-deployment.yaml | 3 +++ helm-charts/infisical/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/helm-charts/infisical/templates/frontend-deployment.yaml b/helm-charts/infisical/templates/frontend-deployment.yaml index 99d94f9b98..c276ed8a50 100644 --- a/helm-charts/infisical/templates/frontend-deployment.yaml +++ b/helm-charts/infisical/templates/frontend-deployment.yaml @@ -48,3 +48,6 @@ spec: - protocol: TCP port: 3000 # service targetPort: 3000 # container port + {{- if eq .Values.frontend.service.type "NodePort" }} + nodePort: {{ .Values.frontend.service.nodePort }} + {{- end }} \ No newline at end of file diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yaml index ba4457d50c..8aa70ea81a 100644 --- a/helm-charts/infisical/values.yaml +++ b/helm-charts/infisical/values.yaml @@ -11,7 +11,10 @@ frontend: tag: "latest" # kubeSecretRef: some-kube-secret-name service: + # type of the frontend service type: ClusterIP + # define the nodePort if service type is NodePort + # nodePort: backend: replicaCount: 1