Added first stable version
This commit is contained in:
1
Vagrantfile
vendored
1
Vagrantfile
vendored
@@ -25,7 +25,6 @@ Vagrant.configure("2") do |config|
|
||||
node.vm.box = "bento/ubuntu-24.04"
|
||||
node.vm.hostname = "worker-node0#{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|
|
||||
vb.memory = 1024 # 1GB per worker
|
||||
vb.cpus = 1
|
||||
|
||||
@@ -1,21 +1,14 @@
|
||||
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 -
|
||||
|
||||
== 3. Give Non-root User Access to K3s Config ==
|
||||
sudo chown $USER:$USER /etc/rancher/k3s/k3s.yaml
|
||||
sudo chown vagrant:vagrant /etc/rancher/k3s/k3s.yaml
|
||||
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||
|
||||
== 4. Verify Kubernetes Cluster ==
|
||||
kubectl version
|
||||
kubectl get nodes
|
||||
kubectl get pods -A
|
||||
|
||||
== 5. Install Kustomize ==
|
||||
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
|
||||
sudo mv kustomize /usr/local/bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user