github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/argo-cd/templates/argocd-repo-server/service.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4  {{- if .Values.repoServer.service.annotations }}
     5    annotations:
     6    {{- range $key, $value := .Values.repoServer.service.annotations }}
     7      {{ $key }}: {{ $value | quote }}
     8    {{- end }}
     9  {{- end }}
    10    labels:
    11      {{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }}
    12  {{- with .Values.repoServer.service.labels }}
    13  {{- toYaml . | nindent 4 }}
    14  {{- end }}
    15    name: {{ template "argo-cd.repoServer.fullname" . }}
    16    namespace: {{ .Release.Namespace | quote }}
    17  spec:
    18    ports:
    19    - name: {{ .Values.repoServer.service.portName }}
    20      protocol: TCP
    21      port: {{ .Values.repoServer.service.port }}
    22      targetPort: repo-server
    23    selector:
    24      {{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.repoServer.name) | nindent 4 }}