Skip to content

k8s: multi-node mode shouldn't require kubeadm reset #4481

@AkihiroSuda

Description

@AkihiroSuda

lima/templates/k8s.yaml

Lines 13 to 22 in cb0e125

# A multi-node cluster can be created by starting multiple instances of this template
# connected via the `lima:user-v2` network.
#
# $ limactl start --name k8s-0 --network lima:user-v2 template:k8s
# $ limactl shell k8s-0 sudo kubeadm token create --print-join-command
# (The join command printed here)
#
# $ limactl start --name k8s-1 --network lima:user-v2 template:k8s
# $ limactl shell k8s-1 sudo bash -euxc "kubeadm reset --force ; ip link delete cni0 ; ip link delete flannel.1 ; rm -rf /var/lib/cni /etc/cni"
# $ limactl shell k8s-1 sudo <JOIN_COMMAND_FROM_ABOVE>

Params should be used instead of requiring kubeadm reset to reset worker nodes.

A previous attempt:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions