From 1d813b03a41397b25c3b3068cd060e0de07f90f0 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani <45800463+rchincha@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:08:48 -0700 Subject: [PATCH] Frostman svc nodeport (#19) * feat: ability to choose specific service nodePort Signed-off-by: Sergei Lukianov * fix: bump up the chart version to 0.1.31 Signed-off-by: Ramkumar Chinchani * fix: add spaces before comment Signed-off-by: Ramkumar Chinchani --------- Signed-off-by: Sergei Lukianov Signed-off-by: Ramkumar Chinchani Co-authored-by: Sergei Lukianov --- charts/zot/Chart.yaml | 2 +- charts/zot/templates/service.yaml | 3 +++ charts/zot/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/zot/Chart.yaml b/charts/zot/Chart.yaml index 62a3b3d..16f5346 100644 --- a/charts/zot/Chart.yaml +++ b/charts/zot/Chart.yaml @@ -3,4 +3,4 @@ appVersion: v2.0.0-rc6 description: A Helm chart for Kubernetes name: zot type: application -version: 0.1.30 +version: 0.1.31 diff --git a/charts/zot/templates/service.yaml b/charts/zot/templates/service.yaml index ca33135..ce9da35 100644 --- a/charts/zot/templates/service.yaml +++ b/charts/zot/templates/service.yaml @@ -15,5 +15,8 @@ spec: targetPort: zot protocol: TCP name: zot + {{- if .Values.service.nodePort }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: {{- include "zot.selectorLabels" . | nindent 4 }} diff --git a/charts/zot/values.yaml b/charts/zot/values.yaml index 4036b36..4729098 100644 --- a/charts/zot/values.yaml +++ b/charts/zot/values.yaml @@ -18,6 +18,7 @@ serviceAccount: service: type: NodePort port: 5000 + nodePort: null # Set to a specific port if type is NodePort # Annotations to add to the service annotations: {} # Enabling this will publicly expose your zot server