Fix flatcar vagrant for Kubernetes 1.26
A temporary box needs to be used until Flatcar will release of new version of stable.
See
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
- config.vm.box = "flatcar-lts"
+ config.vm.box = "flatcar-main"
config.vm.box_check_update = true
- config.vm.box_url = "https://lts.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.box"
+ #config.vm.box_url = "https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_vagrant.box"
+ config.vm.box_url = "http://bincache.flatcar-linux.net/images/amd64/9999.0.0+tormath1-ignition-vagrant/flatcar_production_vagrant.box"
memory = 8192
cpus = 4
@@ -24,12 +25,14 @@ Vagrant.configure("2") do |config|
v.cpus = cpus
end
+ config.ssh.connect_timeout = 30
config.ssh.username = 'core'
config.ssh.forward_agent = true
config.ssh.insert_key = true
config.ssh.keep_alive = true
config.vm.synced_folder ".", "/vagrant", type: "rsync"
+ config.vm.boot_timeout = 600
config.vm.provision "install-dependencies", type: "shell", run: "once" do |sh|
sh.inline = <<~SHELL
@@ -90,7 +93,7 @@ Vagrant.configure("2") do |config|
# Install tools
curl -sSL -o $DOWNLOAD_DIR/jq "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64"
chmod +x $DOWNLOAD_DIR/jq
- curl -sSL -o $DOWNLOAD_DIR/flatcar_developer_container.bin.bz2 "https://lts.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2"
+ curl -sSL -o $DOWNLOAD_DIR/flatcar_developer_container.bin.bz2 "https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2"
bzcat $DOWNLOAD_DIR/flatcar_developer_container.bin.bz2 > $DOWNLOAD_DIR/flatcar_developer_container.bin
curl -sSL "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-amd64-${CNI_VERSION}.tgz" | tar -C /opt/cni/bin -xz
@@ -125,7 +128,7 @@ Vagrant.configure("2") do |config|
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
# Install CNI
- kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.0/manifests/tigera-operator.yaml
+ kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.5/manifests/tigera-operator.yaml
kubectl apply -f /vagrant/hack/ci/flatcar-cni-plugin.yaml
SHELL
end
