From 5cc6daab4aeceee80adcc788cbc8449e0019fb98 Mon Sep 17 00:00:00 2001
From: karancode <karan.thanvi@paypay-corp.co.jp>
Date: Tue, 22 Oct 2019 02:57:40 +0900
Subject: [PATCH] add aws eks cni service yaml

---
 kustomization.yaml                                |  1 +
 manifests/prometheus-AwsEksCniMetricService.yaml  | 15 +++++++++++++++
 manifests/prometheus-serviceMonitorAwsEksCNI.yaml |  2 +-
 3 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 manifests/prometheus-AwsEksCniMetricService.yaml

diff --git a/kustomization.yaml b/kustomization.yaml
index 79f9624f..d8ecbcb6 100644
--- a/kustomization.yaml
+++ b/kustomization.yaml
@@ -39,6 +39,7 @@ resources:
 - ./manifests/node-exporter-service.yaml
 - ./manifests/node-exporter-serviceAccount.yaml
 - ./manifests/node-exporter-serviceMonitor.yaml
+- ./manifests/prometheus-AwsEksCniMetricService.yaml
 - ./manifests/prometheus-adapter-apiService.yaml
 - ./manifests/prometheus-adapter-clusterRole.yaml
 - ./manifests/prometheus-adapter-clusterRoleAggregatedMetricsReader.yaml
diff --git a/manifests/prometheus-AwsEksCniMetricService.yaml b/manifests/prometheus-AwsEksCniMetricService.yaml
new file mode 100644
index 00000000..4e3ee1dd
--- /dev/null
+++ b/manifests/prometheus-AwsEksCniMetricService.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Service
+metadata:
+  labels:
+    k8s-app: aws-node
+  name: aws-node
+  namespace: kube-system
+spec:
+  clusterIP: None
+  ports:
+  - name: cni-metrics-port
+    port: 61678
+    targetPort: 61678
+  selector:
+    k8s-app: aws-node
diff --git a/manifests/prometheus-serviceMonitorAwsEksCNI.yaml b/manifests/prometheus-serviceMonitorAwsEksCNI.yaml
index 07d14f1f..bcb9d1e9 100644
--- a/manifests/prometheus-serviceMonitorAwsEksCNI.yaml
+++ b/manifests/prometheus-serviceMonitorAwsEksCNI.yaml
@@ -16,4 +16,4 @@ spec:
     - kube-system
   selector:
     matchLabels:
-      k8s-app: eks-cni
+      k8s-app: aws-node
-- 
GitLab