github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/minio/templates/service.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: {{ template "minio.fullname" . }}
     5    labels:
     6      app: {{ template "minio.name" . }}
     7      chart: {{ template "minio.chart" . }}
     8      release: {{ .Release.Name }}
     9      heritage: {{ .Release.Service }}
    10  {{- if .Values.service.annotations }}
    11    annotations:
    12  {{ toYaml .Values.service.annotations | indent 4 }}
    13  {{- end }}
    14  spec:
    15  {{- if (or (eq .Values.service.type "ClusterIP" "") (empty .Values.service.type)) }}
    16    type: ClusterIP
    17    {{- if .Values.service.clusterIP }}
    18    clusterIP: {{ .Values.service.clusterIP }}
    19    {{end}}
    20  {{- else if eq .Values.service.type "LoadBalancer" }}
    21    type: {{ .Values.service.type }}
    22    loadBalancerIP: {{ default "" .Values.service.loadBalancerIP }}
    23  {{- else }}
    24    type: {{ .Values.service.type }}
    25  {{- end }}
    26    ports:
    27      - name: service
    28        port: 9000
    29        targetPort: {{ .Values.service.port }}
    30        protocol: TCP
    31  {{- if (and (eq .Values.service.type "NodePort") ( .Values.service.nodePort)) }}
    32        nodePort: {{ .Values.service.nodePort }}
    33  {{- end}}
    34  {{- if .Values.service.externalIPs }}
    35    externalIPs:
    36  {{- range $i , $ip := .Values.service.externalIPs }}
    37    - {{ $ip }}
    38  {{- end }}
    39  {{- end }}
    40    selector:
    41      app: {{ template "minio.name" . }}
    42      release: {{ .Release.Name }}