From 5ea10d80a1930f4fbfe94bf57316bcde526a1df3 Mon Sep 17 00:00:00 2001
From: paulfantom <pawel@krupa.net.pl>
Date: Fri, 11 Jun 2021 10:56:54 +0200
Subject: [PATCH] jsonnet: fix label selector for coredns ServiceMonitor

---
 jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet b/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet
index fdc6e49a..dbf3474b 100644
--- a/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet
+++ b/jsonnet/kube-prometheus/components/k8s-control-plane.libsonnet
@@ -245,7 +245,7 @@ function(params) {
     spec: {
       jobLabel: 'app.kubernetes.io/name',
       selector: {
-        matchLabels: { 'app.kubernetes.io/name': 'kube-dns' },
+        matchLabels: { 'k8s-app': 'kube-dns' },
       },
       namespaceSelector: {
         matchNames: ['kube-system'],
-- 
GitLab