From ec2155878aa90d01fa6d9958bccd6fe5f3555f10 Mon Sep 17 00:00:00 2001 From: suleiman abualrob Date: Tue, 26 Nov 2019 16:58:04 +0200 Subject: [PATCH 1/3] Update README.md If you have Prometheus in your environment, adding these annotation will let Prometheus auto-discovery fetch your metrics automatically from service-name:port/metrics Signed-off-by: suleimanWA --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9a95189..cac32de 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,9 @@ kind: Service metadata: name: goldpinger namespace: default + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '8080' labels: app: goldpinger spec: From 49a47284b6c6602b36ac6f0c4a5e33e3da366d44 Mon Sep 17 00:00:00 2001 From: suleiman abualrob Date: Tue, 26 Nov 2019 19:18:28 +0200 Subject: [PATCH 2/3] Update README.md Kubernetes master node by most of default installation are taint, so goldPinger DaemonSet will not deployed to master, in order to make it run on master nodes also, you have to tolerate the taint Signed-off-by: suleimanWA --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index cac32de..9e0f74f 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,9 @@ spec: app: goldpinger spec: serviceAccount: "goldpinger-serviceaccount" + tolerations: + - key: node-role.kubernetes.io/master + effect: NoSchedule securityContext: runAsNonRoot: true runAsUser: 1000 From 6315c71a2c2697f01ed79cdf7389a96b9b754eca Mon Sep 17 00:00:00 2001 From: suleiman abualrob Date: Tue, 26 Nov 2019 19:18:28 +0200 Subject: [PATCH 3/3] Update README.md Kubernetes master node by most of default installation are taint, so goldPinger DaemonSet will not deployed to master, in order to make it run on master nodes also, you have to tolerate the taint Signed-off-by: suleimanWA --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cac32de..516f715 100644 --- a/README.md +++ b/README.md @@ -134,10 +134,16 @@ spec: app: goldpinger template: metadata: + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '8080' labels: app: goldpinger spec: serviceAccount: "goldpinger-serviceaccount" + tolerations: + - key: node-role.kubernetes.io/master + effect: NoSchedule securityContext: runAsNonRoot: true runAsUser: 1000 @@ -191,9 +197,6 @@ kind: Service metadata: name: goldpinger namespace: default - annotations: - prometheus.io/scrape: 'true' - prometheus.io/port: '8080' labels: app: goldpinger spec: