Added first stable version

This commit is contained in:
2026-01-30 10:53:15 +01:00
parent d2a11c9d1d
commit c0db7aa046
2 changed files with 1 additions and 9 deletions

1
Vagrantfile vendored
View File

@@ -25,7 +25,6 @@ Vagrant.configure("2") do |config|
node.vm.box = "bento/ubuntu-24.04" node.vm.box = "bento/ubuntu-24.04"
node.vm.hostname = "worker-node0#{i}" node.vm.hostname = "worker-node0#{i}"
node.vm.network "private_network", ip: IP_NW + "#{10 + i}" node.vm.network "private_network", ip: IP_NW + "#{10 + i}"
node.vm.provision "shell", path: "k3s_worker.sh"
node.vm.provider "virtualbox" do |vb| node.vm.provider "virtualbox" do |vb|
vb.memory = 1024 # 1GB per worker vb.memory = 1024 # 1GB per worker
vb.cpus = 1 vb.cpus = 1

View File

@@ -1,21 +1,14 @@
echo "🚀 Instal·lant K3s Server (Master)..." echo "🚀 Instal·lant K3s Server (Master)..."
== 1. Update Your System ==
sudo apt update
sudo apt upgrade -y
== 2. Install k3s ==
curl -sfL https://get.k3s.io | sh - curl -sfL https://get.k3s.io | sh -
== 3. Give Non-root User Access to K3s Config == sudo chown vagrant:vagrant /etc/rancher/k3s/k3s.yaml
sudo chown $USER:$USER /etc/rancher/k3s/k3s.yaml
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
== 4. Verify Kubernetes Cluster ==
kubectl version kubectl version
kubectl get nodes kubectl get nodes
kubectl get pods -A kubectl get pods -A
== 5. Install Kustomize ==
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
sudo mv kustomize /usr/local/bin sudo mv kustomize /usr/local/bin