charts/goldilocks-7.3.1/templates/dashboard-service.yaml
2024-02-06 23:46:03 +08:00

29 lines
908 B
YAML

{{- if .Values.dashboard.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "goldilocks.fullname" . }}-dashboard
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: {{ include "goldilocks.name" . }}
helm.sh/chart: {{ include "goldilocks.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/component: dashboard
{{- with .Values.dashboard.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.dashboard.service.type }}
ports:
- port: {{ .Values.dashboard.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: {{ include "goldilocks.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: dashboard
{{- end }}