From 8e2b9ba1054a1666da8ff8db186b4e4f69860c59 Mon Sep 17 00:00:00 2001 From: James Ravn Date: Mon, 10 Feb 2020 11:19:04 +0000 Subject: [PATCH] Fix example pod.yml to not mount to root As mounting to root makes `/root` a read only filesystem, which breaks a lot of builds that try to add files to `/root` (like `/root/.npm`). --- examples/pod.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pod.yaml b/examples/pod.yaml index 6b6692721..27f40a4bd 100644 --- a/examples/pod.yaml +++ b/examples/pod.yaml @@ -11,7 +11,7 @@ spec: "--destination=/"] # replace with your dockerhub account volumeMounts: - name: kaniko-secret - mountPath: /root + mountPath: /kaniko/.docker - name: dockerfile-storage mountPath: /workspace restartPolicy: Never @@ -21,7 +21,7 @@ spec: secretName: regcred items: - key: .dockerconfigjson - path: .docker/config.json + path: config.json - name: dockerfile-storage persistentVolumeClaim: claimName: dockerfile-claim