File tree 3 files changed +79
-2
lines changed
deploy/manifests/controller/helm/retina
3 files changed +79
-2
lines changed Original file line number Diff line number Diff line change 58
58
{{- end}}
59
59
{{- end}}
60
60
ports :
61
- - containerPort : {{ .Values.retinaPort }}
61
+ - name : retina
62
+ containerPort : {{ .Values.retinaPort }}
62
63
resources :
63
64
limits :
64
65
memory : {{ .Values.resources.limits.memory | quote }}
@@ -152,7 +153,8 @@ spec:
152
153
- name : retinawin
153
154
image : {{ .Values.image.repository }}:{{ .Values.image.tag }}
154
155
ports :
155
- - containerPort : {{ .Values.retinaPort }}
156
+ - name : retina
157
+ containerPort : {{ .Values.retinaPort }}
156
158
command :
157
159
- powershell.exe
158
160
- -command
Original file line number Diff line number Diff line change
1
+ {{- if .Values.metrics.podMonitor.enabled }}
2
+ apiVersion : monitoring.coreos.com/v1
3
+ kind : PodMonitor
4
+ metadata :
5
+ name : {{ include "retina.fullname" . }}
6
+ namespace : {{ ternary .Values.metrics.podMonitor.namespace .Values.namespace (not (empty .Values.metrics.podMonitor.namespace)) }}
7
+ labels :
8
+ k8s-app : {{ include "retina.name" . }}
9
+ {{- if .Values.metrics.podMonitor.additionalLabels }}
10
+ {{- .Values.metrics.podMonitor.additionalLabels | nindent 4 }}
11
+ {{- end }}
12
+ spec :
13
+ podMetricsEndpoints :
14
+ - port : retina
15
+ path : /metrics
16
+ {{- if .Values.metrics.podMonitor.interval }}
17
+ interval : {{ .Values.metrics.podMonitor.interval }}
18
+ {{- end }}
19
+ {{- if .Values.metrics.podMonitor.scrapeTimeout }}
20
+ scrapeTimeout : {{ .Values.metrics.podMonitor.scrapeTimeout }}
21
+ {{- end }}
22
+ {{- if .Values.metrics.podMonitor.scheme }}
23
+ scheme : {{ .Values.metrics.podMonitor.scheme }}
24
+ {{- end }}
25
+ {{- if .Values.metrics.podMonitor.tlsConfig }}
26
+ tlsConfig : {{- .Values.metrics.podMonitor.tlsConfig | nindent 8 }}
27
+ {{- end }}
28
+ {{- if .Values.metrics.podMonitor.relabelings }}
29
+ relabelings :
30
+ {{- .Values.metrics.podMonitor.relabelings | nindent 8 }}
31
+ {{- end }}
32
+ namespaceSelector :
33
+ matchNames :
34
+ - {{ .Values.namespace }}
35
+ selector :
36
+ matchLabels :
37
+ app : {{ include "retina.name" . }}
38
+ {{- end }}
Original file line number Diff line number Diff line change @@ -122,3 +122,40 @@ nodeSelector: {}
122
122
# # Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
123
123
# #
124
124
tolerations : []
125
+
126
+ metrics :
127
+ # # Prometheus Service Monitor
128
+ # # ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
129
+ # #
130
+ podMonitor :
131
+ # # @param metrics.podMonitor.enabled Create PodMonitor Resource for scraping metrics using PrometheusOperator
132
+ # #
133
+ enabled : false
134
+ # # @param metrics.podMonitor.namespace Namespace in which the PodMonitor should be created
135
+ # #
136
+ namespace : ~
137
+ # # @param metrics.podMonitor.interval Specify the interval at which metrics should be scraped
138
+ # #
139
+ interval : 30s
140
+ # # @param metrics.podMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
141
+ # #
142
+ scrapeTimeout : 30s
143
+ # # @param metrics.podMonitor.additionalLabels [object] Additional labels that can be used so PodMonitors will be discovered by Prometheus
144
+ # # ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
145
+ # #
146
+ additionalLabels : {}
147
+ # # @param metrics.podMonitor.scheme Scheme to use for scraping
148
+ # #
149
+ scheme : http
150
+ # # @param metrics.podMonitor.tlsConfig [object] TLS configuration used for scrape endpoints used by Prometheus
151
+ # # ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#tlsconfig
152
+ # # e.g:
153
+ # # tlsConfig:
154
+ # # ca:
155
+ # # secret:
156
+ # # name: existingSecretName
157
+ # #
158
+ tlsConfig : {}
159
+ # # @param metrics.podMonitor.relabelings [array] Prometheus relabeling rules
160
+ # #
161
+ relabelings : []
You can’t perform that action at this time.
0 commit comments