Add a new crio_root variable in order to store CRI-O data on something else than /var/lib (#11692)

pull/11695/head
Timothée Oliger 2024-11-07 03:01:29 +01:00 committed by GitHub
parent b7c1d68ea3
commit 4e58413140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,8 @@ crio_stream_port: "10010"
crio_required_version: "{{ kube_version | regex_replace('^v(?P<major>\\d+).(?P<minor>\\d+).(?P<patch>\\d+)$', '\\g<major>.\\g<minor>') }}" crio_required_version: "{{ kube_version | regex_replace('^v(?P<major>\\d+).(?P<minor>\\d+).(?P<patch>\\d+)$', '\\g<major>.\\g<minor>') }}"
crio_root: "/var/lib/containers/storage"
# The crio_runtimes variable defines a list of OCI compatible runtimes. # The crio_runtimes variable defines a list of OCI compatible runtimes.
crio_runtimes: crio_runtimes:
- name: crun - name: crun

View File

@ -17,7 +17,7 @@
# Path to the "root directory". CRI-O stores all of its data, including # Path to the "root directory". CRI-O stores all of its data, including
# containers images, in this directory. # containers images, in this directory.
root = "/var/lib/containers/storage" root = "{{ crio_root }}"
# Path to the "run directory". CRI-O stores all of its state in this directory. # Path to the "run directory". CRI-O stores all of its state in this directory.
# Read from /etc/containers/storage.conf first so unnecessary here # Read from /etc/containers/storage.conf first so unnecessary here