Merge pull request #1277 from PaytmLabs/hotfix/eks/cni-relabel

eks: Fix CNI metrics relabelings
This commit is contained in:
Paweł Krupa
2021-07-24 11:33:29 +02:00
committed by GitHub

View File

@@ -31,15 +31,6 @@
name: 'cni-metrics-port',
port: 61678,
targetPort: 61678,
relabelings: [
{
action: 'replace',
regex: '(.*)',
replacement: '$1',
sourceLabels: ['__meta_kubernetes_pod_node_name'],
targetLabel: 'instance',
},
],
},
],
selector: { 'app.kubernetes.io/name': 'aws-node' },
@@ -74,6 +65,15 @@
port: 'cni-metrics-port',
interval: '30s',
path: '/metrics',
relabelings: [
{
action: 'replace',
regex: '(.*)',
replacement: '$1',
sourceLabels: ['__meta_kubernetes_pod_node_name'],
targetLabel: 'instance',
},
],
},
],
},