-
Notifications
You must be signed in to change notification settings - Fork 256
使用 Vagrant
Lework edited this page Apr 20, 2021
·
1 revision
使用 Vagrant 一键初始化单节点
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.define vm_name = 'k8s'
config.vm.provision "shell", privileged: true, inline: <<-SHELL
bash -c "$(curl -sSL https://cdn.jsdelivr.net/gh/lework/kainstall@master/kainstall.sh)" - init --version 1.21.0
SHELL
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--cpus", 2]
v.customize ["modifyvm", :id, "--memory", 4096]
v.customize ['modifyvm', :id, '--nicpromisc1', 'allow-all']
end
end