-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
michelia
committed
Jan 10, 2022
1 parent
26e332f
commit a0caed8
Showing
2 changed files
with
3,394 additions
and
0 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
pkg/config/templates/rancherd-14-monitoring-harvester-exporter.yaml
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,69 @@ | ||
bootstrapResources: | ||
- apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: exporter-harvester-webhook | ||
namespace: harvester-system | ||
spec: | ||
endpoints: | ||
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
honorLabels: true | ||
port: https | ||
relabelings: | ||
- action: replace | ||
regex: (.+) | ||
replacement: $1 | ||
sourceLabels: | ||
- __meta_kubernetes_pod_host_ip | ||
targetLabel: host_ip | ||
- action: replace | ||
regex: (.+) | ||
replacement: $1 | ||
sourceLabels: | ||
- __meta_kubernetes_pod_node_name | ||
targetLabel: node | ||
scheme: https | ||
tlsConfig: | ||
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | ||
insecureSkipVerify: true | ||
namespaceSelector: | ||
matchNames: | ||
- harvester-system | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: webhook | ||
app.kubernetes.io/name: harvester | ||
- apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: exporter-harvester | ||
namespace: harvester-system | ||
spec: | ||
endpoints: | ||
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token | ||
honorLabels: true | ||
port: https | ||
relabelings: | ||
- action: replace | ||
regex: (.+) | ||
replacement: $1 | ||
sourceLabels: | ||
- __meta_kubernetes_pod_host_ip | ||
targetLabel: host_ip | ||
- action: replace | ||
regex: (.+) | ||
replacement: $1 | ||
sourceLabels: | ||
- __meta_kubernetes_pod_node_name | ||
targetLabel: node | ||
scheme: https | ||
tlsConfig: | ||
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | ||
insecureSkipVerify: true | ||
namespaceSelector: | ||
matchNames: | ||
- harvester-system | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: apiserver | ||
app.kubernetes.io/name: harvester |
Oops, something went wrong.