From eb6949c2a4c1690285622c9683c35204f5459e5b Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Sat, 30 Jun 2018 21:19:40 -0400 Subject: [PATCH] Explicitly mount /tmp as an emptyDir If using an image build with `FROM scratch` (as built by the build-local-images make target), you need to explictly mount /tmp as an emptyDir. --- deploy/manifests/custom-metrics-apiserver-deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy/manifests/custom-metrics-apiserver-deployment.yaml b/deploy/manifests/custom-metrics-apiserver-deployment.yaml index 5ca0e55f..af0eaa16 100644 --- a/deploy/manifests/custom-metrics-apiserver-deployment.yaml +++ b/deploy/manifests/custom-metrics-apiserver-deployment.yaml @@ -39,6 +39,8 @@ spec: - mountPath: /etc/adapter/ name: config readOnly: true + - mountPath: /tmp + name: tmp-vol volumes: - name: volume-serving-cert secret: @@ -46,3 +48,5 @@ spec: - name: config configMap: name: adapter-config + - name: tmp-vol + emptyDir: {}