Merge pull request #925 from shreyashah1903/fix-kubelet-label

kubelet: Update label selector
This commit is contained in:
Paweł Krupa
2021-02-19 10:19:35 +01:00
committed by GitHub
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