File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
- {{- if .Values.service.create }}
1
+ {{- if .Values.metrics. service.create }}
2
2
apiVersion : v1
3
3
kind : Service
4
4
metadata :
5
- name : {{ include "app.fullname" . }}
5
+ name : {{ include "app.fullname" . }}-metrics
6
6
namespace : {{ .Release.Namespace }}
7
7
labels :
8
8
app.kubernetes.io/name : {{ include "app.name" . }}
21
21
{{- range $key, $value := .Values.deployment.labels }}
22
22
{{ $key }}: {{ $value | quote }}
23
23
{{- end }}
24
- type : {{ .Values.service.type }}
24
+ type : {{ .Values.metrics. service.type }}
25
25
ports :
26
26
- name : metricsport
27
27
port : 8080
Original file line number Diff line number Diff line change @@ -16,9 +16,14 @@ deployment:
16
16
labels: { }
17
17
containerPort: 8080
18
18
19
- service:
20
- create: false
21
- type: "ClusterIP"
19
+ metrics:
20
+ service:
21
+ # Set to true to automatically create a Kubernetes Service resource for the
22
+ # Prometheus metrics server endpoint in controller
23
+ create: false
24
+ # Which Type to use for the Kubernetes Service?
25
+ # See: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
26
+ type: "ClusterIP"
22
27
23
28
resources:
24
29
requests:
You can’t perform that action at this time.
0 commit comments