mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
containerd: add hashes for 1.5.8 and 1.4.12 and make 1.5.8 the new default (#8239)
* containerd: add hashes for 1.5.8 and 1.4.12 and make 1.5.8 the new default * containerd: make nerdctl mandatory for container_manager = containerd * nerdctl: bump to version 0.14.0 * containerd: use nerdctl for image manipulation * OpenSuSE: install basic nerdctl dependencies
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
when:
|
||||
- not skip_downloads|default(false)
|
||||
- container_manager in ['containerd']
|
||||
- nerdctl_enabled
|
||||
|
||||
- name: download | Get kubeadm binary and list of required images
|
||||
include_tasks: prep_kubeadm_images.yml
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
- name: prep_download | Set image pull/info command for containerd
|
||||
set_fact:
|
||||
image_info_command: "{{ bin_dir }}/ctr -n k8s.io images ls | awk '/application/ {print $1}' | grep -v ^sha | tr '\n' ','"
|
||||
image_pull_command: "{{ bin_dir }}/ctr -n k8s.io images pull --platform linux/{{ image_arch }}"
|
||||
image_info_command: "{{ bin_dir }}/nerdctl -n k8s.io images --format '{% raw %}{{ '{{' }} .Repository {{ '}}' }}:{{ '{{' }} .Tag {{ '}}' }}{% endraw %}' 2>/dev/null | grep -v ^:$ | tr '\n' ','"
|
||||
image_pull_command: "{{ bin_dir }}/nerdctl -n k8s.io pull"
|
||||
when: container_manager == 'containerd'
|
||||
|
||||
- name: prep_download | Set image pull/info command for crio
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
- name: prep_download | Set image pull/info command for containerd on localhost
|
||||
set_fact:
|
||||
image_info_command_on_localhost: "{{ bin_dir }}/ctr -n k8s.io images ls | awk '/application/ {print $1}' | grep -v ^sha | tr '\n' ','"
|
||||
image_pull_command_on_localhost: "{{ bin_dir }}/ctr -n k8s.io images pull --platform linux/{{ image_arch }}"
|
||||
image_info_command_on_localhost: "{{ bin_dir }}/nerdctl -n k8s.io images --format '{% raw %}{{ '{{' }} .Repository {{ '}}' }}:{{ '{{' }} .Tag {{ '}}' }}{% endraw %}' 2>/dev/null | grep -v ^:$ | tr '\n' ','"
|
||||
image_pull_command_on_localhost: "{{ bin_dir }}/nerdctl -n k8s.io pull"
|
||||
when: container_manager_on_localhost == 'containerd'
|
||||
|
||||
- name: prep_download | Set image pull/info command for crio on localhost
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
- name: Set image save/load command for containerd
|
||||
set_fact:
|
||||
image_save_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image export --platform linux/{{ image_arch }} {{ image_path_final }} {{ image_reponame }}"
|
||||
image_load_command: "{{ containerd_bin_dir }}/ctr -n k8s.io image import --base-name {{ download.repo }} {{ image_path_final }}"
|
||||
image_save_command: "{{ bin_dir }}/nerdctl -n k8s.io image save -o {{ image_path_final }} {{ image_reponame }}"
|
||||
image_load_command: "{{ bin_dir }}/nerdctl -n k8s.io image load < {{ image_path_final }}"
|
||||
when: container_manager == 'containerd'
|
||||
|
||||
- name: Set image save/load command for crio
|
||||
|
||||
Reference in New Issue
Block a user