From 96461122b0e556b87c9761adb3f219c203006707 Mon Sep 17 00:00:00 2001 From: Emre Berber Date: Mon, 19 Feb 2024 23:06:14 +0200 Subject: [PATCH] feat(kiali-server): add custom nodeport for service (#248) * feat(kiali-server): add custom nodeport for service * fix: service type node-port capital "N" * Apply suggestions from code review Co-authored-by: John Mazzitelli * Update kiali-server/templates/service.yaml Co-authored-by: John Mazzitelli * Update kiali-server/values.yaml Co-authored-by: John Mazzitelli * Update kiali-server/values.yaml Co-authored-by: John Mazzitelli * Update kiali-server/values.yaml Co-authored-by: John Mazzitelli * Update kiali-server/templates/service.yaml Co-authored-by: John Mazzitelli * add node_port field to values --------- Co-authored-by: Yunus Emre Berber Co-authored-by: John Mazzitelli --- kiali-server/templates/service.yaml | 3 +++ kiali-server/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/kiali-server/templates/service.yaml b/kiali-server/templates/service.yaml index 9c03447..111be7f 100644 --- a/kiali-server/templates/service.yaml +++ b/kiali-server/templates/service.yaml @@ -34,6 +34,9 @@ spec: {{- end }} protocol: TCP port: {{ .Values.server.port }} + {{- if and (not (empty .Values.server.node_port)) (eq .Values.deployment.service_type "NodePort") }} + nodePort: {{ .Values.server.node_port }} + {{- end }} {{- if .Values.server.observability.metrics.enabled }} - name: http-metrics appProtocol: http diff --git a/kiali-server/values.yaml b/kiali-server/values.yaml index daaa453..7341a9b 100644 --- a/kiali-server/values.yaml +++ b/kiali-server/values.yaml @@ -113,6 +113,7 @@ login_token: server: port: 20001 + #node_port: observability: metrics: enabled: true