Merge "Convert ephemeral from docker to containerd"
This commit is contained in:
commit
db16837902
@ -28,13 +28,16 @@ stringData:
|
|||||||
gecos: deployer
|
gecos: deployer
|
||||||
ssh_pwauth: True
|
ssh_pwauth: True
|
||||||
runcmd:
|
runcmd:
|
||||||
|
- mkdir -p /etc/containerd
|
||||||
|
- containerd config default | sed -r -e '/\[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc\]$/a\ SystemdCgroup = true' | tee /etc/containerd/config.toml
|
||||||
- systemctl daemon-reload
|
- systemctl daemon-reload
|
||||||
|
- systemctl restart containerd
|
||||||
- systemctl restart docker
|
- systemctl restart docker
|
||||||
- /bin/bash -c 'kernel_libsubdir="$(ls /lib/modules | head -1)"; config_dir="/lib/modules/${kernel_libsubdir}/build"; mkdir -p "${config_dir}"; if [ -f /run/live/medium/config ] && [ ! -f "${config_dir}/.config" ]; then ln -s /run/live/medium/config "${config_dir}/.config"; fi;'
|
- /bin/bash -c 'kernel_libsubdir="$(ls /lib/modules | head -1)"; config_dir="/lib/modules/${kernel_libsubdir}/build"; mkdir -p "${config_dir}"; if [ -f /run/live/medium/config ] && [ ! -f "${config_dir}/.config" ]; then ln -s /run/live/medium/config "${config_dir}/.config"; fi;'
|
||||||
- kubeadm init --config /tmp/kubeadm.yaml
|
- kubeadm init --config /tmp/kubeadm.yaml
|
||||||
- mkdir -p /opt/metal3-dev-env/ironic/html/images
|
- mkdir -p /opt/metal3-dev-env/ironic/html/images
|
||||||
write_files:
|
write_files:
|
||||||
- path: /etc/systemd/system/docker.service.d/http-proxy.conf
|
- path: /etc/systemd/system/containerd.service.d/http-proxy.conf
|
||||||
permissions: '0644'
|
permissions: '0644'
|
||||||
owner: root:root
|
owner: root:root
|
||||||
content: |
|
content: |
|
||||||
@ -102,6 +105,10 @@ stringData:
|
|||||||
- NumCPU
|
- NumCPU
|
||||||
- SystemVerification
|
- SystemVerification
|
||||||
taints: []
|
taints: []
|
||||||
|
kubeletExtraArgs:
|
||||||
|
cgroup-driver: "systemd"
|
||||||
|
container-runtime: remote
|
||||||
|
criSocket: "unix:///run/containerd/containerd.sock"
|
||||||
owner: root:root
|
owner: root:root
|
||||||
path: /tmp/kubeadm.yaml
|
path: /tmp/kubeadm.yaml
|
||||||
permissions: "0640"
|
permissions: "0640"
|
||||||
@ -130,9 +137,11 @@ stringData:
|
|||||||
- mkdir -p /opt/metal3-dev-env/ironic/html/images
|
- mkdir -p /opt/metal3-dev-env/ironic/html/images
|
||||||
- mkdir -p /mnt/ephemeral/opt/metal3-dev-env/ironic/html/images
|
- mkdir -p /mnt/ephemeral/opt/metal3-dev-env/ironic/html/images
|
||||||
- mount --bind /mnt/ephemeral/opt/metal3-dev-env/ironic/html/images /opt/metal3-dev-env/ironic/html/images
|
- mount --bind /mnt/ephemeral/opt/metal3-dev-env/ironic/html/images /opt/metal3-dev-env/ironic/html/images
|
||||||
|
- mkdir -p /var/lib/containerd /mnt/ephemeral/var/lib/containerd
|
||||||
|
- mount --bind /mnt/ephemeral/var/lib/containerd /var/lib/containerd
|
||||||
- mkdir -p /var/lib/docker /mnt/ephemeral/var/lib/docker
|
- mkdir -p /var/lib/docker /mnt/ephemeral/var/lib/docker
|
||||||
- mount --bind /mnt/ephemeral/var/lib/docker /var/lib/docker
|
- mount --bind /mnt/ephemeral/var/lib/docker /var/lib/docker
|
||||||
- mkdir -p /var/lib/docker-engine /mnt/ephemeral/var/lib/docker-engine
|
- mkdir -p /var/lib/docker-engine /mnt/ephemeral/var/lib/docker-engine
|
||||||
- mount --bind /mnt/ephemeral/var/lib/docker-engine /var/lib/docker-engine
|
- mount --bind /mnt/ephemeral/var/lib/docker-engine /var/lib/docker-engine
|
||||||
- mkdir -p /mnt/ephemeral/var/lib/kubelet/ /var/lib/kubelet/
|
- mkdir -p /mnt/ephemeral/var/lib/kubelet/ /var/lib/kubelet/
|
||||||
- mount --bind /mnt/ephemeral/var/lib/kubelet/ /var/lib/kubelet/
|
- mount --bind /mnt/ephemeral/var/lib/kubelet/ /var/lib/kubelet/
|
Loading…
Reference in New Issue
Block a user