mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
Cleanup fedora coreos with crio container (#5887)
* fix upgrade of crio on fcos
- update documents
* install conntrack required by kube-proxy
- like commit 48c41bcbe7
* enable fedora modular repo for crio
* allow to override crio configuration
- set cgroup manager same to kubelet_cgroup_driver if defined
- path of seccomp_profile depends on distribution
* allow to override crio configuration
- fix path for ubuntu
* allow to override crio configuration
- fix cni path for fcos
This commit is contained in:
@@ -71,15 +71,33 @@
|
||||
register: need_bootstrap_crio
|
||||
when: is_ostree
|
||||
|
||||
- name: Enable modular repos for crio
|
||||
ini_file:
|
||||
path: "/etc/yum.repos.d/{{ item }}.repo"
|
||||
section: "{{ item }}"
|
||||
option: enabled
|
||||
value: 1
|
||||
become: true
|
||||
when:
|
||||
- is_ostree
|
||||
- not need_bootstrap_crio.stat.exists
|
||||
loop:
|
||||
- "fedora-updates-modular"
|
||||
- "fedora-modular"
|
||||
|
||||
- name: Install cri-o packages with osttree
|
||||
raw: "export http_proxy={{ http_proxy | default('') }} && rpm-ostree install {{ crio_packages|join(' ') }}"
|
||||
when: is_ostree and not need_bootstrap_crio.stat.exists
|
||||
command: "rpm-ostree install {{ crio_packages|join(' ') }}"
|
||||
when:
|
||||
- is_ostree
|
||||
- not need_bootstrap_crio.stat.exists
|
||||
become: true
|
||||
|
||||
- name: Reboot immediately for updated ostree
|
||||
reboot:
|
||||
become: true
|
||||
when: is_ostree and not need_bootstrap_crio.stat.exists
|
||||
when:
|
||||
- is_ostree
|
||||
- not need_bootstrap_crio.stat.exists
|
||||
|
||||
- name: Install cri-o config
|
||||
template:
|
||||
|
||||
Reference in New Issue
Block a user