github.com/spotahome/redis-operator@v1.2.4/charts/redisoperator/templates/service.yaml (about) 1 {{- $fullName := include "chart.fullname" . -}} 2 {{- $svcPort := .Values.service.port -}} 3 {{- $data := dict "Chart" .Chart "Release" .Release "Values" .Values -}} 4 apiVersion: v1 5 kind: Service 6 metadata: 7 name: {{ $fullName }} 8 labels: 9 {{- include "chart.labels" $data | nindent 4 }} 10 {{- if .Values.annotations }} 11 annotations: 12 {{ toYaml .Values.annotations | indent 4 }} 13 {{- end }} 14 spec: 15 type: {{ .Values.service.type}} 16 ports: 17 - name: metrics 18 port: {{ $svcPort }} 19 protocol: TCP 20 selector: 21 {{- include "chart.selectorLabels" $data | nindent 4 }} 22