Merge pull request #1259 from PaytmLabs/feature/eks/cni-relabel-instance

eks: Relabel instance with node name for CNI DaemonSet
This commit is contained in:
Paweł Krupa 2021-07-19 10:09:09 +02:00 committed by GitHub
commit 99ee030de3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,20 @@
}, },
spec: { spec: {
ports: [ ports: [
{ name: 'cni-metrics-port', port: 61678, targetPort: 61678 }, {
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' }, selector: { 'app.kubernetes.io/name': 'aws-node' },
clusterIP: 'None', clusterIP: 'None',