Browse Source

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 2 weeks ago
committed by GitHub
parent
commit
4e58413140
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions
  1. 2
      roles/container-engine/cri-o/defaults/main.yml
  2. 2
      roles/container-engine/cri-o/templates/crio.conf.j2

2
roles/container-engine/cri-o/defaults/main.yml

@ -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

2
roles/container-engine/cri-o/templates/crio.conf.j2

@ -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

Loading…
Cancel
Save