github.com/grafana/pyroscope@v1.18.0/operations/monitoring/helm/pyroscope-monitoring/templates/service.yaml (about) 1 --- 2 apiVersion: v1 3 kind: Service 4 metadata: 5 name: {{ include "pyroscope-monitoring.fullname" . }} 6 labels: 7 {{- include "pyroscope-monitoring.labels" . | nindent 4 }} 8 spec: 9 type: {{ .Values.service.type }} 10 {{- with .Values.service.ports }} 11 ports: 12 {{- toYaml . | nindent 4 }} 13 {{- end }} 14 selector: 15 {{- include "pyroscope-monitoring.selectorLabels" . | nindent 4 }} 16 {{- if and .Values.service.deployStaticName (not (eq (include "pyroscope-monitoring.fullname" .) "pyroscope-monitoring")) }} 17 --- 18 apiVersion: v1 19 kind: Service 20 metadata: 21 # This name is fixed, as it is relied upon, by the subchart's config 22 name: pyroscope-monitoring 23 labels: 24 {{- include "pyroscope-monitoring.labels" . | nindent 4 }} 25 spec: 26 type: {{ .Values.service.type }} 27 {{- with .Values.service.ports }} 28 ports: 29 {{- toYaml . | nindent 4 }} 30 {{- end }} 31 selector: 32 {{- include "pyroscope-monitoring.selectorLabels" . | nindent 4 }} 33 {{- end }}