Skip to content

This project demonstrates how to set up a lightweight Kubernetes cluster using K3s, leveraging Vagrant and Ansible to automate the provisioning and configuration process. By deploying a multi-node Kubernetes cluster locally, this setup allows developers to test, experiment, and learn Kubernetes without requiring cloud infrastructure.

Notifications You must be signed in to change notification settings

abdulraoufatia/k3s-vagrant-cluster

Repository files navigation

K3s Kubernetes Cluster using Vagrant & Ansible

Prerequisites

Setup and Run

  1. Start the Virtual Machines
    vagrant up
  2. Verify Cluster Nodes
    vagrant ssh master
    kubectl get nodes
  3. Run Ansible Playbook to Automate K3s Setup
    ansible-playbook -i ansible/inventory.ini ansible/setup-k3s.yml
  4. Deploy Sample Application
    kubectl apply -f manifests/app-deployment.yml
  5. Set Up Ingress Controller
    kubectl apply -f manifests/ingress.yml

About

This project demonstrates how to set up a lightweight Kubernetes cluster using K3s, leveraging Vagrant and Ansible to automate the provisioning and configuration process. By deploying a multi-node Kubernetes cluster locally, this setup allows developers to test, experiment, and learn Kubernetes without requiring cloud infrastructure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages