mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 13:42:47 +01:00
build
This commit is contained in:
@@ -123,6 +123,22 @@
|
|||||||
- 10250
|
- 10250
|
||||||
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
when: inventory_hostname == 'ubuntu24-vm01.home.lan'
|
||||||
|
|
||||||
|
- name: Configure containerd for kubeadm
|
||||||
|
copy:
|
||||||
|
dest: /etc/containerd/config.toml
|
||||||
|
content: |
|
||||||
|
[plugins."io.containerd.grpc.v1.cri".containerd]
|
||||||
|
snapshotter = "overlayfs"
|
||||||
|
|
||||||
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
|
||||||
|
runtime_type = "io.containerd.runc.v2"
|
||||||
|
|
||||||
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
|
||||||
|
SystemdCgroup = true
|
||||||
|
notify:
|
||||||
|
- restart containerd
|
||||||
|
|
||||||
|
|
||||||
- name: Initialize Kubernetes
|
- name: Initialize Kubernetes
|
||||||
command: kubeadm init --pod-network-cidr=10.244.0.0/16
|
command: kubeadm init --pod-network-cidr=10.244.0.0/16
|
||||||
args:
|
args:
|
||||||
|
|||||||
Reference in New Issue
Block a user