Skip to content

Commit

Permalink
Feat: make CRI-O's default runtime configurable
Browse files Browse the repository at this point in the history
Signed-off-by: ChengHao Yang <[email protected]>
  • Loading branch information
tico88612 committed Oct 10, 2024
1 parent e008e8e commit faa0816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/container-engine/cri-o/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

crio_cgroup_manager: "{{ kubelet_cgroup_driver | default('systemd') }}"
crio_conmon: "{{ bin_dir }}/conmon"
crio_default_runtime: "crun"
crio_libexec_dir: "/usr/libexec/crio"
crio_enable_metrics: false
crio_log_level: "info"
Expand Down
2 changes: 1 addition & 1 deletion roles/container-engine/cri-o/templates/crio.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ grpc_max_recv_msg_size = 16777216

# default_runtime is the _name_ of the OCI runtime to be used as the default.
# The name is matched against the runtimes map below.
default_runtime = "crun"
default_runtime = "{{ crio_default_runtime }}"

# If true, the runtime will not use pivot_root, but instead use MS_MOVE.
no_pivot = false
Expand Down

0 comments on commit faa0816

Please sign in to comment.