argocd-helm/charts/argo-cd/templates/argocd-application-controller/service.yaml

19 lines
720 B
YAML
Raw Normal View History

2019-11-05 00:17:25 +00:00
apiVersion: v1
kind: Service
metadata:
{{- if .Values.controller.service.annotations }}
annotations:
{{- range $key, $value := .Values.controller.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
name: {{ template "argo-cd.controller.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
2019-11-05 00:17:25 +00:00
spec:
ports:
- name: {{ .Values.controller.service.portName }}
2019-11-05 00:17:25 +00:00
port: {{ .Values.controller.service.port }}
targetPort: {{ .Values.controller.containerPort }}
selector:
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 4 }}