Skip to content

Instantly share code, notes, and snippets.

@andredlam
andredlam / nfs-server.md
Created August 6, 2025 11:28
nfs-server setup
@andredlam
andredlam / k8s.md
Last active August 4, 2025 05:54
k8s setup

Kubernetes Cluster Setup Guide

This guide walks you through setting up a 6-node Kubernetes cluster with 3 master nodes and 3 worker nodes for high availability on Ubuntu 24.04 LTS.

Prerequisites

Hardware Requirements

  • 6 Virtual Machines (or physical machines)
  • Master Nodes: Minimum 2 CPU cores, 4GB RAM, 20GB disk space each
  • Worker Nodes: Minimum 2 CPU cores, 4GB RAM, 50GB disk space each
@andredlam
andredlam / Makefile
Last active July 31, 2025 13:47
Makefile to deploy helm
ENV ?= dev
ENV_PATH := ./environments/$(ENV)
VALUES_FILE ?= $(ENV_PATH)/values/values.yaml
HELM_CHART_NAME := sample
HELM_CHART_PATH := ./sample
HELM_SUBCHART_PATH := $(HELM_CHART_PATH)/charts
# Cluster settings
ifeq ($(ENV),dev)
@andredlam
andredlam / setup_helm.md
Last active July 17, 2025 15:29
setup_helm.md

Install Docker on Ubuntu

cat <<'EOF' >> install_docker.sh
sudo apt -y update

sudo apt -y install \
            ca-certificates \
            curl \
            gnupg \
            lsb-release
@andredlam
andredlam / ovs-ofctl.md
Last active June 26, 2025 04:47
Use ovs-ofctl
@andredlam
andredlam / scaling_ovn.md
Last active June 26, 2025 17:16
Scaling OVN
@andredlam
andredlam / setup_KVM.md
Created June 25, 2025 00:27
Setup KVM

KVM/QEMU Setup Guide for Ubuntu 24.04

Overview

This guide covers the complete setup of KVM (Kernel-based Virtual Machine) with QEMU and libvirt on Ubuntu 24.04 LTS. KVM provides near-native performance virtualization on Linux systems and is ideal for homelab environments.

Prerequisites

Hardware Requirements

@andredlam
andredlam / setup_vagrant_on_KVM.md
Last active June 25, 2025 00:16
Setup Vagrant on Ubuntu KVM

Vagrant Installation Guide for Ubuntu 24.04

Overview

Vagrant is a tool for building and managing virtual machine environments. This guide covers installation and setup on Ubuntu 24.04.

Prerequisites

  • Ubuntu 24.04 LTS
  • At least 4GB RAM (8GB+ recommended)
@andredlam
andredlam / setup_openstack.md
Last active June 12, 2025 23:08
How to setup openstack

OpenStack

Environment Requirements

  • at least 64GB RAM
  • at least 4 CPU cores
  • at least 100GB disk space
  • Ubuntu 24.04 or later
  • KVM host with 2 interfaces
    • eno1 (management)
    • eno2 (data plane)