github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/prometheus/templates/service.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: prometheus 5 namespace: {{ .Release.Namespace }} 6 annotations: 7 prometheus.io/scrape: 'true' 8 {{- range $key, $val := .Values.service.annotations }} 9 {{ $key }}: {{ $val }} 10 {{- end }} 11 labels: 12 name: prometheus 13 spec: 14 selector: 15 app: prometheus 16 ports: 17 - name: http-prometheus 18 protocol: TCP 19 port: 9090 20 21 {{- if .Values.service.nodePort.enabled }} 22 # Using separate ingress for nodeport, to avoid conflict with pilot e2e test configs. 23 --- 24 apiVersion: v1 25 kind: Service 26 metadata: 27 name: prometheus-nodeport 28 namespace: {{ .Release.Namespace }} 29 labels: 30 name: prometheus 31 spec: 32 type: NodePort 33 ports: 34 - port: 9090 35 nodePort: {{ .Values.service.nodePort.port }} 36 name: http-prometheus 37 selector: 38 app: prometheus 39 {{- end }}