mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 12:36:55 +00:00
doc: Add caveat on volumeMounts (#632)
Update README.md to add caveat on volumeMounts Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
10
README.md
10
README.md
@@ -822,9 +822,19 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: /mnt/docker-extra
|
path: /mnt/docker-extra
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
|
- name: repo
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/repo
|
||||||
|
type: DirectoryOrCreate
|
||||||
dockerVolumeMounts:
|
dockerVolumeMounts:
|
||||||
- mountPath: /var/lib/docker
|
- mountPath: /var/lib/docker
|
||||||
name: docker-extra
|
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.
|
# 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.
|
# This must match the name of a RuntimeClass resource available on the cluster.
|
||||||
# More info: https://kubernetes.io/docs/concepts/containers/runtime-class
|
# More info: https://kubernetes.io/docs/concepts/containers/runtime-class
|
||||||
|
|||||||
Reference in New Issue
Block a user