dsk-dev kubespray 이동
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Get nerdctl completion
|
||||
command: "{{ bin_dir }}/nerdctl completion bash"
|
||||
changed_when: False
|
||||
register: nerdctl_completion
|
||||
check_mode: false
|
||||
|
||||
- name: Install nerdctl completion
|
||||
copy:
|
||||
dest: /etc/bash_completion.d/nerdctl
|
||||
content: "{{ nerdctl_completion.stdout }}"
|
||||
mode: 0644
|
||||
@@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: nerdctl | Download nerdctl
|
||||
include_tasks: "../../../download/tasks/download_file.yml"
|
||||
vars:
|
||||
download: "{{ download_defaults | combine(downloads.nerdctl) }}"
|
||||
|
||||
- name: nerdctl | Copy nerdctl binary from download dir
|
||||
copy:
|
||||
src: "{{ local_release_dir }}/nerdctl"
|
||||
dest: "{{ bin_dir }}/nerdctl"
|
||||
mode: 0755
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
notify:
|
||||
- Get nerdctl completion
|
||||
- Install nerdctl completion
|
||||
|
||||
- name: nerdctl | Create configuration dir
|
||||
file:
|
||||
path: /etc/nerdctl
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
|
||||
- name: nerdctl | Install nerdctl configuration
|
||||
template:
|
||||
src: nerdctl.toml.j2
|
||||
dest: /etc/nerdctl/nerdctl.toml
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
@@ -0,0 +1,10 @@
|
||||
debug = false
|
||||
debug_full = false
|
||||
address = "{{ cri_socket }}"
|
||||
namespace = "k8s.io"
|
||||
snapshotter = "native"
|
||||
cni_path = "/opt/cni/bin"
|
||||
cni_netconfpath = "/etc/cni/net.d"
|
||||
cgroup_manager = "{{ kubelet_cgroup_driver | default('systemd') }}"
|
||||
insecure_registry = {{ (containerd_insecure_registries is defined and containerd_insecure_registries|length>0) | bool | lower }}
|
||||
hosts_dir = ["/etc/containerd/certs.d"]
|
||||
Reference in New Issue
Block a user