Skip to content
Snippets Groups Projects
Unverified Commit 3a98a347 authored by Maxime Brunet's avatar Maxime Brunet
Browse files

eks: Fix CNI metrics relabelings

parent 4965e45c
No related branches found
No related tags found
No related merge requests found
...@@ -31,15 +31,6 @@ ...@@ -31,15 +31,6 @@
name: 'cni-metrics-port', name: 'cni-metrics-port',
port: 61678, port: 61678,
targetPort: 61678, targetPort: 61678,
relabelings: [
{
action: 'replace',
regex: '(.*)',
replacement: '$1',
sourceLabels: ['__meta_kubernetes_pod_node_name'],
targetLabel: 'instance',
},
],
}, },
], ],
selector: { 'app.kubernetes.io/name': 'aws-node' }, selector: { 'app.kubernetes.io/name': 'aws-node' },
...@@ -74,6 +65,15 @@ ...@@ -74,6 +65,15 @@
port: 'cni-metrics-port', port: 'cni-metrics-port',
interval: '30s', interval: '30s',
path: '/metrics', path: '/metrics',
relabelings: [
{
action: 'replace',
regex: '(.*)',
replacement: '$1',
sourceLabels: ['__meta_kubernetes_pod_node_name'],
targetLabel: 'instance',
},
],
}, },
], ],
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment