Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 895 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 895 Bytes

Create K3s Cluster with Vagrant and VirtualBox

Differences between K8s and K3s : 👉 K8s-and-K3s.md

Prerequisites:

  1. Install Vagrant – Follow the Vagrant Install Guide.
  2. Install VirtualBox – Download from VirtualBox.
  3. Vagrant Box – Use the bento/debian-12 Vagrant box.

Steps:

  1. Create Shared Directory:

    mkdir -p ./Shared
  2. Start Vagrant Cluster:

    vagrant up
  3. Copy K3s Kubeconfig File:

    cat Shared/k3s.yaml >> ~/.kube/config

Notes:

  • Access the cluster using kubectl:
    kubectl get nodes
  • The Shared folder is used to transfer files (e.g., k3s.yaml) between VMs.