From 7edc9a0ec3a1263ff470d253ed2244d000e43266 Mon Sep 17 00:00:00 2001 From: Samuel Wyma Date: Mon, 2 Sep 2019 20:55:41 +0100 Subject: [PATCH] Be able to specify port name on ui pod --- charts/argo/templates/ui-deployment.yaml | 6 ++++++ charts/argo/values.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/charts/argo/templates/ui-deployment.yaml b/charts/argo/templates/ui-deployment.yaml index 7bd712c0..54b5c835 100644 --- a/charts/argo/templates/ui-deployment.yaml +++ b/charts/argo/templates/ui-deployment.yaml @@ -25,6 +25,12 @@ spec: - name: ui image: "{{ .Values.images.namespace }}/{{ .Values.images.ui }}:{{ default .Values.images.tag .Values.ui.image.tag }}" imagePullPolicy: {{ .Values.images.pullPolicy }} + {{- if .Values.ui.podPortName }} + ports: + - name: {{ .Values.ui.podPortName }} + containerPort: 8001 + protocol: TCP + {{- end }} env: {{- if .Values.ui.forceNamespaceIsolation }} - name: FORCE_NAMESPACE_ISOLATION diff --git a/charts/argo/values.yaml b/charts/argo/values.yaml index 500ec06c..c1c5545c 100644 --- a/charts/argo/values.yaml +++ b/charts/argo/values.yaml @@ -23,6 +23,7 @@ controller: podAnnotations: {} # Optional labels to add to the controller pods podLabels: {} + # podPortName: http metricsConfig: enabled: false path: /metrics