# -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure('2') do |config| $k3s_server = <<-SCRIPT sed -i 's/PasswordAuthentication\ no/PasswordAuthentication\ yes/g' /etc/ssh/sshd_config systemctl restart sshd helm_url=https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz which k3s || curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--no-deploy traefik" INSTALL_K3S_CHANNEL=latest sh - which helm || (curl -o /home/vagrant/$(basename $helm_url) $helm_url -L --silent && \ tar -xvf helm-v3.5.3-linux-amd64.tar.gz && \ sudo cp /home/vagrant/linux-amd64/helm /usr/local/bin/ && \ sudo chmod 775 /usr/local/bin/helm) helm list &> /dev/null || sudo chown vagrant:root /etc/rancher/k3s/k3s.yaml export KUBECONFIG=/etc/rancher/k3s/k3s.yaml #kubectl get pods -l app.kubernetes.io/name=ingress-nginx | grep nginx &> /dev/null cat >/var/lib/rancher/k3s/server/manifests/ingress-nginx.yaml <