github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/helm2-dependency/templates/svc.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: {{ template "fullname" . }} 5 labels: 6 app: {{ template "fullname" . }} 7 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 release: "{{ .Release.Name }}" 9 heritage: "{{ .Release.Service }}" 10 spec: 11 type: {{ .Values.serviceType }} 12 {{- if (or (eq .Values.serviceType "LoadBalancer") (eq .Values.serviceType "NodePort")) }} 13 externalTrafficPolicy: {{ .Values.serviceExternalTrafficPolicy | quote }} 14 {{- end }} 15 ports: 16 - name: http 17 port: 80 18 targetPort: http 19 {{- if (and (eq .Values.serviceType "NodePort") (not (empty .Values.nodePorts.http)))}} 20 nodePort: {{ .Values.nodePorts.http }} 21 {{- end }} 22 - name: https 23 port: 443 24 targetPort: https 25 {{- if (and (eq .Values.serviceType "NodePort") (not (empty .Values.nodePorts.https)))}} 26 nodePort: {{ .Values.nodePorts.https }} 27 {{- end }} 28 selector: 29 app: {{ template "fullname" . }}