github.com/nikkelma/oras-project_oras-go@v1.1.1-0.20220201001104-a75f6a419090/testdata/charts/chartmuseum/templates/service.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4  {{- if .Values.service.servicename }}
     5    name: {{ .Values.service.servicename }}
     6  {{- else }}
     7    name: {{ include "chartmuseum.fullname" . }}
     8  {{- end }}
     9    labels:
    10  {{ include "chartmuseum.labels.standard" . | indent 4 }}
    11  {{- if .Values.service.labels }}
    12  {{ toYaml .Values.service.labels | indent 4 }}
    13  {{- end }}
    14  {{- if .Values.service.annotations }}
    15    annotations:
    16  {{ toYaml .Values.service.annotations | indent 4 }}
    17  {{- end }}
    18  spec:
    19    type: {{ .Values.service.type }}
    20    {{- if eq .Values.service.type "ClusterIP" }}
    21    {{- if .Values.service.clusterIP }}
    22    clusterIP: {{ .Values.service.clusterIP }}
    23    {{- end }}
    24    {{- end }}
    25    ports:
    26    - port: {{ .Values.service.externalPort }}
    27  {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
    28      nodePort: {{.Values.service.nodePort}}
    29  {{- else }}
    30      targetPort: http
    31  {{- end }}
    32      protocol: TCP
    33      name: http
    34    selector:
    35      app: {{ template "chartmuseum.name" . }}
    36      release: {{ .Release.Name | quote }}