File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 73
73
| pyroscope.resources | object | ` {} ` | |
74
74
| pyroscope.securityContext | object | ` {} ` | |
75
75
| pyroscope.service.annotations | object | ` {} ` | |
76
+ | pyroscope.service.headlessAnnotations | object | ` {} ` | |
76
77
| pyroscope.service.port | int | ` 4040 ` | |
77
78
| pyroscope.service.port_name | string | ` "http2" ` | |
78
79
| pyroscope.service.scheme | string | ` "HTTP" ` | |
Original file line number Diff line number Diff line change @@ -37,9 +37,15 @@ metadata:
37
37
labels :
38
38
{{- include "pyroscope.labels" . | nindent 4 }}
39
39
app.kubernetes.io/component : {{ $component | quote }}
40
+ {{- if or .Values.serviceMonitor.enabled $values.service.headlessAnnotations }}
41
+ annotations :
40
42
{{- if .Values.serviceMonitor.enabled }}
41
43
prometheus.io/service-monitor : " false"
42
44
{{- end }}
45
+ {{- with $values.service.headlessAnnotations }}
46
+ {{- toYaml . | nindent 4 }}
47
+ {{- end }}
48
+ {{- end }}
43
49
spec :
44
50
type : ClusterIP
45
51
clusterIP : None
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ pyroscope:
88
88
port_name : http2
89
89
scheme : HTTP
90
90
annotations : {}
91
+ headlessAnnotations : {}
91
92
92
93
memberlist :
93
94
port : 7946
Original file line number Diff line number Diff line change 141
141
"securityContext" : {},
142
142
"service" : {
143
143
"annotations" : {},
144
+ "headlessAnnotations" : {},
144
145
"port" : 4040 ,
145
146
"port_name" : " http2" ,
146
147
"scheme" : " HTTP" ,
You can’t perform that action at this time.
0 commit comments