FluxCD journey with Minikube
π Phase 1: The Manual Foundation Goal: Set up the cluster and deploy a "Hello World" app the old-fashioned way to understand what we are automating. π οΈ Step 1: Install Tools # Install the Big Thr...

Source: DEV Community
π Phase 1: The Manual Foundation Goal: Set up the cluster and deploy a "Hello World" app the old-fashioned way to understand what we are automating. π οΈ Step 1: Install Tools # Install the Big Three (macOS example) brew install minikube kubectl fluxcd/tap/flux ποΈ Step 2: Start Minikube minikube start --cpus 2 --memory 4096 --driver=docker minikube addons enable ingress π Step 3: Directory Layout Create this structure on your local machine: flux-lab/ βββ base/ βββ kustomization.yaml βββ web-server.yaml π Step 4: The Manifests flux-lab/base/web-server.yaml apiVersion: apps/v1 kind: Deployment metadata: name: web-server namespace: engineering spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.25 ports: - containerPort: 80 flux-lab/base/kustomization.yaml resources: - web-server.yaml π Step 5: Deploy Manually kubectl create namespace engineering kubectl apply -k flux-lab/base/ kubectl get pods -n en