- Install docker.io k3s nfs-common automatically, and the commands you pass in
- Import authorized_keys.txt to
.ssh/authorized_keys
with username and password for ssh login
autok3s --user ubuntu --password password -m master_ip -w worker_ip1 -w worker_ip2 --auth_keys_path /path/authorized_keys.txt \
--master_extra_args "--docker" \
--worker_extra_args "--docker" \
--master_commands "sudo apt-get install nfs-kernel-server" \
--master_commands "sudo mkdir -p /nfs" \
--master_commands "sudo touch /etc/exports" \
--master_commands \""sudo echo '/nfs *(rw,sync,no_subtree_check,no_root_squash)' >> /etc/exports"\" \
--master_commands "sudo exportfs -ar" \
--master_commands "sudo /etc/init.d/nfs-kernel-server restart" \
# --pre_master_commands \
# --pre_master_commands \
# --pre_master_commands \
# --pre_worker_commands \
# --pre_worker_commands \
# --pre_worker_commands \
# --worker_commands \
# --worker_commands \
# --worker_commands \