forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/traefik] add servicemonitor (helm#13728)
* feat: imporvements to pachyderm chart (helm#13054) * feat: imporvements to pachyderm chart - De-hardcode suite label to allow deployment in a different namespace than `pachyderm` - De-hardcode service account name to allow deployment in a different namespace than `pachyderm` - Allow specifying resource limits for `etcd` and `patchd` deployments - Split `pachd` service in 3 stand alone services to allow exposing `pachd-grpc-api` through a LoadBalancer service type - `pachd-grpc-api` port can be customized - `pachd` deployment now support iam-role annotation for `kube2iam` Signed-off-by: Maxime Belanger <[email protected]> * add variables to support 1.8.x Signed-off-by: Maxime Belanger <[email protected]> * node port fixed to 30650 Signed-off-by: Maxime Belanger <[email protected]> * boolean as stringwq Signed-off-by: Maxime Belanger <[email protected]> * fix typo Signed-off-by: Maxime Belanger <[email protected]> * quote the value in the template instead Signed-off-by: Maxime Belanger <[email protected]> Signed-off-by: Philipp Hellmich <[email protected]> * some changes based on feedback of dtomcej Signed-off-by: Philipp Hellmich <[email protected]> * commented out servicemonitor as requested in PR Signed-off-by: Philipp Hellmich <[email protected]> * fix Signed-off-by: Philipp Hellmich <[email protected]>
- Loading branch information
1 parent
61d9973
commit 63e32c9
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{- if ( .Values.metrics.serviceMonitor ) }} | ||
{{- if and ( .Values.metrics.serviceMonitor.enabled ) ( .Values.metrics.prometheus.enabled ) }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
{{- if .Values.metrics.serviceMonitor.labels }} | ||
labels: | ||
{{ toYaml .Values.metrics.serviceMonitor.labels | indent 4}} | ||
{{- end }} | ||
name: {{ template "traefik.fullname" . }}-prometheus-exporter | ||
{{- if .Values.metrics.serviceMonitor.namespace }} | ||
namespace: {{ .Values.metrics.serviceMonitor.namespace }} | ||
{{- end }} | ||
spec: | ||
endpoints: | ||
- targetPort: metrics | ||
path: /metrics | ||
{{- if .Values.metrics.serviceMonitor.interval }} | ||
interval: {{ .Values.metrics.serviceMonitor.interval }} | ||
{{- end }} | ||
jobLabel: {{ template "traefik.fullname" . }}-prometheus-exporter | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
selector: | ||
matchLabels: | ||
app: {{ template "traefik.name" . }} | ||
release: {{ .Release.Name | quote }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters