Masdika Loading..
Masdika.ID

DevOps Engineer

Cloud Engineer

System Administrator

  • Home
  • Portfolio
  • Services
  • Resume
  • Skills
  • Blog
  • Contact
Masdika.ID

DevOps Engineer

Cloud Engineer

System Administrator

Download CV

Recent Posts

  • Dari Laptop Bekas Jadi Server Pribadi: Cara Membangun Home Server Murah Menggunakan ISP MyRepublic dengan Public IP
  • Pembuatan Subnet dan Alokasi IP Address pada Amazon Web Service VPC
  • Instalasi dan Konfigurasi AWS CLI pada EC2 (Lab Guide)
  • Membangun Arsitektur Web + Database Highly Available di AWS (RDS Multi-AZ)
  • Cara Reset Password OpenBSD di Proxmox via VNC

Recent Comments

  1. Alif on Jangan Gunakan latest Tag pada Docker Images! Ini Alasannya
  2. Sahrull on Panduan Lengkap Anti-DDoS: Installasi Iptables, Hardening, dan Cloudflare Proxy
  3. VSTRA on Cara Cerdas Menguasai Kubernetes (K8s): Panduan Lengkap Orkestrasi Kontainer untuk Developer Modern
  4. Rikiy on Cara Mudah Deploy Website Node.js Menggunakan Docker
  5. Masdika.BIZ.ID on Disaster Recovery Cluster (DRC) WordPress dengan MariaDB Galera dan Load Balancer Caddy

Categories

  • Tutorial

Masdika.ID

  • About
  • Terms & Conditions
  • Privacy Policy

Ansible Kubernetes HA Cluster

  • Created By: Masdika.ID
  • Date: 14/07/2025
  • Project: Ansible Kubernetes HA Cluster
  • Categories: Automation
See Demo

🛠️ Ansible Kubernetes HA Cluster – Infrastructure Automation Project

🌐 Project Overview

This project is a fully automated Infrastructure as Code (IaC) solution using Ansible to provision a Highly Available (HA) Kubernetes Cluster. It demonstrates end-to-end automation of a production-ready Kubernetes environment with multi-master architecture and HAProxy-based load balancing.

⚙️ Technologies Used

  • Ansible – for automated provisioning and orchestration

  • Kubernetes (HA) – with 3 control plane nodes and worker nodes

  • HAProxy – external load balancer for high availability of API server

  • Containerd – container runtime for lightweight and secure workloads

  • Ubuntu 22.04 / 24.04 – as the OS base on all nodes

  • (Optional) Keepalived + Floating IP – for local failover/load balancer setup

📌 Key Features

  • 🔧 Modular Ansible roles (common, containerd, kubernetes, lb-haproxy, master/worker)

  • 🔄 One-command cluster setup and teardown (playbook.yml and reset-k8s.yml)

  • 🧩 Clear inventory structure with IP mapping and SSH configuration

  • 💡 Designed for easy extensibility and reusability

  • 📂 Comprehensive documentation with directory tree and usage steps

  • 🛡️ Secure, consistent deployment following DevOps best practices

🎯 Goals & Purpose

  • Showcase real-world skills in DevOps, IaC, and Kubernetes automation

  • Create a reusable template for production or lab Kubernetes HA clusters

  • Demonstrate infrastructure design thinking and tool integration

📁 Project Output

  • A working multi-node Kubernetes HA cluster with load balancing

  • Full Ansible playbook repo including:

    • playbook.yml – main setup automation

    • reset-k8s.yml – cluster reset automation

    • roles/ – organized task files per component

    • inventory/ – group-based host inventory

  • Professional README.md with badges, usage guide, and structure

📌 GitHub Repository:
👉 https://github.com/masdikaaa/ansible-k8s-ha-cluster

Share:

Prev
Next
© 2025 www.masdika.id — Semua hak cipta dilindungi