<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pronomita Dey on Medium]]></title>
        <description><![CDATA[Stories by Pronomita Dey on Medium]]></description>
        <link>https://medium.com/@pronomitadey?source=rss-6a53e5ea7b5b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AmqN_Q2dN__XYpRV4Porew@2x.jpeg</url>
            <title>Stories by Pronomita Dey on Medium</title>
            <link>https://medium.com/@pronomitadey?source=rss-6a53e5ea7b5b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:39:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pronomitadey/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Dashabhuja: The Ten Arms of an AI Platform Engineer]]></title>
            <link>https://pronomitadey.medium.com/dashabhuja-the-ten-arms-of-an-ai-platform-engineer-22b5c654753b?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/22b5c654753b</guid>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 09:54:03 GMT</pubDate>
            <atom:updated>2026-10-04T09:54:03.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Mahishasur’s boon made him invincible against any single god. So the devas pooled their shakti into one being — Durga — and each placed a weapon in her hands.</p><p>Platform engineers know this demon. He shape-shifts. A latency spike that vanishes when you look at it. Config drift nobody committed. A bottleneck three layers below the symptom.</p><p>This year he has a new form. He writes code, opens pull requests at 3 AM, holds a credential, and never sleeps.</p><p>AI agents are the first workload we run at scale that is non-deterministic by design. Same prompt, same input, different output. You can’t lint it. You can’t unit-test it into safety. No single control plane contains it.</p><p>So we do what the devas did — Converge.</p><p>This talk maps Durga’s ten arms to the ten capabilities a platform needs to run agents in production — reconciliation, observability, elasticity, policy, identity, provenance, resilience, alerting, developer experience, cost. Each arm carries a production lesson from operating a source control platform serving 17,000 engineers and 470,000 repositories: the failure class it ends, the drift it catches, or the 2 AM page it makes unnecessary.</p><p>Durga isn’t powerful because of her weapons. She is the combined shakti of everyone who gave one. No single project on this slide contains the demon — Argo CD doesn’t, OPA doesn’t, SPIFFE doesn’t. Each one ends exactly one failure class. The platform is what you get when thousands of hands pool shakti into a single pair of hands. Build it before the pull requests start arriving at 3 AM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22b5c654753b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Pods Are Always Late to the Party — Fix It with KEDA]]></title>
            <link>https://medium.com/the-tech-matter/your-pods-are-always-late-to-the-party-fix-it-with-keda-ba8bb1d77688?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba8bb1d77688</guid>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Mon, 04 May 2026 16:23:06 GMT</pubDate>
            <atom:updated>2026-05-04T16:23:06.555Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xulm2BI9R4Krqu_wjx84ag.png" /></figure><blockquote><em>The party started at 8PM. Your Kafka topic started accumulating lag, your job queue started backing up, your users started waiting. And your pods? Still getting dressed.</em></blockquote><p>We’ve all been there. A traffic spike hits, CPU climbs, HPA eventually notices, kicks off a scale-out event — and by the time new pods are warm and ready, your p99 latency is already on fire, your on-call is awake, and someone is writing a post-mortem.</p><p>HPA isn’t broken. It’s just fashionably late.</p><p>We are taling about <strong>KEDA</strong> — the Kubernetes Event-Driven Autoscaler — and how it gets your pods to the party on time. We’ll cover how it works under the hood, walk through three production-grade scalers (Kafka, GitHub Actions, and Prometheus), show you the YAML, and be honest about when KEDA is the right tool — and when it isn’t.</p><h3>The Problem: HPA Reacts, It Doesn’t Predict</h3><p>The Horizontal Pod Autoscaler was designed around a simple idea: if CPU or memory goes too high, add more pods. That works for stateless HTTP services where request load directly correlates with CPU. But in modern distributed systems, your actual load signals are almost never CPU.</p><ul><li>Kafka consumer lag growing? CPU is fine until it isn’t.</li><li>GitHub Actions runners exhausted? CPU on your pods is idle — they’re waiting for jobs.</li><li>Business metric spiking (checkout volume, payments in flight)? Your pods have no idea.</li></ul><p>By the time CPU or memory catches up to the actual problem, you’ve already paid the cost in latency, error rate, or user frustration. Scaling on symptoms instead of causes is the core of HPA’s limitation.</p><p><strong>The gap:</strong> HPA polls metrics from the Kubernetes Metrics Server on a fixed interval (default 15 seconds). Add pod startup time, readiness probes, and warm-up, and you’re easily looking at 60–90 seconds of reaction time after a spike begins. For high-throughput systems, that’s an eternity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vaRAxMZRPJlxpGmb.jpg" /></figure><h3>Enter KEDA: Event-Driven Autoscaling for Kubernetes</h3><p><strong>KEDA (Kubernetes Event-Driven Autoscaler)</strong> is a CNCF graduated project that extends Kubernetes autoscaling to work with external event sources. Instead of waiting for CPU to spike, KEDA lets you scale on what actually matters: queue depth, consumer lag, pending jobs, or any Prometheus query you can dream up.</p><p>It was originally created by Microsoft and Red Hat, donated to CNCF, and graduated in 2023 — meaning it has production-grade maturity and a broad ecosystem.</p><h3>What KEDA adds</h3><ul><li><strong>60+ built-in scalers</strong>: Kafka, AWS SQS, Azure Service Bus, RabbitMQ, GitHub Actions, Prometheus, Redis, Cron, and many more.</li><li><strong>Scale to zero</strong>: Pods can scale all the way to zero when there’s no load, and scale back up the moment an event arrives. HPA cannot do this.</li><li><strong>Works with existing HPA</strong>: KEDA doesn’t replace HPA — it feeds it. Under the hood, KEDA drives a standard Kubernetes HPA, which means you keep native Kubernetes semantics.</li><li><strong>ScaledObject and ScaledJob</strong>: Two custom resource types that let you configure autoscaling declaratively.</li></ul><h3>How it works under the hood</h3><p>KEDA installs as a set of components in your cluster:</p><pre>External Source (Kafka / GitHub / Prometheus)<br>        │<br>        ▼<br>  KEDA Operator          ← watches ScaledObject CRDs<br>        │<br>        ▼<br>  KEDA Metrics Server    ← exposes custom/external metrics to Kubernetes API<br>        │<br>        ▼<br>  HPA (native)           ← reads metrics, drives replica count<br>        │<br>        ▼<br>  Your Deployment / Job</pre><p>The KEDA Operator watches ScaledObject resources. When a trigger condition is met (e.g., Kafka lag &gt; threshold), it exposes that signal as a custom metric through the Kubernetes External Metrics API. The standard HPA picks that up and adjusts replicas. You get event-driven scaling without reinventing the HPA wheel.</p><p>For <strong>ScaledJob</strong> (used for batch workloads), KEDA manages Kubernetes Jobs directly — spinning up a new Job per event and cleaning them up when complete.</p><h3>Installing KEDA</h3><p>The fastest path is Helm:</p><pre>helm repo add kedacore https://kedacore.github.io/charts<br>helm repo update<br>helm install keda kedacore/keda --namespace keda --create-namespace</pre><p>Verify the install:</p><pre>kubectl get pods -n keda<br># keda-operator-xxx<br># keda-operator-metrics-apiserver-xxx</pre><p>You’re now ready to define ScaledObject resources.</p><h3>Production Pattern 1: Kafka Consumer Lag</h3><p>Kafka is where KEDA shines most obviously. Consumer lag is a direct, meaningful signal — if your consumers can’t keep up with produce rate, you need more consumers. Not more CPU headroom. More consumers.</p><h3>The scenario</h3><p>You have a Kafka topic order-events with a consumer group order-processor. Under normal load, 2 pods handle it fine. During peak hours, lag accumulates and order processing slows.</p><h3>The ScaledObject</h3><pre>apiVersion: keda.sh/v1alpha1<br>kind: ScaledObject<br>metadata:<br>  name: order-processor-scaler<br>  namespace: production<br>spec:<br>  scaleTargetRef:<br>    name: order-processor-deployment<br>  minReplicaCount: 1<br>  maxReplicaCount: 20<br>  cooldownPeriod: 60<br>  triggers:<br>    - type: kafka<br>      metadata:<br>        bootstrapServers: kafka-broker.production.svc:9092<br>        consumerGroup: order-processor<br>        topic: order-events<br>        lagThreshold: &quot;50&quot;        # scale out when lag per partition &gt; 50<br>        offsetResetPolicy: latest</pre><p><strong>What this does:</strong> KEDA polls the Kafka consumer group offsets and compares them to the latest partition offsets. If average lag per partition exceeds 50 messages, HPA adds replicas. It scales back down (with cooldown) as lag clears.</p><h3>Production considerations</h3><ul><li>Set lagThreshold based on your acceptable processing delay, not a round number. If 50 messages takes your consumer 10 seconds to process, that&#39;s your tolerable lag.</li><li>Use minReplicaCount: 1 (not 0) for latency-sensitive consumers — the first scale-up from zero has a cold-start cost.</li><li>TLS and SASL are supported via authenticationRef with a TriggerAuthentication resource.</li></ul><pre># TriggerAuthentication for SASL/TLS<br>apiVersion: keda.sh/v1alpha1<br>kind: TriggerAuthentication<br>metadata:<br>  name: kafka-auth<br>  namespace: production<br>spec:<br>  secretTargetRef:<br>    - parameter: sasl<br>      name: kafka-secrets<br>      key: sasl-mechanism<br>    - parameter: username<br>      name: kafka-secrets<br>      key: username<br>    - parameter: password<br>      name: kafka-secrets<br>      key: password</pre><h3>Production Pattern 2: GitHub Actions Job Queue</h3><p>If you run self-hosted GitHub Actions runners in Kubernetes, you’ve probably hit the ceiling where queued jobs wait because no runners are available. Scaling runners statically wastes compute 90% of the time. Scale-to-zero runners with KEDA is the right model.</p><h3>The scenario</h3><p>Your organization (intuit-eval) runs CI pipelines on self-hosted runners in Kubernetes. During business hours, 10–15 jobs queue simultaneously. At night, there are zero jobs.</p><h3>The ScaledObject</h3><pre>apiVersion: keda.sh/v1alpha1<br>kind: ScaledObject<br>metadata:<br>  name: github-runner-scaler<br>  namespace: ci-runners<br>spec:<br>  scaleTargetRef:<br>    name: actions-runner-deployment<br>  minReplicaCount: 0             # true scale-to-zero<br>  maxReplicaCount: 25<br>  cooldownPeriod: 300            # 5 min cooldown after jobs drain<br>  triggers:<br>    - type: github-runner<br>      authenticationRef:<br>        name: github-runner-auth<br>      metadata:<br>        owner: intuit-eval<br>        repos: &quot;platform-tools,ghes-automation&quot;<br>        runnerScope: org          # org-level runner pool<br>        targetWorkflowQueueLength: &quot;1&quot;</pre><pre>apiVersion: keda.sh/v1alpha1<br>kind: TriggerAuthentication<br>metadata:<br>  name: github-runner-auth<br>  namespace: ci-runners<br>spec:<br>  secretTargetRef:<br>    - parameter: personalAccessToken<br>      name: github-pat-secret<br>      key: token</pre><p><strong>What this does:</strong> KEDA queries the GitHub API for queued workflow runs. Each queued job that needs a runner increments the metric. Runners scale up to meet demand and scale to zero when the queue is clear.</p><h3>Production considerations</h3><ul><li>Use a <strong>GitHub App</strong> instead of a PAT for production — better rate limits and no user-dependency.</li><li>cooldownPeriod: 300 prevents runners from spinning down mid-job. Tune this to your longest expected job duration.</li><li>Pair with actions-runner-controller (ARC) for more advanced runner lifecycle management — KEDA and ARC are complementary.</li><li>For ScaledJob instead of ScaledObject, you can spin up one Kubernetes Job per GitHub Actions job — this gives complete isolation but higher pod startup overhead.</li></ul><h3>Production Pattern 3: Prometheus Business Metrics</h3><p>This is the most powerful and flexible pattern. Any business or operational metric you can express in PromQL can drive your autoscaler. RPS, error rate, active checkout sessions, payments in flight — the signal is up to you.</p><h3>The scenario</h3><p>Your checkout service should scale based on active checkout sessions (tracked as a Prometheus gauge), not CPU. You have a Prometheus instance in-cluster.</p><h3>The ScaledObject</h3><pre>apiVersion: keda.sh/v1alpha1<br>kind: ScaledObject<br>metadata:<br>  name: checkout-service-scaler<br>  namespace: production<br>spec:<br>  scaleTargetRef:<br>    name: checkout-deployment<br>  minReplicaCount: 2<br>  maxReplicaCount: 50<br>  pollingInterval: 15           # check every 15 seconds<br>  cooldownPeriod: 120<br>  triggers:<br>    - type: prometheus<br>      metadata:<br>        serverAddress: http://prometheus.monitoring.svc:9090<br>        metricName: active_checkout_sessions<br>        threshold: &quot;100&quot;         # 1 pod per 100 active sessions<br>        query: sum(active_checkout_sessions{env=&quot;production&quot;})</pre><p><strong>What this does:</strong> KEDA evaluates the PromQL query every pollingInterval seconds. The result is divided by threshold to determine desired replica count. If there are 800 active sessions, KEDA targets 8 pods.</p><h3>Advanced: Multi-metric scaling</h3><p>You can define multiple triggers on a single ScaledObject. KEDA uses the <strong>maximum</strong> desired replica count across all triggers:</p><pre>triggers:<br>  - type: prometheus<br>    metadata:<br>      query: sum(rate(http_requests_total{service=&quot;checkout&quot;}[2m]))<br>      threshold: &quot;500&quot;          # 1 pod per 500 RPS<br>      ...<br>  - type: prometheus<br>    metadata:<br>      query: sum(active_checkout_sessions)<br>      threshold: &quot;100&quot;          # 1 pod per 100 sessions<br>      ...</pre><p>This ensures you scale for either signal, whichever demands more capacity.</p><h3>Production considerations</h3><ul><li>Use <strong>recording rules</strong> in Prometheus for complex queries — KEDA polling a heavy query every 15 seconds can add load to your Prometheus instance.</li><li>Set minReplicaCount based on your baseline SLA, not zero, for latency-sensitive services.</li><li>The Prometheus scaler works with any Prometheus-compatible source: Thanos, Grafana Mimir, VictoriaMetrics.</li></ul><h3>Scale-to-Zero: The Cost Model Change</h3><p>One of KEDA’s most impactful capabilities is true scale-to-zero. Set minReplicaCount: 0 and your deployment drops to zero pods when there are no events — no idle compute, no wasted node capacity.</p><pre>spec:<br>  minReplicaCount: 0    # zero pods when queue is empty<br>  maxReplicaCount: 20</pre><p>When a new event arrives, KEDA detects it, sets replicas to 1 (or whatever minReplicaCount was before zero), and lets HPA drive from there. The first event pays a cold-start cost — typically 15–45 seconds depending on your image pull and startup time.</p><p><strong>When scale-to-zero is worth it:</strong></p><ul><li>Batch processors that run periodically (nightly ETL, report generation)</li><li>CI runners that sit idle outside business hours</li><li>Dev/staging environments</li><li>Event-driven microservices with bursty, unpredictable load</li></ul><p><strong>When to keep a floor:</strong></p><ul><li>Latency-sensitive APIs where first-request cold start is unacceptable</li><li>Services that receive traffic 24/7 with minimal gaps</li></ul><h3>Honest Tradeoffs: When KEDA Is the Right Tool and When It Isn’t</h3><p>No tool is universally right. Here’s a direct assessment:</p><h3>Use KEDA when</h3><ul><li>Your load signal is <strong>not CPU or memory</strong> — it’s a queue, a topic, a job count, or a business metric.</li><li>You need <strong>scale-to-zero</strong> for cost savings on bursty or idle workloads.</li><li>You run <strong>batch jobs</strong> that should spin up on demand and terminate on completion (ScaledJob).</li><li>You want a declarative, Kubernetes-native way to manage autoscaling from external systems.</li></ul><h3>Think carefully when</h3><ul><li><strong>Cold start latency matters</strong>: Scale-to-zero has a cost. For p99-sensitive APIs, keep minReplicaCount: 1 or higher.</li><li><strong>Your Prometheus is already under load</strong>: Frequent PromQL polling adds query pressure. Use recording rules and tune pollingInterval.</li><li><strong>External source reliability</strong>: If your Kafka broker or GitHub API is intermittently unavailable, KEDA’s fallback behavior (it uses fallback config) matters. Understand it before you rely on it.</li><li><strong>Operator overhead</strong>: KEDA adds CRDs, a metrics server, and an operator to your cluster. For very small clusters or simple workloads, plain HPA with custom metrics adapter might be leaner.</li></ul><h3>Don’t use KEDA when</h3><ul><li>Standard CPU/memory-based HPA covers your use case — don’t add complexity without a real reason.</li><li>You need <strong>vertical scaling</strong> (VPA) — KEDA is horizontal only.</li></ul><h3>Live Demo: Zero to Autoscaling in One YAML File</h3><p>The simplest possible KEDA setup: scale on a Redis list length.</p><p><strong>Install Redis (for demo):</strong></p><pre>kubectl run redis --image=redis --port=6379<br>kubectl expose pod redis --port=6379</pre><p><strong>Deploy a dummy worker:</strong></p><pre>kubectl create deployment worker --image=busybox -- sh -c &quot;while true; do sleep 5; done&quot;</pre><p><strong>Apply the ScaledObject:</strong></p><pre>apiVersion: keda.sh/v1alpha1<br>kind: ScaledObject<br>metadata:<br>  name: redis-demo-scaler<br>spec:<br>  scaleTargetRef:<br>    name: worker<br>  minReplicaCount: 0<br>  maxReplicaCount: 10<br>  triggers:<br>    - type: redis<br>      metadata:<br>        address: redis:6379<br>        listName: job-queue<br>        listLength: &quot;5&quot;       # 1 pod per 5 items in the list</pre><p><strong>Push items to the queue:</strong></p><pre>kubectl exec -it redis -- redis-cli LPUSH job-queue item1 item2 item3 item4 item5</pre><p>Watch pods scale:</p><pre>kubectl get pods -w</pre><p>Within seconds, your worker deployment scales from 0 to 1. Push 10 items, watch it go to 2. Drain the list, watch it return to zero.</p><p>That’s KEDA in its simplest form.</p><h3>Key Takeaways</h3><ul><li><strong>HPA reacts to symptoms</strong>; KEDA reacts to causes. Queue depth, consumer lag, and job counts are direct load signals that arrive before CPU does.</li><li><strong>KEDA doesn’t replace HPA</strong> — it feeds it. You keep Kubernetes-native semantics while gaining 60+ external triggers.</li><li><strong>Scale-to-zero</strong> is a genuine cost lever for bursty, batch, and dev workloads. Enabled with one field change.</li><li><strong>Three patterns cover most production needs</strong>: Kafka for streaming, GitHub Actions for CI/CD, Prometheus for anything else you can measure.</li><li><strong>Be honest about cold starts.</strong> Scale-to-zero has a latency cost on first wake. Design accordingly.</li><li>KEDA is a CNCF graduated project with strong community backing — it’s production-ready, not experimental.</li></ul><h3>Resources</h3><ul><li><a href="https://keda.sh/docs/">KEDA Official Docs</a></li><li><a href="https://keda.sh/docs/scalers/">KEDA Scalers Reference</a></li><li><a href="https://github.com/kedacore/keda">KEDA GitHub Repository</a></li><li><a href="https://www.cncf.io/projects/keda/">CNCF KEDA Project Page</a></li><li><a href="https://github.com/actions/actions-runner-controller">actions-runner-controller for GitHub Actions</a></li></ul><p><em>If this post was useful, share it with your platform engineering team. And if you’re running HPA-only today and wondering why your pods always feel behind — now you know what to try next.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba8bb1d77688" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/your-pods-are-always-late-to-the-party-fix-it-with-keda-ba8bb1d77688">Your Pods Are Always Late to the Party — Fix It with KEDA</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SAML Gets You In. SCIM Decides If the Door Exists]]></title>
            <link>https://medium.com/the-tech-matter/saml-gets-you-in-scim-decides-if-the-door-exists-d5d55e4cf566?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5d55e4cf566</guid>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 18:35:20 GMT</pubDate>
            <atom:updated>2026-04-30T18:35:20.966Z</atom:updated>
            <content:encoded><![CDATA[<p><em>For platform engineers wiring up GitHub EMU with Entra ID</em></p><p>If you’ve ever had to manually create a GitHub account for a new hire, track down why a terminated employee still had push access three weeks after their last day, or debug why a user can authenticate via SAML but can’t access any repositories — you’ve felt the pain that SCIM is designed to solve.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*B_HpRKNc_lcSaR_I.png" /></figure><p>This blog breaks down what SCIM is, how it works, why it matters specifically for GitHub Enterprise with Enterprise Managed Users (EMU), and what can go wrong — with actionable guidance for platform engineers doing the implementation.</p><h3>The Problem SCIM Solves</h3><p>In large organizations, developer identity sprawl is a real operational risk. Developers join teams, move between orgs, change roles, and eventually leave. Without automation, keeping GitHub access in sync with your HR system and IdP is a manual, error-prone process.</p><p>The consequences of getting it wrong are concrete:</p><ul><li>Former employees retaining push access to internal repositories</li><li>New hires waiting days for GitHub access to be provisioned</li><li>Stale service accounts and bot users accumulating with no clear ownership</li><li>Audit findings when access reviews reveal access that wasn’t properly deprovisioned</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Fw9TZiPu6-MCt9vk.png" /></figure><p><strong>SCIM (System for Cross-domain Identity Management)</strong> is the open standard — defined in RFC 7643 and RFC 7644 — that solves this by giving your Identity Provider (IdP) a standardized REST API to automate the full user lifecycle on connected services.</p><h3>SCIM vs SAML — Understanding the Difference</h3><p>They solve different problems and you typically need both.</p><p>Think of it this way: <br><strong>SAML lets you through the door. <br>SCIM decides whether the door exists at all.</strong></p><p>In a well-configured GitHub Enterprise setup with EMU, SAML handles the authentication flow when a user signs in, while SCIM continuously synchronizes user accounts and group memberships from your IdP in the background.</p><h3>How SCIM Works: The Core Protocol</h3><p>SCIM operates over HTTPS using a RESTful API with JSON payloads. GitHub exposes a SCIM endpoint that your IdP (Entra ID, Okta, etc.) calls to manage user lifecycle events.</p><h4>The SCIM Resource Model</h4><p>SCIM defines two primary resource types that matter for GitHub:</p><p><strong>Users</strong> — Represent individual developer accounts. Key attributes include:</p><pre>{<br>  &quot;schemas&quot;: [&quot;urn:ietf:params:scim:schemas:core:2.0:User&quot;],<br>  &quot;userName&quot;: &quot;jane_dev@yourorg.com&quot;,<br>  &quot;externalId&quot;: &quot;a1b2c3d4-entra-object-id&quot;,<br>  &quot;displayName&quot;: &quot;Jane Dev&quot;,<br>  &quot;active&quot;: true,<br>  &quot;emails&quot;: [<br>    { &quot;value&quot;: &quot;jane_dev@yourorg.com&quot;, &quot;primary&quot;: true }<br>  ]<br>}</pre><p><strong>Groups</strong> — Represent teams in GitHub. Used to manage organization and team membership at scale.</p><h4>The SCIM Lifecycle Operations</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sXRfj0UzULx8ZO--oejGpQ.png" /></figure><p>GitHub processes these calls and reflects the changes in the managed user’s account — no manual intervention required.</p><blockquote>The Critical Detail — userName Must Match SAML NameID</blockquote><p>This is the single most important thing to get right in a GitHub EMU + Entra ID implementation, and the most common source of provisioning failures.</p><p><strong>The rule:</strong> The SCIM userName value sent by Entra ID during provisioning <strong>must exactly match</strong> the SAML NameID sent during authentication.</p><p>If they don’t match, you’ll hit a wall — users can authenticate via SAML but GitHub can’t correlate the incoming assertion to a provisioned account. The result is typically a failed login with a cryptic error, and a debugging session that starts in the wrong place.</p><h4>Why this happens</h4><p>Entra ID lets you independently configure:</p><ul><li>The attribute mapped to SCIM userName (in the provisioning app&#39;s attribute mappings)</li><li>The attribute mapped to SAML NameID (in the enterprise app&#39;s SAML configuration)</li></ul><p>If these two attribute mappings point to different user attributes — say, userPrincipalName for SAML and mail for SCIM — you&#39;ll have mismatched values even if both are valid email addresses.</p><h4>How to check and fix it</h4><p>In Entra ID, validate both configurations point to the same source attribute:</p><ol><li><strong>SAML NameID:</strong> Enterprise App → Single sign-on → NameID claim → source attribute</li><li><strong>SCIM userName:</strong> Enterprise App → Provisioning → Attribute Mappings → userName → source attribute</li></ol><p>Both should resolve to the same value for any given user. userPrincipalName is the most common and reliable choice for organizations where UPN is consistent.</p><h3>SCIM in the GitHub EMU Architecture</h3><p>Enterprise Managed Users adds another layer to understand. With EMU:</p><ul><li>User accounts are <strong>fully managed by the enterprise</strong> — users cannot change their own username, profile, or authentication settings</li><li>All accounts are created through SCIM — there’s no self-service signup</li><li>The _enterprisename suffix is appended to usernames in the GitHub UI (e.g., pronomita_yourorg)</li><li>Users can only be members of the enterprise’s organizations, not personal orgs</li></ul><p>This makes SCIM not optional but <strong>mandatory</strong> for EMU to function. Without a working SCIM configuration, you cannot create managed users at all.</p><h4>The provisioning flow end-to-end</h4><pre>Entra ID (IdP)<br>    │<br>    │ 1. HR system triggers lifecycle event<br>    │    (new hire, role change, offboarding)<br>    │<br>    ▼<br>Entra ID Provisioning Agent<br>    │<br>    │ 2. SCIM API call to GitHub<br>    │    POST /scim/v2/Users<br>    │    { &quot;userName&quot;: &quot;user@org.com&quot;, ... }<br>    │<br>    ▼<br>GitHub Enterprise SCIM Endpoint<br>    │<br>    │ 3. Account created in managed user pool<br>    │    Username: user_enterprisename<br>    │<br>    ▼<br>GitHub Enterprise (EMU)<br>    │<br>    │ 4. User signs in via SSO<br>    │    SAML assertion: NameID = user@org.com<br>    │<br>    ▼<br>GitHub correlates NameID → SCIM userName ✓<br>User lands in their organization dashboard</pre><h3>Common Failure Modes and How to Debug Them</h3><h4>1. Provisioning failures — user not created</h4><p><strong>Symptom:</strong> User exists in Entra ID and is assigned to the GitHub app, but no account appears in GitHub.</p><p><strong>Check:</strong></p><ul><li>Entra ID provisioning logs (Entra Portal → Enterprise Apps → Provisioning → Logs)</li><li>Look for 4xx errors on SCIM API calls — 401 means bad token, 422 means attribute validation failure</li><li>Confirm the SCIM provisioning token in GitHub hasn’t expired (Settings → Your Enterprise → Identity Provider)</li></ul><h4>2. Authentication succeeds but user lands on error</h4><p><strong>Symptom:</strong> SAML login completes but GitHub shows “user not found” or similar.<br><strong>Root cause:</strong> Almost always a userName / NameID mismatch (see above).</p><p><strong>Debug:</strong></p><ul><li>Use a SAML tracer browser extension to capture the raw assertion and check the NameID value</li><li>Compare it character-for-character against the userName in Entra ID&#39;s provisioning attribute mappings</li><li>Watch for case sensitivity — User@Org.com ≠ user@org.com in some configurations</li></ul><h4>3. Deprovisioning not happening</h4><p><strong>Symptom:</strong> Users who leave the org retain GitHub access.</p><p><strong>Check:</strong></p><ul><li>Confirm “Deprovisioning” is enabled in the Entra ID provisioning settings (not just “Create” and “Update”)</li><li>Verify the user was actually removed from the GitHub app assignment in Entra ID — group-based assignment means removing from the group, not just the app</li><li>Check if the account shows as “suspended” vs fully deleted in GitHub — SCIM typically suspends first</li></ul><h4>4. Group/team sync not reflecting</h4><p><strong>Symptom:</strong> Teams in GitHub are out of sync with Entra ID groups.</p><p><strong>Check:</strong></p><ul><li>GitHub team provisioning requires groups to be explicitly configured in Entra ID attribute mappings</li><li>The group displayName in SCIM maps to the GitHub team slug — case and spacing matter</li><li>Provisioning cycles run every ~40 minutes by default; trigger an on-demand cycle if you need immediate sync</li></ul><h3>Security Considerations</h3><p>SCIM provisioning has a significant trust surface — your IdP is being granted administrative control over account creation and deletion in GitHub. Keep these in mind:</p><p><strong>Protect your SCIM token</strong> — The token GitHub generates for SCIM provisioning grants broad write access to user accounts. Treat it like a root credential: store it in a secrets manager, rotate it regularly, and audit who has access to it.</p><p><strong>Scope your provisioning groups carefully</strong> — With group-based assignment in Entra ID, anyone added to the provisioning group gets a GitHub account. Make sure access to these groups is tightly controlled and reviewed.</p><p><strong>Monitor provisioning logs</strong> — Unexpected bulk deprovisioning events (e.g., a misconfigured group sync that unassigns hundreds of users) can happen fast. Set up alerting on Entra ID provisioning errors and unusual activity patterns.</p><p><strong>Test deprovisioning in staging first</strong> — Before enabling deprovisioning in production, validate the full offboarding flow in a staging enterprise. Accidental mass-deprovisioning is a painful incident to recover from.</p><h3>Key Takeaways</h3><ul><li><strong>SCIM automates the user lifecycle</strong> — provisioning, attribute sync, and deprovisioning — between your IdP and GitHub, removing the manual overhead and access drift risk</li><li><strong>SAML and SCIM are complementary, not interchangeable</strong> — you need both for a complete identity management setup in GitHub EMU</li><li><strong>The </strong><strong>userName / </strong><strong>NameID alignment is non-negotiable</strong> — mismatches are the #1 source of EMU provisioning bugs; validate this before go-live</li><li><strong>EMU makes SCIM mandatory</strong> — there’s no fallback to manual account creation when using Enterprise Managed Users</li><li><strong>Deprovisioning needs explicit enablement and testing</strong> — it doesn’t just work by default and is too important to leave unchecked</li></ul><p>Getting SCIM right is foundational work. When it’s set up correctly, it’s invisible — developers get access the day they join, lose it the day they leave, and your audit logs tell a clean story. That’s the goal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5d55e4cf566" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/saml-gets-you-in-scim-decides-if-the-door-exists-d5d55e4cf566">SAML Gets You In. SCIM Decides If the Door Exists</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Plain-Language Guide for SSO]]></title>
            <link>https://medium.com/the-tech-matter/a-plain-language-guide-for-sso-35636de95ff6?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/35636de95ff6</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 17:10:04 GMT</pubDate>
            <atom:updated>2026-04-17T17:22:55.969Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/726/0*Y6vHQBIPRnyjwbIx.jpg" /></figure><h3>1. What is SSO?</h3><p>Single Sign-On (SSO) lets a user log in once and access multiple applications without re-entering credentials each time. Think of it like a building access card — one swipe gets you through every door you’re authorised to use.</p><blockquote><strong>💡 In plain terms: </strong>You log in to Okta once. You then open GitHub, Jira, Salesforce, Artifactory — they all recognise you instantly. No extra passwords.</blockquote><h3>Without SSO vs. With SSO</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mMJ1UtZrXM9xMvZYdkSTlA.png" /></figure><h3>2. Why Do We Need It?</h3><p>Engineers access dozens of tools daily. Without SSO, every tool has its own password.</p><p><strong>Without SSO: </strong>Separate password per tool, manual off-boarding, no central audit, MFA fatigue, IT tickets for every new joiner, password reuse risk.</p><p><strong>With SSO: </strong>One login, revoke Okta and all tools lock instantly, single audit log, MFA enforced once, auto-provisioning via SCIM on day one.</p><h3>3. Alternatives to SSO</h3><p>SSO is not the only option, but it is the right one for authentication management at scale. Here is how the alternatives compare:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ffbrizh1wc02JiQue8Pi6w.png" /></figure><p><strong>Local accounts only:</strong> Low security, high admin burden. Fine for solo devs, unusable at enterprise scale.</p><p><strong>MFA only:</strong> Better than nothing, but no central offboarding or provisioning.</p><p><strong>PATs / API tokens:</strong> Good for CLI/API access but still need to be managed. Used alongside SSO, not instead of it.</p><p><strong>SSO (SAML/OIDC): </strong>Best security, best UX, lowest ongoing admin burden once set up. The right choice for teams our size.</p><h3>4. Types of SSO Protocols</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P84D4ySOllutgQt8t9C8mg.png" /></figure><p><strong>SAML 2.0:</strong> The enterprise standard. Uses signed XML. Supported by every major IdP and app. This is what GHES uses.</p><p><strong>OIDC / OAuth 2.0:</strong> Modern, JSON-based, great for mobile and cloud-native apps. Used by GitHub Actions OIDC tokens (for AWS access), but not for GHES user login.</p><p><strong>LDAP / Kerberos:</strong> Older directory protocol, works on-prem and over VPN. No web browser SSO</p><blockquote><strong>⚠️ Key point: </strong>SAML only covers browser sessions. Git-over-HTTPS and API calls still require Personal Access Tokens (PATs). PATs and SSO serve different purposes.</blockquote><h3>5. How SAML SSO Works — Step by Step</h3><p>When you visit your SCM tool like Github(GHES) without being logged in, here is what happens behind the scenes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGtHQcHNZkSHgl6U8squHw.png" /></figure><ol><li>You visit GHES— you’re not logged in.</li><li>GHES redirects your browser to Okta with a login request.</li><li>Okta challenges you for your credentials and MFA.</li><li>Okta builds a signed XML ‘assertion’ confirming who you are.</li><li>Okta sends that assertion back through your browser to GHES.</li><li>GHES verifies the signature, creates your session — you’re in.</li></ol><h4>Key terms:</h4><ul><li>Identity Provider (IdP) — Okta. The system that holds and verifies your identity.</li><li>Service Provider (SP) — GHES or Github. The app you want to access.</li><li>SAML Assertion — the signed proof from Okta that you authenticated.</li><li>ACS URL — the GHES endpoint that receives the assertion: https://&lt;host&gt;/saml/consume</li><li>Entity ID — a unique ID for GHES that must match exactly in both Okta and GHES settings.</li><li>IdP Certificate — the public key GHES uses to verify Okta’s signature on every assertion.</li></ul><h3>6. The Core Difference — Where Tokens Travel</h3><p>This is the most important distinction, and the source of most confusion:</p><h4>SAML — everything goes through the browser</h4><p>The IdP (Okta) builds a signed XML assertion and POST-binds it back to the app through the user’s browser. The app and IdP never communicate directly — the browser carries everything back and forth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfpHUKWT2L0vhc8mtiYdgA.png" /></figure><blockquote><strong>Key point: </strong>Because the SAML assertion travels through the browser, it only works for web sessions. There is no way to use SAML from a mobile app, CLI tool, or a server process running in the background.</blockquote><h4>OIDC — app talks directly to the IdP</h4><p>OIDC uses a two-step approach. First, the browser handles the login. Then the app exchanges an authorization code directly with Okta server-to-server to get a JWT. The browser never sees the actual token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u5gOmNgbaHtxf0ySbFFsZw.png" /></figure><blockquote><strong>Key point: </strong>Because the token exchange happens backend-to-backend, OIDC works for browsers, mobile apps, APIs, and automated machine-to-machine flows — not just browsers.</blockquote><h3>7. The Token Formats</h3><h4>SAML Assertion — signed XML</h4><p>A SAML assertion is a verbose signed XML document. Here is a simplified example of what gets sent through the browser:</p><pre>&lt;samlp:Response&gt;<br> &lt;saml:Assertion&gt;<br> &lt;saml:Subject&gt;<br> &lt;saml:NameID&gt;username@orgname.com&lt;/saml:NameID&gt;<br> &lt;/saml:Subject&gt;<br> &lt;saml:AttributeStatement&gt;<br> &lt;saml:Attribute Name=”email”&gt;<br> &lt;saml:AttributeValue&gt;username@orgname.com&lt;/saml:AttributeValue&gt;<br> &lt;/saml:Attribute&gt;<br> &lt;/saml:AttributeStatement&gt;<br> &lt;ds:Signature&gt;… (hundreds of lines) …&lt;/ds:Signature&gt;<br> &lt;/saml:Assertion&gt;<br>&lt;/samlp:Response&gt;</pre><h4>JWT (OIDC) — compact JSON</h4><p>A JWT is three base64-encoded parts separated by dots. Paste any JWT into jwt.io and it decodes instantly:</p><pre>// Header<br>{ “alg”: “RS256”, “typ”: “JWT” }<br>// Payload<br>{<br> “sub”: “username@orgname.com”,<br> “email”: “username@orgname.com”,<br> “iss”: “https://mycompany.okta.com&quot;,<br> “exp”: 1745000000,<br> “aud”: “sts.amazonaws.com”<br>}<br>// Signature (base64)</pre><blockquote><strong>💡 Debugging tip: </strong>When something breaks with OIDC, paste the JWT at jwt.io — you see every claim immediately. With SAML, you get a base64-encoded XML blob. You have to decode it, then parse the XML, then find the relevant field.</blockquote><h3><strong>8. When to Use Which</strong></h3><p><strong>Use SAML when:</strong> you’re integrating with an existing enterprise tool (Jira, Confluence, Salesforce, AWS Console login) — most only speak SAML. Also when your org’s IdP team has a standard SAML onboarding process already in place.</p><p><strong>Use OIDC when:</strong> you’re building something new. Better SDK support in every language, simpler to debug, works on mobile and APIs, and handles machine-to-machine auth natively. If you’re writing code that needs to call AWS, another service, or authenticate a CLI — OIDC is the answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H5k8fKR4c4IXNG0ncY_bWg.png" /></figure><blockquote><strong>⚠️ Common mistake: </strong>Trying to use SAML for API or CLI authentication. SAML is browser-only. If your code needs to authenticate to a service without a human in the loop, use OIDC or a service account with a scoped token.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35636de95ff6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/a-plain-language-guide-for-sso-35636de95ff6">A Plain-Language Guide for SSO</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Green Paved Road]]></title>
            <link>https://medium.com/the-tech-matter/the-green-paved-road-a54c4409ffea?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a54c4409ffea</guid>
            <category><![CDATA[kepler]]></category>
            <category><![CDATA[greenops]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[sustainable-computing]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 17:50:26 GMT</pubDate>
            <atom:updated>2026-04-11T17:51:40.093Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why Efficiency is the New SRE Signal</em></p><p>In the world of Internal Developer Platforms (IDPs), we’ve spent years perfecting the “Golden Path.” We made deploying services so frictionless that developers are now deploying 10x more microservices than they did a year ago. We told them: <em>“Don’t worry about the nodes or the data center location. Just give us your container, and the platform will handle the rest”</em>.</p><p>But in creating this frictionless path, we inadvertently created <strong>Resource Blindness</strong>. When developers lose sight of the “metal,” they lose the connection to the physical energy required to run their code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMrFYtNdTeo0P9zWQMpXSg.png" /></figure><h3>The Problem: Waste by Design</h3><p>Industry data shows that average Kubernetes cluster utilisation often sits below 30%, yet we pay for — and power — 100% of the underlying hardware. This isn’t just a budget issue; it’s a “Ghost Pod” problem where we pay for “just-in-case” CPU cycles that never execute.</p><p>If your platform defaults are inefficient, your entire organisation is inefficient by default. It’s time to move toward <strong>GreenOps</strong> — where sustainability equals yield.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MRmcgqYzx-Oique3CuqRhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kRYD5HkmRMxVzdU4rfEBA.png" /></figure><h3>The “Idle Gap” Problem: The Silent Efficiency Killer</h3><p>In the world of platform engineering, the <strong>Idle Gap</strong> is the chasm between the resources a developer <em>requests</em> and what the application actually <em>uses</em>.</p><p>When a developer sets a CPU request of 1000m &quot;just to be safe,&quot; but the service only consumes 100m during average load, that 900m difference is a &quot;reserved-but-unusable&quot; wasteland. On a single pod, it looks negligible. Multiplied across a cluster of 500 microservices, it translates to thousands of dollars in &quot;cloud tax&quot; and megawatts of wasted energy powering empty cycles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-gvYiwk6oBRy8tsUcNiOAQ.png" /></figure><p>The Idle Gap usually stems from three main factors:</p><ol><li><strong>Over-Provisioning for Peaks:</strong> Provisioning for Black Friday traffic levels on a random Tuesday in March.</li><li><strong>Resource Blindness:</strong> A lack of observability tools that show developers their actual utilisation vs. their YAML definitions.</li><li><strong>The “Safety Margin” Culture:</strong> The fear that being efficient will lead to OOMKills (Out Of Memory) or CPU throttling, leading teams to default to massive, wasteful buffers.</li></ol><p>To bridge this gap, modern “Watt-Aware” platforms are moving away from static configurations toward <strong>Dynamic Right-Sizing</strong>. By using tools like Vertical Pod Autoscaler (VPA) or Goldilocks, platforms can automatically suggest (or enforce) resource limits based on historical usage data, effectively shrinking the “ghost” footprint of the infrastructure without sacrificing performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*41zKQCQjEypW0MG2whZNMQ.png" /></figure><h3>Measuring the Unmeasurable: Kepler and the Power of eBPF</h3><p>To build a truly “Watt-Aware” platform, you first need to solve a fundamental visibility problem: standard Kubernetes metrics like CPU and RAM usage do not actually measure energy draw. You can have two pods using 10% CPU, but depending on the instruction sets or hardware state, their actual power consumption in Watts can vary significantly.</p><p>This is where <strong>Kepler (Kubernetes-based Efficient Power Level Exporter)</strong> comes in. Kepler uses <strong>eBPF</strong> to hook into the kernel’s power counters (such as RAPL or ACPI) to attribute real-time power consumption to specific PIDs and Pods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ThVvsHfBXXB-LOVabKGtng.png" /></figure><h4>Key Insights from Kepler Telemetry:</h4><ul><li><strong>Identifying “Ghost” Workloads:</strong> Kepler highlights the massive gap between resource requests and actual energy draw. For example, you might see CPU utilisation drop to 8%, but because Resource Requests are pinned at 60%, the infrastructure stays “hot”.</li><li><strong>The Cost of Idle Resources:</strong> A typical node (like an m5.2xlarge) can draw approximately 140 Watts per hour just for idle resources. When the infrastructure is “hot” but empty, your cost-per-request can effectively triple.</li><li><strong>Data-Driven Rightsizing:</strong> Instead of guessing resource limits, you can use the last 8 days of Kepler telemetry to inform your <strong>Vertical Pod Autoscaler (VPA)</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBqpt596-muYGU1ZWqgggg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yoj4f47FYRuW5jEClZ8qWQ.png" /></figure><h4>The Efficiency Win:</h4><p>By moving from static, “gut-feeling” limits to VPA-informed requests based on Kepler data, we were able to pinpoint waste with surgical precision. In one scenario, a service with a <strong>1 CPU request</strong> was adjusted to a recommended <strong>250m</strong>.</p><p><strong>The result?</strong> We reclaimed <strong>40% of cluster capacity</strong>, allowing us to host 40% more microservices without adding a single new node to the Auto Scaling Group (ASG).</p><h3>3 Hard Lessons from the GreenOps Trenches</h3><p>Building a “Watt-Aware” platform isn’t as simple as turning things off. Here are three real-world failures we encountered while trying to optimise for carbon and cost.</p><h3>1. The “Scale-to-Zero” Trap</h3><p>We attempted the “Holy Grail” of GreenOps: scaling an invoice generator to zero at 3:00 AM using KEDA.</p><ul><li><strong>The Failure:</strong> When the 8:00 AM rush hit, the heavy Spring Boot app — with its 45-second startup time — couldn’t keep up. Timeouts led to retries, which led to a 10,000-message backlog and a “thundering herd” that crashed the pipeline.</li><li><strong>The Lesson:</strong> Efficiency must be <strong>App-Aware</strong>. For critical paths, use a <strong>“Pilot Light” strategy</strong> (keeping a minimum of one replica running) and implement <strong>Startup Probes</strong> to give apps a grace period before liveness checks kick in.</li></ul><h3>2. The “Chatty Services” Latency Storm</h3><p>We tried <strong>Spatial Shifting</strong>, moving non-critical reporting services from a coal-heavy “US-East” grid to a renewable-powered “US-West” grid at night.</p><ul><li><strong>The Failure:</strong> P99 latency spiked from 200ms to 1.5s. We forgot the service was “chatty,” making 50+ synchronous REST calls to a User-Service back in US-East. The speed of light (70ms round-trip) added 3.5 seconds of overhead, exhausting connection pools.</li><li><strong>The Lesson:</strong> GreenOps must be <strong>Topology-Aware</strong>. Keep “chatty” neighbours together and only shift “loner” workloads — like batch processing or image transcoding — that don’t need constant cross-region communication.</li></ul><h3>3. The “OOMKill” Efficiency Trap</h3><p>To close “Idle Gaps,” we moved from static limits to aggressive Vertical Pod Autoscaling (VPA).</p><ul><li><strong>The Failure:</strong> The VPA shrunk a Java service’s memory from 2GiB to 1GiB. It worked until a traffic burst caused a spike in Metaspace, exceeding the lean container limit and triggering a cluster-wide OOMKill spiral.</li><li><strong>The Lesson:</strong> GreenOps requires an <strong>Error Budget</strong>. Efficiency should never compromise stability. We now use a mandatory <strong>20% Green Buffer</strong> on all VPA recommendations and sync Java heap scaling with container limits.</li></ul><h3>The “Right Away” Wins: How to Start</h3><p>You don’t need to move mountains to start saving watts and dollars today:</p><ol><li><strong>Stop Guessing with VPA:</strong> Use VPA in <strong>Recommender mode</strong>. By analysing Kepler telemetry (which uses eBPF to measure real-time Power Consumption), we reclaimed 40% of the cluster&#39;s capacity without adding a single node.</li><li><strong>Enforce Efficiency Policies:</strong> Use tools like Kyverno to reject deployments that exceed a healthy “Efficiency Ratio” (e.g., Limit &lt; 2x Request).</li><li><strong>Exploit the “Cheap &amp; Green” Window:</strong> Categorise workloads into “Hot” (user-facing) and “Cold” (batch/CI). Delay heavy lifting — like security scans — to 2:00 AM when the grid is clean, and spot prices are at the floor.</li></ol><h3>The Bottom Line</h3><p>A highly tuned, right-sized cluster is cheaper to run, more predictable in performance, and — by-productively — green. Sustainability isn’t just about saving the planet; it’s about building better engineering systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a54c4409ffea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/the-green-paved-road-a54c4409ffea">The Green Paved Road</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GreenOps: The Missing Pillar of Sustainable Cloud-Native Success]]></title>
            <link>https://medium.com/the-tech-matter/greenops-the-missing-pillar-of-sustainable-cloud-native-success-6d72182441d1?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d72182441d1</guid>
            <category><![CDATA[sustainable-development]]></category>
            <category><![CDATA[greenops]]></category>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[sustainability]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 10:23:10 GMT</pubDate>
            <atom:updated>2026-03-02T10:24:00.847Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Taking one for the planet</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QO3ohX1WU9Sjj5HO.jpg" /></figure><p>We’ve optimized for performance (DevOps), and we’ve optimized for cost (FinOps). But there is a third, increasingly urgent dimension we’ve been ignoring in the cloud-native world: <strong>sustainability.</strong></p><p>The cloud isn’t just a metaphor; it’s physical data centers humming with servers, all demanding electricity. As Kubernetes adoption has exploded, so has the energy footprint of our infrastructure.</p><p>This is where <strong>GreenOps</strong> comes in. If you want to build truly modern, responsible, and resilient infrastructure, you need to understand this new operational philosophy.</p><h3>What is GreenOps?</h3><p>GreenOps, short for Green Operations (and often referred to as Cloud Sustainability), is the practice of measuring, managing, and reducing the environmental impact and carbon footprint of digital operations.</p><p>It isn’t a one-time audit or a “corporate responsibility” checkbox. Like DevOps and FinOps before it, GreenOps is a <strong>continuous operational framework</strong> that demands a cultural shift.</p><p>GreenOps moves beyond simply paying for offsets. It aims to eliminate “digital waste” by ensuring that every CPU cycle utilized by your application is necessary and efficient.</p><h3>How the CNCF Sees GreenOps</h3><p>The Cloud Native Computing Foundation (CNCF) is no longer seeing sustainability as an afterthought. It has made making sustainability a “first-class citizen” in the cloud-native ecosystem a top priority.</p><p>This initiative is led by the <strong>TAG Environmental Sustainability (TAG ENV)</strong>. The TAG ENV develops standards, champions tooling, and defines the maturity models that help organisations transition from wasteful to green infrastructure.</p><p>The CNCF’s approach follows three core phases:</p><ol><li><strong>Inform:</strong> Create visibility. Use technology to measure the precise energy consumption of containers, pods, and namespaces.</li><li><strong>Optimize:</strong> Take action. Apply optimisation techniques (like rightsizing, scaling to zero, and efficient architecture) based on that data.</li><li><strong>Operate:</strong> Automate the process. Integrate these optimizations into continuous delivery pipelines.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*utY0QzmSUnNmpR50.png" /></figure><h3>Why Implement GreenOps? The Benefits</h3><p>GreenOps is often viewed as a “nice-to-have,” but the reality is that its benefits are foundational. When you optimize for carbon, you almost always optimize for performance and the bottom line.</p><h4>1. Significant Cost Savings</h4><p>The most immediate benefit is financial. In the cloud, <strong>Carbon ≈ Energy ≈ Cost.</strong> GreenOps aggressively targets over-provisioning and “zombie” resources (unused volumes, idle load balancers). Removing this waste directly reduces your monthly cloud bill.</p><h4>2. Improved Operational Efficiency</h4><p>GreenOps demands a lean architecture. It forces developers to write more efficient code and engineers to use resources more densely (bin-packing), leading to better performance, lower latency, and reduced technical debt.</p><h4>3. Regulatory Compliance &amp; Reporting</h4><p>Global regulations are changing. The EU’s Corporate Sustainability Reporting Directive (CSRD), for example, will require large companies to report their Scope 3 (indirect) emissions, which includes their cloud usage. GreenOps provides the granular, verifiable data needed for compliance.</p><h4>4. Competitive Advantage and Talent Retention</h4><p>Modern talent wants to work for purpose-driven organizations. Adopting a clear GreenOps strategy boosts engineering morale and acts as a major differentiator for both customers and prospective employees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4jkyeMF5PzfqrdqI.png" /></figure><h3>The GreenOps Toolkit:</h3><p>You don’t need to start from scratch. The CNCF and the wider open-source community are actively building the tools needed to implement GreenOps.</p><p>Here are the key projects leading the charge:</p><h4>1. Kepler (CNCF Sandbox)</h4><p><strong>The Measurement Engine.</strong> Kepler (Kubernetes Efficient Power Level Exporter) uses advanced kernel technology (eBPF) to export energy metrics directly from the Linux kernel. It allows you to visualize the exact power consumption of specific Kubernetes pods or namespaces.</p><h4>2. KubeGreen (Sandbox/Community)</h4><p><strong>The Scheduler.</strong> KubeGreen is an operator designed to shut down idle resources. It automatically scales down (to zero) development and staging clusters during off-hours (nights and weekends), ensuring you aren’t paying for energy no one is using.</p><h4>3. KEDA (CNCF Graduated)</h4><p><strong>Event-Driven Autoscaling.</strong> KEDA allows you to scale workloads based on metrics other than just CPU or memory (like a message in a queue). Crucially, KEDA can scale deployments all the way <strong>to zero</strong>, eliminating idle resources.</p><h4>4. KubeEdge (CNCF Incubating)</h4><p><strong>Edge Computing Efficiency.</strong> KubeEdge extends Kubernetes to the edge. By processing data closer to the source, it minimizes the energy required to transmit massive amounts of data back to a central data center.</p><p>GreenOps is the future of responsible engineering. As we build more powerful and complex systems, our responsibility to run them efficiently and sustainably grows. The tools are here; it’s time to operationalize them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*mHLXt_MrpHLwsqXF.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d72182441d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/greenops-the-missing-pillar-of-sustainable-cloud-native-success-6d72182441d1">GreenOps: The Missing Pillar of Sustainable Cloud-Native Success</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Container to Kubernetes and Back]]></title>
            <link>https://medium.com/the-tech-matter/from-container-to-kubernetes-and-back-2e4e76ee86bc?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e4e76ee86bc</guid>
            <category><![CDATA[kubernetes-yaml]]></category>
            <category><![CDATA[podman]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[yaml]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 07:30:55 GMT</pubDate>
            <atom:updated>2026-02-24T07:33:15.578Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Mastering Podman’s Kube Commands</em></p><p>Moving a local development setup into a production-ready Kubernetes cluster is one of Podman’s “superpowers.” Since Podman is built on the same standards as Kubernetes, it can translate your running containers into the YAML manifests that Kubernetes understands.</p><p>Here is how to bridge the gap from a docker/podman container to a pod of in a kubernetes cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BL5C38UKu6EVEtwY.png" /></figure><h3>Shift Right: The Magic Command: &#39;<em>podman generate kube&#39;</em></h3><p>If you have a container running locally that you’ve tweaked to perfection, you don’t need to manually write a 50-line Kubernetes YAML file. Podman will do it for you.</p><p><strong>To generate a YAML for a specific pod:</strong></p><pre># running a nginx container<br>podman run -d \<br>  --name my-web-app \<br>  -p 8080:80 \<br>  -v /var/www/html:/usr/share/nginx/html:Z \<br>  nginx:alpine<br><br># getting the kube-compatible yaml file for this container to run <br># as a single contianer pod<br>podman generate kube my-web-app &gt; my-app-k8s.yaml</pre><p>This command looks at your container’s ports, environment variables, and volumes, and creates a <strong>Pod</strong> or <strong>Deployment </strong>definition that is 99% ready for a tool like kubectl.</p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  creationTimestamp: &quot;2024-02-24T07:00:00Z&quot;<br>  labels:<br>    app: my-web-app<br>  name: my-web-app<br>spec:<br>  containers:<br>  - image: docker.io/library/nginx:alpine<br>    name: my-web-app<br>    ports:<br>    - containerPort: 80<br>      hostPort: 8080<br>      protocol: TCP<br>    volumeMounts:<br>    - mountPath: /usr/share/nginx/html<br>      name: var-www-html-host-0<br>  volumes:<br>  - hostPath:<br>      path: /var/www/html<br>      type: Directory<br>    name: var-www-html-host-0</pre><h4>Understanding the Output</h4><p>When you open that my-app-k8s.yaml file, you’ll see standard Kubernetes objects. Podman handles the heavy lifting of mapping your local configurations:</p><ul><li><strong>Containers:</strong> Mapped to spec.containers.</li><li><strong>Ports:</strong> Mapped to containerPort.</li><li><strong>Volumes:</strong> Mapped to persistentVolumeClaim or hostPath.</li></ul><blockquote><strong><em>Warning for Docker Users:</em></strong><em> Unlike Docker Compose, which often uses local relative paths (e.g., </em><em>./data:/app/data), Kubernetes expects a persistent storage provider. You may need to update the </em><em>volumessection to match your cloud provider’s storage (like AWS EBS or Google Persistent Disk).</em></blockquote><h3>Shift Left: The Reverse: podman play kube</h3><p>The coolest part of this integration is that it works both ways. If a teammate sends you a Kubernetes YAML file, you don’t need a full Kubernetes cluster (like Minikube or Kind) to run it. You can run it directly in Podman:</p><pre>podman play kube my-app-k8s.yaml</pre><p>Podman will automatically create the pods, pull the images, and set up the networking defined in that file. This makes <strong>“Development vs. Production”</strong> parity almost perfect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TdrcwSOJ-EMxfLH4TNX0yw.png" /></figure><h3>Summary of the Workflow</h3><ul><li><strong>Develop:</strong> Run your containers locally using podman run.</li><li><strong>Group:</strong> Organize them into a pod if they need to share a network.</li><li><strong>Export:</strong> Run podman generate kube to get your manifest.</li><li><strong>Deploy:</strong> Run kubectl apply -f my-app-k8s.yaml once inside your cluster.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*AdB7De5kKRrD5rNW" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e4e76ee86bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/from-container-to-kubernetes-and-back-2e4e76ee86bc">From Container to Kubernetes and Back</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlock the Magic of Event-Driven Kubernetes Autoscaling]]></title>
            <link>https://medium.com/the-tech-matter/unlock-the-magic-of-event-driven-kubernetes-autoscaling-8b3947bf3126?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b3947bf3126</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[keda]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[autoscaling]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 16:26:51 GMT</pubDate>
            <atom:updated>2026-02-20T16:26:51.268Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Supercharging native Kubernetes HPA with event-driven architecture</em></p><p>If you are running workloads on Kubernetes, you are likely already familiar with the Horizontal Pod Autoscaler (HPA). By default, the HPA does a great job of scaling your application pods up and down based on standard resource metrics like CPU and memory usage.</p><blockquote>But what happens when CPU and memory aren’t the best indicators of your application’s load?</blockquote><p>Imagine a worker service that processes messages from an AWS SQS queue, a Kafka topic, or a RabbitMQ cluster. If a sudden spike of 10,000 messages hits the queue, your application might not immediately register a spike in CPU usage. By the time the CPU usage catches up and the HPA triggers a scale-out, your system is already lagging behind.</p><p>This is exactly the problem that <strong>KEDA</strong> solves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*7ddAACtyZaEtjCF_.png" /></figure><h3><strong>Kubernetes Event-Driven Autoscaling</strong></h3><p><strong>KEDA</strong> stands for <strong>Kubernetes Event-Driven Autoscaling</strong>. It is a lightweight, open-source component that acts as a bridge between your Kubernetes cluster and external event sources. <br>Instead of relying solely on internal hardware metrics, KEDA allows you to scale your Kubernetes deployments based on the <em>actual</em> work waiting to be done — like the depth of a message queue, the number of incoming HTTP requests, or custom database queries.</p><h3>How KEDA Works</h3><p>KEDA doesn’t replace the native Kubernetes HPA; instead, it supercharges it. It works seamlessly alongside standard Kubernetes components by extending their functionality.</p><p>Here are the core components of KEDA:</p><ul><li><strong>Scalers:</strong> These are the connectors that monitor external systems. KEDA comes with over 60 built-in scalers out of the box, supporting services like Apache Kafka, RabbitMQ, AWS SQS, Prometheus, Azure Service Bus, Redis, and many more.</li><li><strong>Metrics Adapter:</strong> KEDA acts as a metrics server, translating the data it fetches from your external event sources into a format that the Kubernetes HPA can understand.</li><li><strong>Controller (Operator):</strong> The KEDA controller is responsible for activating and deactivating your deployments based on the defined rules.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9Bgt6unmZCx5e8Su" /></figure><h3>The Magic of “Scale to Zero”</h3><p>One of KEDA’s most powerful features is its ability to <strong>scale to zero</strong>.</p><p>The standard Kubernetes HPA generally scales down to a minimum of one pod. But if you have background workers or event-driven applications that only need to run occasionally, keeping even a single pod running 24/7 wastes compute resources and money.</p><p>KEDA monitors the event source directly. If there are zero messages in your queue, KEDA scales your deployment down to exactly zero pods. The moment a new message arrives, KEDA instantly wakes up the deployment, scaling it to one pod, and then hands control over to the HPA to scale from 1 to <em>N</em> based on the volume of incoming work. This makes KEDA incredibly cost-efficient for cloud-native applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*jYjt31R7I22W0Xbm" /></figure><h3>When Should You Use KEDA?</h3><p>KEDA is a game-changer for several specific architectural patterns:</p><ul><li><strong>Asynchronous Background Workers:</strong> Applications that process files, images, or database records from a message broker or queue.</li><li><strong>Spiky Workloads:</strong> Systems that experience sudden, unpredictable surges in traffic where you need to scale based on request length rather than waiting for CPU spikes.</li><li><strong>Serverless and FaaS Architectures:</strong> If you want to build a Function-as-a-Service model within your own Kubernetes cluster (similar to AWS Lambda or Azure Functions).</li><li><strong>Cost Optimization:</strong> Environments where you want to aggressively scale idle services down to zero to reduce cloud billing.</li></ul><h3>A Quick Look at the Code</h3><p>Configuring KEDA is highly declarative and native to Kubernetes. You simply define a Custom Resource called a ScaledObject. Here is a quick example of how you might configure KEDA to scale a deployment based on an AWS SQS queue:</p><pre>apiVersion: keda.sh/v1alpha1<br>kind: ScaledObject<br>metadata:<br>  name: sqs-worker-scaler<br>  namespace: default<br>spec:<br>  scaleTargetRef:<br>    name: my-worker-deployment # The deployment you want to scale<br>  minReplicaCount: 0           # Scale to zero when idle!<br>  maxReplicaCount: 50          # Maximum pods during a spike<br>  triggers:<br>  - type: aws-sqs-queue<br>    metadata:<br>      queueURL: https://sqs.us-east-1.amazonaws.com/123456789/my-queue<br>      queueLength: &quot;5&quot;         # Target: 1 pod per 5 messages in the queue<br>      awsRegion: &quot;us-east-1&quot;</pre><p>In this example, KEDA will ensure that for every 5 messages waiting in the SQS queue, one pod is spun up (up to a maximum of 50). When the queue is completely empty, it will scale the deployment back down to zero.</p><h3>Conclusion</h3><p>If you are building event-driven microservices on Kubernetes, KEDA is quickly becoming an industry-standard necessity. By shifting the scaling trigger from <em>reactive</em> resource utilization to <em>proactive</em> event volume, KEDA ensures your applications are both highly responsive to user demand and fiercely protective of your cloud budget.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*1_rlS9C87v0z0e-1.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b3947bf3126" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/unlock-the-magic-of-event-driven-kubernetes-autoscaling-8b3947bf3126">Unlock the Magic of Event-Driven Kubernetes Autoscaling</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Autoscaling 101]]></title>
            <link>https://medium.com/the-tech-matter/kubernetes-autoscaling-101-0f8b4ae28a3a?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f8b4ae28a3a</guid>
            <category><![CDATA[karpenter]]></category>
            <category><![CDATA[autoscaling]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Thu, 19 Feb 2026 16:05:00 GMT</pubDate>
            <atom:updated>2026-02-19T16:07:05.480Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From HPA/VPA to the Power of Karpenter</em></p><p>In this post, we’ll journey through the different layers of Kubernetes autoscaling, from fundamental Pod management to intelligent infrastructure provisioning, culminating in the innovative <strong>Karpenter</strong> project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RXYIMDJyuUatqjbs.png" /></figure><h3>Scaling the Software: HPA and VPA</h3><p>At its heart, Kubernetes is about running your applications (packaged as Pods). When traffic fluctuates, you need your applications to adapt. Kubernetes offers two primary mechanisms for this:</p><h4>a) Horizontal Pod Autoscaler (HPA)</h4><p>Think of the HPA as adding more lanes to a highway when traffic increases. If your application’s Pods are getting overwhelmed, the HPA will automatically create more copies of that Pod to distribute the load.</p><ul><li><strong>How it Works:</strong> The HPA continuously monitors metrics (like CPU utilization, memory usage, or custom metrics from your application) for your Deployment or ReplicaSet. If the observed metric exceeds a predefined target (e.g., 50% CPU utilization), the HPA increases the replicas count of your application. When metrics drop, it scales down.</li><li><strong>Use Case:</strong> Ideal for stateless applications that can easily scale out horizontally, like web servers or API gateways.</li></ul><h4>b) Vertical Pod Autoscaler (VPA)</h4><p>While HPA adds more Pods, VPA is about making your existing Pods “stronger.” It adjusts the CPU and memory requests and limits for your Pods.</p><ul><li><strong>How it Works:</strong> VPA observes the historical and current resource usage of your Pods and then recommends (or automatically applies) optimal requests and limits values. It can either provide recommendations for you to manually apply or it can automatically update and restart Pods with the new resource allocations.</li><li><strong>Use Case:</strong> Best for applications where scaling horizontally isn’t efficient, or where you want to optimize resource allocation without guesswork.</li></ul><p><strong>Important Note:</strong> Generally, you don’t use HPA and VPA to manage the <em>same</em> metric simultaneously, as they might conflict (e.g., HPA scales out due to high CPU, while VPA tries to give more CPU to existing pods).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cmSqHQX5EUK2_pRp.png" /></figure><h3>Scaling the Infrastructure: Cluster Autoscaler (CAS)</h3><p>Having enough Pods is great, but what if your underlying servers (Nodes) run out of space? That’s where the <strong>Cluster Autoscaler (CAS)</strong> comes in. CAS ensures that your Kubernetes cluster always has enough computing power (Nodes) to run all your Pods.</p><h4>How it Works: The “Pending Pods” Mechanic</h4><p>CAS doesn’t watch CPU usage directly. Instead, it operates on a crucial signal: <strong>Pending Pods.</strong></p><ol><li><strong>The Trigger:</strong> When your HPA scales up, or you deploy new applications, the Kubernetes <strong>Scheduler</strong> tries to place these new Pods onto existing Nodes.</li><li><strong>Hitting the Wall:</strong> If the Scheduler cannot find a Node with sufficient available resources (based on the Pod’s requests), those Pods remain in a Pending state.</li><li><strong>CAS Reacts:</strong> The Cluster Autoscaler continuously monitors for Pending Pods. When it identifies un-schedulable Pods, it performs a dry run: &quot;If I add a new Node of <em>X</em> type from <em>Y</em> Node Group, would these Pods fit?&quot;</li><li><strong>Cloud Integration:</strong> If adding a Node would resolve the Pending state, CAS instructs your cloud provider&#39;s Auto Scaling Group (ASG) to increase its desired capacity. A new VM boots up and joins the cluster.</li><li><strong>Scaling Down:</strong> CAS also monitors for underutilized Nodes. If a Node has been mostly empty for a period (e.g., 10 minutes) and its few remaining Pods can be safely moved, CAS will drain that Node and tell the ASG to terminate the underlying VM, saving costs.</li></ol><h4>Advantages of Cluster Autoscaler:</h4><ul><li><strong>Broad Compatibility:</strong> Works across all major cloud providers (AWS, GCP, Azure) and on-premise solutions.</li><li><strong>Simple Concept:</strong> Relies on cloud-native Auto Scaling Groups, which are a familiar primitive for many users.</li><li><strong>Cost Savings:</strong> By scaling down unused Nodes, it reduces infrastructure costs.</li></ul><h4>Disadvantages of Cluster Autoscaler:</h4><ul><li><strong>Latency:</strong> Scaling up can be slow. It relies on cloud provider ASGs, which might take a few minutes to provision a new VM.</li><li><strong>Node Group Complexity:</strong> You need to pre-define Node Groups with specific instance types. If you need a specialised instance (e.g., with a GPU) and your current Node Groups don’t offer it, Pods will stay Pending.</li><li><strong>Suboptimal Bin-Packing:</strong> Because it scales Node Groups, it often results in “slack” (unused resources) on nodes. It might provision a large node when only a small portion is needed.</li><li><strong>Throttling:</strong> The 10-minute cooldown for scale-down can mean you pay for idle nodes longer than necessary.</li></ul><h3>What is Karpenter?</h3><p><strong>Karpenter</strong> is an open-source, high-performance Kubernetes Node provisioning project from AWS. While it performs a similar function to the Cluster Autoscaler, it takes a fundamentally different, more efficient approach.</p><p>The core idea behind Karpenter is <strong>“groupless” scaling.</strong> It bypasses the traditional Node Group/Auto Scaling Group abstractions and interacts directly with the cloud provider’s compute APIs (like AWS EC2 Fleet).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*fhCyJBFjh2L8cNth.png" /></figure><h3>What Problems Does Karpenter Solve?</h3><p>Karpenter was designed to address the key limitations of the traditional Cluster Autoscaler:</p><h4>a) Speed and Responsiveness</h4><ul><li><strong>Problem:</strong> CAS is slow due to ASG overhead.</li><li><strong>Karpenter’s Solution:</strong> It provisions nodes <strong>in seconds</strong>, not minutes. By calling EC2 APIs directly, it cuts out several layers of abstraction, allowing it to acquire compute resources much faster. This means your applications become available sooner during traffic spikes.</li></ul><h4>b) Right-Sizing and Cost Optimization</h4><ul><li><strong>Problem:</strong> CAS often provisions oversized nodes because it’s limited to the instance types defined in an ASG. This leads to wasted resources.</li><li><strong>Karpenter’s Solution:</strong> It intelligently picks the <strong>exact right instance type</strong> for your Pending Pods from the vast catalog of available instance types. If a Pod needs 2GB RAM and 0.5 CPU, Karpenter will try to find the cheapest instance that offers <em>just enough</em> resources, including leveraging Spot Instances proactively. This granular provisioning dramatically reduces waste.</li></ul><h4>c) Consolidation and Bin-Packing</h4><ul><li><strong>Problem:</strong> CAS is passive about consolidation.</li><li><strong>Karpenter’s Solution:</strong> Karpenter is an active “bin-packer.” It constantly scans your cluster for opportunities to optimize. If it finds multiple lightly utilized nodes whose Pods could fit onto fewer, denser nodes, it will proactively launch a new node, move the Pods, and terminate the underutilized ones. This aggressive consolidation further drives down costs.</li></ul><h4>d) Simplified Configuration</h4><ul><li><strong>Problem:</strong> Managing multiple ASGs for different instance types, availability zones, and purchasing options (On-Demand vs. Spot) can be complex.</li><li><strong>Karpenter’s Solution:</strong> You define your node provisioning rules in a single Kubernetes NodePool resource. This abstractly specifies requirements (e.g., &quot;prefer Spot,&quot; &quot;use instance types from this family,&quot; &quot;allow GPU instances&quot;) and Karpenter figures out the rest.</li></ul><h4>e) Enhanced Spot Instance Management</h4><ul><li><strong>Problem:</strong> Handling Spot Instance interruptions with CAS can be tricky.</li><li><strong>Karpenter’s Solution:</strong> Karpenter has built-in awareness of Spot terminations. It can proactively provision replacement nodes before an existing Spot instance is reclaimed, ensuring higher application availability.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XiFWI076Ja7Bl1DR.png" /></figure><h3>Here is a small example to watch Karpenter in action</h3><p>The configuration is split into two parts: the <strong>EC2NodeClass</strong> (the AWS-specific hardware settings) and the <strong>NodePool</strong> (the Kubernetes-side scheduling rules).</p><h4>1. The Hardware Definition (EC2NodeClass)</h4><p>This file tells Karpenter <em>how</em> to build the nodes. It points to your subnets, security groups, and the IAM role the nodes should use.</p><pre>apiVersion: karpenter.k8s.aws/v1<br>kind: EC2NodeClass<br>metadata:<br>  name: default<br>spec:<br>  # The IAM role for provisioned nodes (needs AmazonEKSWorkerNodePolicy, etc.)<br>  role: &quot;KarpenterNodeRole-my-cluster&quot;<br>  <br>  # Select subnets and security groups using tags<br>  subnetSelectorTerms:<br>    - tags:<br>        karpenter.sh/discovery: &quot;my-cluster&quot;<br>  securityGroupSelectorTerms:<br>    - tags:<br>        karpenter.sh/discovery: &quot;my-cluster&quot;<br>        <br>  # Optional: Tell Karpenter which AMI family to use<br>  amiFamily: AL2023</pre><h4>2. The Scheduling Rules (NodePool)</h4><p>This file tells Karpenter <em>what</em> kind of nodes to pick based on the Pods that are waiting. This is where you set your cost-saving preferences.</p><pre>apiVersion: karpenter.sh/v1<br>kind: NodePool<br>metadata:<br>  name: default<br>spec:<br>  template:<br>    spec:<br>      nodeClassRef:<br>        group: karpenter.k8s.aws<br>        kind: EC2NodeClass<br>        name: default<br>      requirements:<br>        # Priority 1: Use Spot instances to save ~70% on costs<br>        - key: &quot;karpenter.sh/capacity-type&quot;<br>          operator: In<br>          values: [&quot;spot&quot;, &quot;on-demand&quot;]<br>        # Limit architectures (e.g., skip Graviton/ARM if your app isn&#39;t ready)<br>        - key: &quot;kubernetes.io/arch&quot;<br>          operator: In<br>          values: [&quot;amd64&quot;]<br>        # Only use modern, efficient instance families<br>        - key: &quot;karpenter.k8s.aws/instance-family&quot;<br>          operator: In<br>          values: [&quot;m5&quot;, &quot;m6i&quot;, &quot;c5&quot;, &quot;c6i&quot;]<br>          <br>  # --- THE &quot;BRAIN&quot;: How Karpenter cleans up ---<br>  disruption:<br>    # Consolidation searches for cheaper ways to run your current pods<br>    consolidationPolicy: WhenUnderutilized<br>    consolidateAfter: 30s<br>    # Kill nodes after 7 days to ensure they stay patched and fresh<br>    expireAfter: 168h</pre><h4>3. Deploying a “Stress Test”</h4><p>To see this in action, you can deploy a simple “inflate” app. This app does nothing but request resources, which forces Karpenter to scale up.</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: inflate<br>spec:<br>  replicas: 0<br>  selector:<br>    matchLabels:<br>      app: inflate<br>  template:<br>    metadata:<br>      labels:<br>        app: inflate<br>    spec:<br>      containers:<br>      - name: inflate<br>        image: public.ecr.aws/eks-distro/kubernetes/pause:3.7<br>        resources:<br>          requests:<br>            cpu: 1<br>            memory: 1Gi</pre><h3>How to test it:</h3><ul><li><strong>Apply the configs:</strong> kubectl apply -f ec2nodeclass.yaml nodepool.yaml deployment.yaml</li><li><strong>Scale up:</strong> kubectl scale deployment inflate --replicas=5</li><li><strong>Watch the logs:</strong></li></ul><pre>kubectl logs -f -n kube-system -l app.kubernetes.io/name=karpenter</pre><p>You will see Karpenter instantly calculating the best instance type (e.g., an `m5.xlarge`) and calling the AWS API to provision it.</p><h3>Which should you choose?</h3><ul><li><strong>CA:</strong> You are running a multi-cloud environment (e.g., both GCP and AWS) or you have extremely strict compliance rules that require fixed, predictable node sizes.</li><li><strong>Karpenter:</strong> You are running on <strong>AWS (EKS)</strong>. It is objectively faster, cheaper, and removes the “maintenance tax” of managing dozens of Auto Scaling Groups.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*uNf_KVzdhk3zjDsd.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f8b4ae28a3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/kubernetes-autoscaling-101-0f8b4ae28a3a">Kubernetes Autoscaling 101</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finally Aliased Docker to Podman]]></title>
            <link>https://medium.com/the-tech-matter/finally-aliased-docker-to-podman-ead5bb2a4c37?source=rss-6a53e5ea7b5b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ead5bb2a4c37</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[podman]]></category>
            <dc:creator><![CDATA[Pronomita Dey]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 10:47:49 GMT</pubDate>
            <atom:updated>2026-02-18T10:51:56.166Z</atom:updated>
            <content:encoded><![CDATA[<p><em>And You Should Too…</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WAmE96TxPMa7ArzVuhHOvA.png" /></figure><p>If you’ve been using Docker, you’re already 90% of the way to mastering Podman. The transition is designed to be as painless as possible — often referred to as a “drop-in replacement.”</p><p>Here is your quick-start guide to making the switch.</p><h3>1. Installation</h3><p>Unlike Docker, which requires a heavy desktop application on some systems, Podman is typically a lightweight package.</p><ul><li><strong>macOS:</strong> brew install podman</li><li><strong>Windows:</strong> winget install -e --id RedHat.Podman (or download the <a href="https://podman-desktop.io/">Podman Desktop</a> installer).</li><li><strong>Linux (Fedora/RHEL):</strong> sudo dnf install podman</li><li><strong>Linux (Ubuntu):</strong> sudo apt-get install podman</li></ul><h4>The “Podman Machine” (macOS/Windows)</h4><p>Because containers are native to the Linux kernel, Podman (like Docker) needs a small virtual machine to run on non-Linux systems.</p><pre>podman machine init   # Create the VM<br>podman machine start  # Start it up</pre><h3>2. The “Docker” Muscle Memory</h3><p>The Podman developers knew you didn’t want to learn new commands. You can literally alias the command in your .zshrcor .bashrc:</p><pre>alias docker=podmam</pre><p>Every command you know — docker pull, docker build, docker ps, docker rm—works exactly the same way with podman.</p><h3>3. Key Differences for Developers</h3><h4>A. Rootless Networking</h4><p>When you run a container as a standard user (rootless), Podman uses <strong>slirp4netns</strong> for networking.</p><ul><li><strong>Note:</strong> If you run a web server on port 80 inside a rootless container, it won’t be able to bind to port 80 on your host (since that requires root). You’ll usually map it to a high port like 8080:80.</li></ul><h4>B. Registries and Short Names</h4><p>Docker defaults to searching Docker Hub (docker.io). Podman is &quot;unopinionated&quot; and might ask you which registry to use if you just type podman pull nginx.</p><blockquote><strong><em>Pro Tip:</em></strong><em> To make it behave like Docker, edit </em><em>/etc/containers/registries.conf and add </em><em>docker.io to the </em><em>unqualified-search-registries list.</em></blockquote><h4>C. No More sudo</h4><p>You’ll notice you don’t need to add your user to a “docker group” or type sudo to run a container. This is Podman’s native security model at work.</p><h3>4. Moving Beyond Docker: Pods</h3><p>This is where Podman leaves Docker behind. You can group containers into a “Pod” so they share a network stack.</p><ol><li><strong>Create a pod:</strong> podman pod create --name my-web-app -p 8080:80</li><li><strong>Add a container to it:</strong> podman run -d --pod my-web-app --name nginx-container nginx</li><li><strong>Add a database:</strong> podman run -d --pod my-web-app --name db-container redis</li></ol><p>Now, the Nginx container can talk to the Redis container simply by calling localhost.</p><h3>5. What about Docker Compose?</h3><p>Podman now supports Docker Compose files natively. You just need to point the DOCKER_HOST environment variable to the Podman socket:</p><pre>export DOCKER_HOST=&quot;unix://$(podman machine inspect --format &#39;{{.RuntimeDirectories.podman.Path}}&#39;)/podman.sock&quot;<br>docker-compose up</pre><p>Alternatively, you can use <strong>Podman Compose</strong>, a Python-based implementation that handles the same YAML files.</p><h4>The “Day 1” Experience: What Actually Happens?</h4><p>The biggest fear when switching tools is the “configuration rabbit hole.” We’ve all been there: you install a new CLI, and suddenly you’re three hours trying to fix a broken environment variable.</p><p><strong>My Day 1 with Podman was… boring. In the best way possible.</strong></p><p>I ran brew install podman, initialized the machine, and then did the unthinkable: I renamed my most-used command.</p><h4>The One “Gotcha” I Encountered</h4><p>The only hurdle I hit was a port conflict. Because Podman runs <strong>rootless</strong>, it can’t grab “privileged” ports (anything below 1024) by default. I tried to map a container to port 80, and Podman politely told me &quot;No.&quot;</p><p>The fix? I just mapped it to 8080. That was it. That was my &quot;massive migration headache.&quot; Ten seconds of work for a significantly more secure system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*mgfgyLlP9D3eUxcr.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ead5bb2a4c37" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-tech-matter/finally-aliased-docker-to-podman-ead5bb2a4c37">Finally Aliased Docker to Podman</a> was originally published in <a href="https://medium.com/the-tech-matter">The Tech Matter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>