From 9d254345ad679996b73290a60a8c801ca95869c5 Mon Sep 17 00:00:00 2001 From: Carlos de Paula Date: Thu, 22 Aug 2019 19:01:42 -0300 Subject: [PATCH] Match both K8s and K3s Traefik services --- traefik.jsonnet | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/traefik.jsonnet b/traefik.jsonnet index ea3479d..243c802 100644 --- a/traefik.jsonnet +++ b/traefik.jsonnet @@ -15,22 +15,22 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; apiVersion: 'monitoring.coreos.com/v1', kind: 'ServiceMonitor', metadata: { - name: 'traefik-ingress-lb', + name: 'traefik', namespace: $._config.namespace, labels: { - 'k8s-app': 'traefik-ingress-lb', + 'app': 'traefik', }, }, spec: { - jobLabel: 'k8s-app', + jobLabel: 'traefik-exporter', selector: { matchLabels: { - 'k8s-app': 'traefik-ingress-lb', + 'app': 'traefik', }, }, endpoints: [ { - port: 'admin', + port: 'metrics', scheme: 'http', interval: '30s', },