<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MartinS984</title>
    <description>The latest articles on DEV Community by MartinS984 (@martins984).</description>
    <link>https://dev.to/martins984</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F578344%2F2d00ff36-7d9f-4eeb-b0c2-61bd504ee7ab.jpg</url>
      <title>DEV Community: MartinS984</title>
      <link>https://dev.to/martins984</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/martins984"/>
    <language>en</language>
    <item>
      <title>Tutorial: Build a Zero-Cost DevOps Platform on Windows 11 with Kubernetes &amp; ArgoCD</title>
      <dc:creator>MartinS984</dc:creator>
      <pubDate>Tue, 30 Dec 2025 06:33:55 +0000</pubDate>
      <link>https://dev.to/martins984/tutorial-build-a-zero-cost-devops-platform-on-windows-11-with-kubernetes-argocd-1hnn</link>
      <guid>https://dev.to/martins984/tutorial-build-a-zero-cost-devops-platform-on-windows-11-with-kubernetes-argocd-1hnn</guid>
      <description>&lt;p&gt;Subtitle: A complete guide to running a production-grade DevSecOps stack locally using WSL2, Minikube, and Magic Domains.&lt;/p&gt;

&lt;p&gt;💡 Why This Matters&lt;br&gt;
Learning DevOps often comes with a price tag—AWS bills, managed clusters, and domain costs. But you don't need a credit card to simulate a production environment.&lt;/p&gt;

&lt;p&gt;In this tutorial, you will build a complete GitOps Pipeline on your local machine. By the end, you will have:&lt;/p&gt;

&lt;p&gt;Kubernetes Cluster (running inside WSL2).&lt;/p&gt;

&lt;p&gt;GitOps Automation (ArgoCD syncing from GitHub).&lt;/p&gt;

&lt;p&gt;Monitoring Stack (Prometheus &amp;amp; Grafana).&lt;/p&gt;

&lt;p&gt;Real URLs (using Ingress &amp;amp; nip.io—no localhost hacks).&lt;/p&gt;

&lt;p&gt;📋 Prerequisites&lt;br&gt;
Before we start, ensure you have the following installed on Windows 11:&lt;/p&gt;

&lt;p&gt;WSL2 (Ubuntu distribution recommended).&lt;/p&gt;

&lt;p&gt;Docker Desktop (configured to use the WSL2 backend).&lt;/p&gt;

&lt;p&gt;Minikube &amp;amp; Kubectl.&lt;/p&gt;

&lt;p&gt;Helm (Package manager for Kubernetes).&lt;/p&gt;

&lt;p&gt;Step 1: Initialize the Local Cloud&lt;br&gt;
First, we need to spin up our cluster. We will use the Docker driver for stability and enable the Ingress addon immediately.&lt;/p&gt;
&lt;h3&gt;
  
  
  Start the cluster
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;minikube start --driver=docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Enable the Ingress Controller (This acts as our traffic police)
&lt;/h1&gt;

&lt;p&gt;minikube addons enable ingress&lt;br&gt;
Step 2: Install the GitOps Engine (ArgoCD)&lt;br&gt;
We will use ArgoCD to watch a GitHub repository and automatically sync changes to our cluster.&lt;/p&gt;

&lt;p&gt;The Challenge: SSL Loops&lt;br&gt;
ArgoCD enforces HTTPS by default. When running behind a local Ingress controller, this often causes "Infinite Redirect" loops or 503 errors.&lt;/p&gt;

&lt;p&gt;The Fix: Insecure Mode Patch&lt;br&gt;
We will install ArgoCD and immediately patch it to run in "Insecure Mode," letting our Ingress controller handle the routing.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Create the namespace and install ArgoCD
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  2. Wait for pods to start
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl get pods -n argocd --watch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  3. PATCH: Disable internal SSL enforcement
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl patch deployment argocd-server -n argocd --type=json -p='[{"op": "add", "path": "/spec/template/spec/containers/0/command", "value": ["argocd-server", "--staticassets", "/shared/app", "--insecure"]}]'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Step 3: Add Observability (Grafana)&lt;br&gt;
A production cluster needs monitoring. We'll use Helm to install the industry-standard "Kube-Prometheus Stack."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install monitoring prometheus-community/kube-prometheus-stack
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 4: The Networking Magic (nip.io)&lt;br&gt;
This is the most critical part. Instead of editing your Windows hosts file for every new service, we use nip.io. This wild-card DNS service maps any domain containing an IP address back to that IP.&lt;/p&gt;

&lt;p&gt;We configure our Kubernetes Ingress resources to listen on domains like:&lt;/p&gt;

&lt;p&gt;argocd.127.0.0.1.nip.io&lt;/p&gt;

&lt;p&gt;grafana.127.0.0.1.nip.io&lt;/p&gt;

&lt;p&gt;This tricks your browser into thinking it's visiting a real website, while the traffic stays 100% local.&lt;/p&gt;

&lt;p&gt;Step 5: The "Wide Open" Gateway&lt;br&gt;
Finally, we bridge the gap between Windows (your browser) and Linux (the cluster). We use kubectl port-forward, but with a twist: the --address 0.0.0.0 flag.&lt;/p&gt;

&lt;p&gt;Run this in a separate terminal and keep it open:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kubectl port-forward -n ingress-nginx svc/ingress-nginx-controller 8080:80 --address 0.0.0.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pro Tip: This flag forces the port to listen on all network interfaces, ensuring Windows can "see" the Linux port.&lt;/p&gt;

&lt;p&gt;🚀 The Result&lt;br&gt;
Open your browser. You now have access to a full suite of DevOps tools via clean, distinct URLs:&lt;/p&gt;

&lt;p&gt;ArgoCD: &lt;a href="http://argocd.127.0.0.1.nip.io:8080" rel="noopener noreferrer"&gt;http://argocd.127.0.0.1.nip.io:8080&lt;/a&gt; (GitOps Dashboard)&lt;/p&gt;

&lt;p&gt;Grafana: &lt;a href="http://grafana.127.0.0.1.nip.io:8080" rel="noopener noreferrer"&gt;http://grafana.127.0.0.1.nip.io:8080&lt;/a&gt; (Metrics)&lt;/p&gt;

&lt;p&gt;Your App: &lt;a href="http://node-app.127.0.0.1.nip.io:8080" rel="noopener noreferrer"&gt;http://node-app.127.0.0.1.nip.io:8080&lt;/a&gt; (The workload)&lt;/p&gt;

&lt;p&gt;🏁 Conclusion&lt;br&gt;
You have successfully built a zero-cost DevOps platform. You solved the complex networking issues of WSL2 using Ingress and nip.io, and you established a GitOps workflow with ArgoCD.&lt;/p&gt;

&lt;p&gt;This setup allows you to test, break, and fix production-grade deployments without spending a dime on cloud providers.&lt;/p&gt;

&lt;p&gt;Happy Coding!&lt;/p&gt;

&lt;p&gt;Tags: #DevOps #Kubernetes #Tutorial #GitOps #Minikube #WSL2 #Engineering&lt;/p&gt;

&lt;p&gt;📂 Get the Code: You can find the complete source code, including the Kubernetes manifests, ArgoCD config, and the nip.io ingress setup here: 👉 &lt;a href="https://github.com/MartinS984/node-devops-project" rel="noopener noreferrer"&gt;https://github.com/MartinS984/node-devops-project&lt;/a&gt;&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>cicd</category>
      <category>tutorial</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
