From 3aaa472f77e7beff47d68f60d92568ffd023ab1e Mon Sep 17 00:00:00 2001 From: Joel Arrechea Date: Mon, 19 Aug 2024 11:21:02 +0200 Subject: [PATCH] Added nodePort as an attribute of the Helm chart. (#1117) Co-authored-by: Joel --- helm/squidex/templates/service.yaml | 3 +++ helm/squidex/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/helm/squidex/templates/service.yaml b/helm/squidex/templates/service.yaml index 6bab1add01..dab6ce9c79 100644 --- a/helm/squidex/templates/service.yaml +++ b/helm/squidex/templates/service.yaml @@ -11,5 +11,8 @@ spec: targetPort: http protocol: TCP name: http + {{- if and (eq (lower .Values.service.type) "nodeport") .Values.service.nodePort }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: {{- include "squidex.selectors" . | indent 4 }} \ No newline at end of file diff --git a/helm/squidex/values.yaml b/helm/squidex/values.yaml index 89d9c86f25..b9dc2d765c 100644 --- a/helm/squidex/values.yaml +++ b/helm/squidex/values.yaml @@ -9,6 +9,9 @@ service: ## @param service.port Kubernetes Service port ## port: 80 + ## @param service.port Kubernetes Service port + ## + nodePort: null deployment: ## @param deployment.replicaCount Number of instances. ##