* feat: Allow setting the type for the dashboard service. (We have a requirement to run it as NodePort). Default to what it is if not set. Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Bump Chart version. Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Add serviceType into values.yaml Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Address review comments: Remove old changes annotation. Rename serviceType to service.type. Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Bump Chart version. Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Fix typo Signed-off-by: Dan Tulovsky <dant@lightstep.com> * FIx indentation (lint error) Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Update README Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Update charts/argo-rollouts/README.md Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Signed-off-by: Dan Tulovsky <dant@lightstep.com> * Apply suggestions from code review Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * fix changelog Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> * docs: Add warning about exposing the Dashboard via Service type Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
23 lines
657 B
YAML
23 lines
657 B
YAML
{{- if .Values.dashboard.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "argo-rollouts.fullname" . }}-dashboard
|
|
labels:
|
|
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
|
{{- with .Values.serviceAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.dashboard.service.type }}
|
|
ports:
|
|
- name: dashboard
|
|
protocol: TCP
|
|
port: 3100
|
|
targetPort: 3100
|
|
selector:
|
|
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
|
{{- include "argo-rollouts.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|