diff --git a/jsonnet/kube-prometheus/kube-prometheus-kubespray.libsonnet b/jsonnet/kube-prometheus/kube-prometheus-kubespray.libsonnet index 4cfde11edd6989994c3f6a2dc864f9a09789e316..6ef1a34e2b5356cf0c2b30364ec9dce1a3a0e030 100644 --- a/jsonnet/kube-prometheus/kube-prometheus-kubespray.libsonnet +++ b/jsonnet/kube-prometheus/kube-prometheus-kubespray.libsonnet @@ -4,12 +4,6 @@ local servicePort = k.core.v1.service.mixin.spec.portsType; { - _config+:: { - jobs+: { - CoreDNS: 'job="coredns"', - }, - }, - prometheus+: { kubeControllerManagerPrometheusDiscoveryService: service.new('kube-controller-manager-prometheus-discovery', { 'component': 'kube-controller-manager' }, servicePort.newNamed('http-metrics', 10252, 10252)) + @@ -22,16 +16,6 @@ local servicePort = k.core.v1.service.mixin.spec.portsType; service.mixin.metadata.withLabels({ 'k8s-app': 'kube-scheduler' }) + service.mixin.spec.withClusterIp('None'), - serviceMonitorCoreDNS+: { - spec+: { - selector: { - matchLabels: { - 'k8s-app': 'coredns', - }, - }, - }, - }, - serviceMonitorKubeScheduler+: { spec+: { selector+: {