19 lines
No EOL
720 B
YAML
19 lines
No EOL
720 B
YAML
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 }}
|
|
spec:
|
|
ports:
|
|
- name: {{ .Values.controller.service.portName }}
|
|
port: {{ .Values.controller.service.port }}
|
|
targetPort: {{ .Values.controller.containerPort }}
|
|
selector:
|
|
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.controller.name) | nindent 4 }} |