doc: Add caveat on volumeMounts
Update README.md to add caveat on volumeMounts
@@ -822,9 +822,19 @@ spec:
hostPath:
path: /mnt/docker-extra
type: DirectoryOrCreate
+ - name: repo
+ hostPath:
+ path: /mnt/repo
+ type: DirectoryOrCreate
dockerVolumeMounts:
- mountPath: /var/lib/docker
name: docker-extra
+ # You can mount some of the shared volumes to the runner container using volumeMounts.
+ # NOTE: Do not try to mount the volume onto the runner workdir itself as it will not work. You could mount it however on a sub directory in the runner workdir
+ # Please see https://github.com/actions-runner-controller/actions-runner-controller/issues/630#issuecomment-862087323 for more information.
+ volumeMounts:
+ - mountPath: /home/runner/work/repo
+ name: repo
# Optional name of the container runtime configuration that should be used for pods.
# This must match the name of a RuntimeClass resource available on the cluster.
# More info: https://kubernetes.io/docs/concepts/containers/runtime-class
