argocd-helm/charts/argo/templates/ui-service.yaml
2018-12-14 11:01:22 -08:00

20 lines
574 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-{{ .Values.ui.name }}
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.ui.serviceAnnotations }}
annotations:
{{ toYaml .Values.ui.serviceAnnotations | indent 4}}{{- end }}
spec:
ports:
- port: {{ .Values.ui.servicePort }}
protocol: TCP
targetPort: 8001
selector:
app: {{ .Release.Name }}-{{ .Values.ui.name }}
sessionAffinity: None
type: {{ .Values.ui.serviceType }}