Update kubelet label selector

This commit is contained in:
Shreya Shah 2021-02-09 17:52:54 +05:30
parent 18630eaca1
commit ff3e0e1ee4
2 changed files with 4 additions and 4 deletions

View File

@ -332,7 +332,7 @@ function(params) {
labels: { 'app.kubernetes.io/name': 'kubelet' },
},
spec: {
jobLabel: 'k8s-app',
jobLabel: 'app.kubernetes.io/name',
endpoints: [
{
port: 'https-metrics',
@ -387,7 +387,7 @@ function(params) {
},
],
selector: {
matchLabels: { 'k8s-app': 'kubelet' },
matchLabels: { 'app.kubernetes.io/name': 'kubelet' },
},
namespaceSelector: {
matchNames: ['kube-system'],

View File

@ -81,10 +81,10 @@ spec:
scheme: https
tlsConfig:
insecureSkipVerify: true
jobLabel: k8s-app
jobLabel: app.kubernetes.io/name
namespaceSelector:
matchNames:
- kube-system
selector:
matchLabels:
k8s-app: kubelet
app.kubernetes.io/name: kubelet