From 74fb80ac1c963a3cdf04302fcca95760dc6f1f7b Mon Sep 17 00:00:00 2001 From: Mark Deckert Date: Thu, 18 Jul 2019 12:14:20 -1000 Subject: [PATCH] add tmp-volume to metrics-scraper (#4087) * add tmp-volume to metrics-scraper * the test resource has slightly different indenting * more indenting differences --- aio/deploy/alternative.yaml | 6 ++++++ aio/deploy/alternative/08_scraper-deployment.yaml | 6 ++++++ aio/deploy/head.yaml | 6 ++++++ aio/deploy/head/08_scraper-deployment.yaml | 6 ++++++ aio/deploy/recommended.yaml | 6 ++++++ aio/deploy/recommended/08_scraper-deployment.yaml | 6 ++++++ aio/test-resources/kubernetes-dashboard-local.yaml | 6 ++++++ 7 files changed, 42 insertions(+) diff --git a/aio/deploy/alternative.yaml b/aio/deploy/alternative.yaml index 71ed507ea..bc42ed82a 100644 --- a/aio/deploy/alternative.yaml +++ b/aio/deploy/alternative.yaml @@ -266,8 +266,14 @@ spec: port: 8000 initialDelaySeconds: 30 timeoutSeconds: 30 + volumeMounts: + - mountPath: /tmp + name: tmp-volume serviceAccountName: kubernetes-dashboard # Comment the following tolerations if Dashboard must not be deployed on master tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule + volumes: + - name: tmp-volume + emptyDir: {} diff --git a/aio/deploy/alternative/08_scraper-deployment.yaml b/aio/deploy/alternative/08_scraper-deployment.yaml index 8dfd511b0..f86e69d12 100644 --- a/aio/deploy/alternative/08_scraper-deployment.yaml +++ b/aio/deploy/alternative/08_scraper-deployment.yaml @@ -43,8 +43,14 @@ spec: port: 8000 initialDelaySeconds: 30 timeoutSeconds: 30 + volumeMounts: + - mountPath: /tmp + name: tmp-volume serviceAccountName: kubernetes-dashboard # Comment the following tolerations if Dashboard must not be deployed on master tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule + volumes: + - name: tmp-volume + emptyDir: {} diff --git a/aio/deploy/head.yaml b/aio/deploy/head.yaml index fb15d7b6d..528ba7135 100644 --- a/aio/deploy/head.yaml +++ b/aio/deploy/head.yaml @@ -266,8 +266,14 @@ spec: port: 8000 initialDelaySeconds: 30 timeoutSeconds: 30 + volumeMounts: + - mountPath: /tmp + name: tmp-volume serviceAccountName: kubernetes-dashboard-head # Comment the following tolerations if Dashboard must not be deployed on master tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule + volumes: + - name: tmp-volume + emptyDir: {} diff --git a/aio/deploy/head/08_scraper-deployment.yaml b/aio/deploy/head/08_scraper-deployment.yaml index 75e99814f..fc106e96e 100644 --- a/aio/deploy/head/08_scraper-deployment.yaml +++ b/aio/deploy/head/08_scraper-deployment.yaml @@ -43,8 +43,14 @@ spec: port: 8000 initialDelaySeconds: 30 timeoutSeconds: 30 + volumeMounts: + - mountPath: /tmp + name: tmp-volume serviceAccountName: kubernetes-dashboard-head # Comment the following tolerations if Dashboard must not be deployed on master tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule + volumes: + - name: tmp-volume + emptyDir: {} diff --git a/aio/deploy/recommended.yaml b/aio/deploy/recommended.yaml index b62bcc503..b35bf1ed5 100644 --- a/aio/deploy/recommended.yaml +++ b/aio/deploy/recommended.yaml @@ -274,8 +274,14 @@ spec: port: 8000 initialDelaySeconds: 30 timeoutSeconds: 30 + volumeMounts: + - mountPath: /tmp + name: tmp-volume serviceAccountName: kubernetes-dashboard # Comment the following tolerations if Dashboard must not be deployed on master tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule + volumes: + - name: tmp-volume + emptyDir: {} diff --git a/aio/deploy/recommended/08_scraper-deployment.yaml b/aio/deploy/recommended/08_scraper-deployment.yaml index 097e03f3c..18f05ebf3 100644 --- a/aio/deploy/recommended/08_scraper-deployment.yaml +++ b/aio/deploy/recommended/08_scraper-deployment.yaml @@ -43,8 +43,14 @@ spec: port: 8000 initialDelaySeconds: 30 timeoutSeconds: 30 + volumeMounts: + - mountPath: /tmp + name: tmp-volume serviceAccountName: kubernetes-dashboard # Comment the following tolerations if Dashboard must not be deployed on master tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule + volumes: + - name: tmp-volume + emptyDir: {} diff --git a/aio/test-resources/kubernetes-dashboard-local.yaml b/aio/test-resources/kubernetes-dashboard-local.yaml index 9451ace0c..dc93b5933 100755 --- a/aio/test-resources/kubernetes-dashboard-local.yaml +++ b/aio/test-resources/kubernetes-dashboard-local.yaml @@ -233,11 +233,17 @@ spec: port: 8000 initialDelaySeconds: 30 timeoutSeconds: 30 + volumeMounts: + - mountPath: /tmp + name: tmp-volume serviceAccountName: kubernetes-dashboard-local # Comment the following tolerations if Dashboard must not be deployed on master tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule + volumes: + - emptyDir: {} + name: tmp-volume --- # ------------------- Metrics Scraper Service ------------------- # -- GitLab