<?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 Olaitan Falolu on Medium]]></title>
        <description><![CDATA[Stories by Olaitan Falolu on Medium]]></description>
        <link>https://medium.com/@olaitanfalolu02?source=rss-58bbf460e2b0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*m7WF6mpICREJKjRcaLit_w.jpeg</url>
            <title>Stories by Olaitan Falolu on Medium</title>
            <link>https://medium.com/@olaitanfalolu02?source=rss-58bbf460e2b0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:17:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olaitanfalolu02/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[When Kubernetes Isn’t the Problem: Debugging External Dependencies in AKS]]></title>
            <link>https://medium.com/@olaitanfalolu02/when-kubernetes-isnt-the-problem-debugging-external-dependencies-in-aks-d8f78168526f?source=rss-58bbf460e2b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8f78168526f</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[gateway]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Olaitan Falolu]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 06:40:03 GMT</pubDate>
            <atom:updated>2026-06-14T06:40:03.510Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>One of the most common mistakes during incident response is assuming Kubernetes is the problem simply because the application runs on Kubernetes.</p><p>A customer reports an outage.</p><p>Requests start timing out.</p><p>Applications return errors.</p><p>Transactions begin failing.</p><p>The first reaction is usually:</p><pre>AKS is down.</pre><p>In many cases, AKS is completely healthy.</p><p>The nodes are healthy.</p><p>The pods are healthy.</p><p>The ingress controller is healthy.</p><p>The cluster is operating exactly as designed.</p><p>The actual problem exists somewhere outside Kubernetes.</p><p>After working through enough production incidents, I have learned that many application outages blamed on Kubernetes are eventually traced back to dependencies such as:</p><ul><li>Databases</li><li>Redis</li><li>DNS</li><li>Key Vault</li><li>Private Endpoints</li><li>Firewalls</li><li>Certificates</li><li>API Gateways</li><li>Third-party services</li></ul><p>Understanding how to identify these situations quickly can save hours of troubleshooting and reduce unnecessary pressure on platform teams.</p><h3>Start With Evidence, Not Assumptions</h3><p>The first step during any incident is determining whether Kubernetes itself is actually unhealthy.</p><p>Start with:</p><pre>kubectl get nodes</pre><p>Healthy output:</p><pre>STATUS<br>Ready<br>Ready<br>Ready</pre><p>Next:</p><pre>kubectl get pods -A</pre><p>Look for:</p><pre>Running<br>Completed</pre><p>If the cluster is healthy and workloads are running, immediately expand the investigation.</p><p>Do not spend hours troubleshooting Kubernetes simply because the application is deployed there.</p><h3>The Most Misleading Incident</h3><p>A common scenario looks like this:</p><pre>Customers Reporting Errors<br>          ↓<br>Pods Running<br>          ↓<br>CPU Normal<br>          ↓<br>Memory Normal<br>          ↓<br>No Recent Deployment</pre><p>At this point many engineers become stuck.</p><p>Everything inside Kubernetes appears healthy.</p><p>The next question should be:</p><pre>What does the application depend on?</pre><p>That question often reveals the actual root cause.</p><h3>Azure SQL: The Silent Failure</h3><p>Databases are one of the most common causes of application incidents.</p><p>Symptoms often include:</p><pre>500 Errors<br>Timeouts<br>Slow Responses<br>Connection Failures</pre><p>Meanwhile:</p><pre>Pods Healthy</pre><p>Example application logs:</p><pre>SqlException:<br>Execution Timeout Expired</pre><p>or</p><pre>Connection Timeout Expired</pre><p>Many teams immediately begin investigating AKS.</p><p>The actual issue may be:</p><ul><li>Database maintenance</li><li>Query blocking</li><li>Connection exhaustion</li><li>Network restrictions</li><li>Failover events</li></ul><p>Before touching Kubernetes, verify database connectivity.</p><p>Test directly:</p><pre>kubectl exec -it pod-name -- sh</pre><p>Then:</p><pre>nc -zv database-server 1433</pre><p>or</p><pre>telnet database-server 1433</pre><p>The objective is determining whether the pod can reach the database.</p><h3>Redis Is Running but Applications Are Failing</h3><p>Redis failures are particularly deceptive.</p><p>Applications may appear healthy while functionality quietly degrades.</p><p>Examples:</p><pre>Authentication Delays<br>Session Failures<br>Cache Misses<br>Performance Issues</pre><p>Application logs may show:</p><pre>ECONNRESET</pre><p>or</p><pre>Connection Lost</pre><p>Meanwhile:</p><pre>kubectl get pods</pre><p>shows:</p><pre>Running</pre><p>This is not a Kubernetes problem.</p><p>The application is unable to communicate with Redis.</p><p>Common causes include:</p><ul><li>Firewall restrictions</li><li>DNS failures</li><li>Connection limits</li><li>Redis maintenance</li><li>TLS misconfiguration</li></ul><h3>DNS: The Root Cause Nobody Expects</h3><p>DNS issues are among the most frustrating incidents because they often affect healthy applications.</p><p>Consider:</p><pre>Application<br>      ↓<br>api.internal.local</pre><p>If DNS resolution fails:</p><pre>Connection Failed</pre><p>even though:</p><pre>Application Healthy</pre><p>and</p><pre>AKS Healthy</pre><p>Inside a pod:</p><pre>nslookup api.internal.local</pre><p>or</p><pre>dig api.internal.local</pre><p>can immediately expose the problem.</p><p>Common DNS-related causes include:</p><ul><li>Incorrect private zones</li><li>Broken forwarding rules</li><li>Missing records</li><li>CoreDNS issues</li><li>Private Endpoint resolution failures</li></ul><p>DNS should always be part of the investigation process.</p><h3>Private Endpoints and Private DNS</h3><p>Private Endpoints introduce another layer of complexity.</p><p>Example architecture:</p><pre>AKS<br> ↓<br>Private Endpoint<br> ↓<br>Database</pre><p>The database exists.</p><p>The endpoint exists.</p><p>The application still cannot connect.</p><p>Why?</p><p>Because successful Private Endpoint connectivity requires:</p><pre>Private Endpoint<br>      +<br>Private DNS<br>      +<br>Network Routing</pre><p>Missing any one component can break connectivity.</p><p>Common symptoms:</p><pre>Connection Timeout<br>Host Not Found<br>Name Resolution Failure</pre><p>Testing from within a pod quickly reveals whether DNS or routing is involved.</p><h3>Firewalls and Network Security Rules</h3><p>Network controls frequently create incidents that appear to be application failures.</p><p>Example:</p><pre>Application<br>      ↓<br>Database</pre><p>A new firewall rule is introduced.</p><p>Traffic becomes blocked.</p><p>Application logs begin showing:</p><pre>Timeout<br>Connection Refused</pre><p>The pods remain healthy.</p><p>Kubernetes remains healthy.</p><p>The network path is not.</p><p>Whenever connectivity issues occur, verify:</p><pre>Source<br>Destination<br>Port<br>Route<br>Firewall</pre><p>before investigating Kubernetes internals.</p><h3>Key Vault Dependency Failures</h3><p>Modern applications often retrieve secrets from Key Vault during startup.</p><p>If Key Vault becomes inaccessible:</p><pre>Application Startup Fails</pre><p>Pod status:</p><pre>CrashLoopBackOff</pre><p>Many engineers immediately investigate:</p><pre>Container Image<br>Deployment YAML<br>Node Health</pre><p>The actual issue may be:</p><pre>Key Vault Access Failure</pre><p>Common causes:</p><ul><li>Expired permissions</li><li>Managed Identity issues</li><li>Workload Identity issues</li><li>Firewall restrictions</li><li>DNS resolution failures</li></ul><p>Always verify:</p><pre>kubectl logs</pre><p>before assuming Kubernetes is responsible.</p><h3>Certificate Chain Problems</h3><p>Certificate issues frequently appear as networking problems.</p><p>Example:</p><pre>HTTPS Endpoint</pre><p>returns:</p><pre>TLS Handshake Failed</pre><p>Application logs:</p><pre>unable to verify first certificate</pre><p>or</p><pre>unable to get local issuer certificate</pre><p>The cluster is healthy.</p><p>The application is healthy.</p><p>The certificate chain is incomplete.</p><p>Testing:</p><pre>openssl s_client \<br>-connect endpoint:443 \<br>-servername endpoint</pre><p>can expose these problems immediately.</p><h3>API Gateways and Reverse Proxies</h3><p>Applications often sit behind:</p><ul><li>API Gateways</li><li>Application Gateways</li><li>Reverse Proxies</li></ul><p>A backend service may be healthy while traffic fails before reaching it.</p><p>Example:</p><pre>Client<br> ↓<br>Gateway<br> ↓<br>Application</pre><p>Application logs:</p><pre>No Requests Received</pre><p>Backend health:</p><pre>Healthy</pre><p>The issue may exist entirely within:</p><pre>Gateway Routing<br>Health Probes<br>TLS Configuration</pre><p>Investigating only the application delays resolution.</p><h3>Third-Party Service Dependencies</h3><p>Some incidents originate completely outside your environment.</p><p>Examples:</p><pre>Payment Gateway<br>SMS Provider<br>Identity Provider<br>Email Provider</pre><p>Application logs:</p><pre>503<br>429<br>Timeout</pre><p>Kubernetes cannot fix an unavailable third-party service.</p><p>Understanding external dependencies is critical during incident response.</p><h3>A Practical Investigation Workflow</h3><p>Whenever an application outage occurs, I follow the same sequence.</p><h3>Step 1</h3><p>Verify cluster health.</p><pre>kubectl get nodes</pre><h3>Step 2</h3><p>Verify pod health.</p><pre>kubectl get pods</pre><h3>Step 3</h3><p>Verify ingress.</p><pre>kubectl get ingress</pre><h3>Step 4</h3><p>Review logs.</p><pre>kubectl logs</pre><h3>Step 5</h3><p>Identify dependencies.</p><p>Examples:</p><pre>SQL<br>Redis<br>Key Vault<br>DNS<br>External APIs</pre><h3>Step 6</h3><p>Test connectivity from inside the pod.</p><pre>kubectl exec</pre><h3>Step 7</h3><p>Verify DNS resolution.</p><pre>nslookup</pre><h3>Step 8</h3><p>Verify TLS connectivity.</p><pre>openssl s_client</pre><h3>Step 9</h3><p>Validate network controls.</p><pre>Firewall<br>NSG<br>Route Table<br>Private Endpoint</pre><h3>Step 10</h3><p>Only investigate Kubernetes internals if evidence points there.</p><h3>Common Mistakes During Incident Response</h3><h3>Mistake 1</h3><p>Assuming Kubernetes is guilty because the application runs on Kubernetes.</p><h3>Mistake 2</h3><p>Ignoring application logs.</p><h3>Mistake 3</h3><p>Skipping connectivity tests.</p><h3>Mistake 4</h3><p>Never checking DNS.</p><h3>Mistake 5</h3><p>Ignoring certificate validation errors.</p><h3>Mistake 6</h3><p>Treating timeouts as Kubernetes issues.</p><p>Most timeouts originate elsewhere.</p><h3>The Dependency Mindset</h3><p>One useful mental model is:</p><pre>Application<br>     ↓<br>Dependencies</pre><p>The application is only as healthy as the systems it depends on.</p><p>A healthy AKS cluster cannot compensate for:</p><ul><li>Unreachable databases</li><li>Broken DNS</li><li>Invalid certificates</li><li>Blocked firewalls</li><li>Unavailable third-party APIs</li></ul><p>When troubleshooting production incidents, dependencies deserve as much attention as Kubernetes itself.</p><h3>Conclusion</h3><p>Some of the longest outages I have investigated had nothing to do with Kubernetes.</p><p>The cluster was healthy.</p><p>The nodes were healthy.</p><p>The pods were healthy.</p><p>The actual issue was hidden behind a dependency that nobody initially considered.</p><p>Successful troubleshooting starts by eliminating assumptions.</p><p>Verify the cluster.</p><p>Verify the application.</p><p>Then systematically validate every dependency the application relies on.</p><p>Kubernetes is often the first component blamed during an outage because it is highly visible.</p><p>In many cases, it is also completely innocent.</p><p>The faster teams learn to distinguish between platform failures and dependency failures, the faster they resolve incidents and the more effective their troubleshooting process becomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8f78168526f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Resilient AKS Workloads: Preventing Single-Pod Failures from Becoming Customer Incidents]]></title>
            <link>https://medium.com/@olaitanfalolu02/building-resilient-aks-workloads-preventing-single-pod-failures-from-becoming-customer-incidents-6d117751d57c?source=rss-58bbf460e2b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d117751d57c</guid>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[pods]]></category>
            <category><![CDATA[reliability]]></category>
            <dc:creator><![CDATA[Olaitan Falolu]]></dc:creator>
            <pubDate>Mon, 08 Jun 2026 18:10:53 GMT</pubDate>
            <atom:updated>2026-06-08T18:10:53.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Ick1UytOFe5Ci2qn53ASw.png" /></figure><h3>Introduction</h3><p>One of the fastest ways to identify whether an application was designed for production is to delete a pod.</p><p>If deleting a single pod causes customer-facing downtime, the application is not resilient regardless of how modern the platform appears.</p><p>I have encountered environments running on Kubernetes with autoscaling, ingress controllers, monitoring platforms, and multiple node pools, yet a single pod restart was enough to create an outage.</p><p>The problem is not Kubernetes.</p><p>The problem is assuming Kubernetes automatically provides resilience.</p><p>Kubernetes provides the tools required to build resilient workloads, but those tools must be implemented correctly.</p><p>This article explores practical techniques for preventing routine events such as pod restarts, node maintenance, upgrades, and scaling operations from becoming customer incidents.</p><h3>Understanding Failure as a Normal Event</h3><p>Many engineers approach Kubernetes as though failures are exceptional.</p><p>In reality, failures are expected.</p><p>Pods terminate.</p><p>Nodes reboot.</p><p>Containers crash.</p><p>Applications restart.</p><p>Deployments roll forward.</p><p>Deployments roll back.</p><p>A resilient application assumes these events will happen and continues serving traffic when they do.</p><p>The goal is not to prevent failure.</p><p>The goal is to prevent failure from becoming an outage.</p><h3>The Single Replica Problem</h3><p>One of the most common production risks is running a workload with a single replica.</p><p>Example:</p><pre>replicas: 1</pre><p>The architecture looks like:</p><pre>Application<br>    ↓<br>Single Pod</pre><p>Everything appears healthy until:</p><ul><li>Node maintenance occurs</li><li>The pod crashes</li><li>The image is updated</li><li>The node is drained</li><li>Memory pressure occurs</li></ul><p>At that point:</p><pre>Application<br>     ↓<br>No Running Pods</pre><p>Customers experience downtime immediately.</p><p>A single replica deployment should be considered a single point of failure.</p><h3>Start with Multiple Replicas</h3><p>The first step toward resilience is redundancy.</p><p>Instead of:</p><pre>replicas: 1</pre><p>Use:</p><pre>replicas: 3</pre><p>Architecture:</p><pre>Application<br>      ↓<br> ┌────┼────┐<br> ↓    ↓    ↓<br>Pod1 Pod2 Pod3</pre><p>Now a single pod failure does not affect availability.</p><p>Traffic continues flowing through the remaining replicas.</p><p>This is the simplest resilience improvement most teams can make.</p><h3>Readiness Probes Matter More Than Most People Think</h3><p>Many outages occur because applications receive traffic before they are ready.</p><p>Consider a .NET application:</p><pre>readinessProbe:<br>  httpGet:<br>    path: /health<br>    port: 80</pre><p>When the application starts:</p><pre>Container Started</pre><p>does not necessarily mean:</p><pre>Application Ready</pre><p>The application may still be:</p><ul><li>Loading configuration</li><li>Establishing database connections</li><li>Building caches</li><li>Initializing services</li></ul><p>Without a readiness probe, traffic arrives immediately.</p><p>Users encounter failures.</p><p>With a readiness probe:</p><pre>Pod Starts<br>      ↓<br>Application Initializes<br>      ↓<br>Probe Succeeds<br>      ↓<br>Traffic Arrives</pre><p>The difference is significant.</p><h3>Liveness Probes Prevent Stuck Applications</h3><p>Applications do not always crash.</p><p>Sometimes they stop responding.</p><p>Examples include:</p><ul><li>Deadlocks</li><li>Thread starvation</li><li>Dependency hangs</li><li>Resource exhaustion</li></ul><p>From Kubernetes’ perspective:</p><pre>Container Running</pre><p>From the customer’s perspective:</p><pre>Application Down</pre><p>A liveness probe helps detect these situations.</p><p>Example:</p><pre>livenessProbe:<br>  httpGet:<br>    path: /health<br>    port: 80<br>  initialDelaySeconds: 30</pre><p>When the application becomes unresponsive, Kubernetes restarts it automatically.</p><h3>Graceful Shutdown Is Often Overlooked</h3><p>A pod does not disappear instantly.</p><p>Kubernetes sends:</p><pre>SIGTERM</pre><p>before terminating the container.</p><p>Applications should use this period to:</p><ul><li>Complete active requests</li><li>Flush logs</li><li>Release resources</li><li>Close connections</li></ul><p>Without graceful shutdown:</p><pre>Customer Request<br>       ↓<br>Pod Terminated<br>       ↓<br>Request Lost</pre><p>With graceful shutdown:</p><pre>Customer Request<br>       ↓<br>Request Completes<br>       ↓<br>Pod Terminates</pre><p>This becomes especially important during deployments and node upgrades.</p><h3>Pod Disruption Budgets</h3><p>A Pod Disruption Budget (PDB) prevents Kubernetes from removing too many replicas simultaneously.</p><p>Example:</p><pre>apiVersion: policy/v1<br>kind: PodDisruptionBudget<br>metadata:<br>  name: payment-api-pdb<br>spec:<br>  minAvailable: 2<br>  selector:<br>    matchLabels:<br>      app: payment-api</pre><p>This tells Kubernetes:</p><pre>Always Keep<br>At Least<br>Two Pods Running</pre><p>Without a PDB:</p><pre>Node Drain<br>      ↓<br>Multiple Pods Evicted<br>      ↓<br>Application Impact</pre><p>With a PDB:</p><pre>Node Drain<br>      ↓<br>Eviction Controlled<br>      ↓<br>Application Remains Available</pre><h3>Avoid Running Everything on One Node</h3><p>Multiple replicas alone do not guarantee resilience.</p><p>Consider:</p><pre>Node 1<br> ├─ Pod A<br> ├─ Pod B<br> └─ Pod C</pre><p>Three replicas exist.</p><p>Everything looks healthy.</p><p>Then:</p><pre>Node Failure</pre><p>All replicas disappear simultaneously.</p><p>The application is unavailable.</p><p>Kubernetes must distribute replicas across nodes.</p><p>Use:</p><pre>topologySpreadConstraints</pre><p>or</p><pre>podAntiAffinity</pre><p>to prevent workload concentration.</p><h3>Multi-Zone Deployments</h3><p>For production environments, node-level resilience is often insufficient.</p><p>Availability Zones provide protection against larger failures.</p><p>Example:</p><pre>Zone A<br>Zone B<br>Zone C</pre><p>Pods distributed across zones:</p><pre>Zone A → Pod1<br>Zone B → Pod2<br>Zone C → Pod3</pre><p>If an entire zone becomes unavailable:</p><pre>Zone A Lost</pre><p>traffic continues flowing through:</p><pre>Zone B<br>Zone C</pre><p>This significantly improves platform resilience.</p><h3>Horizontal Pod Autoscaler</h3><p>Traffic rarely remains constant.</p><p>An application supporting:</p><pre>100 Requests Per Minute</pre><p>may suddenly receive:</p><pre>5,000 Requests Per Minute</pre><p>Without scaling:</p><pre>High Latency<br>Timeouts<br>Failures</pre><p>The Horizontal Pod Autoscaler can increase replica counts automatically.</p><p>Example:</p><pre>minReplicas: 3<br>maxReplicas: 10</pre><p>When demand increases:</p><pre>3 Pods<br>  ↓<br>6 Pods<br>  ↓<br>10 Pods</pre><p>The workload remains responsive.</p><h3>Cluster Autoscaler</h3><p>Sometimes the problem is not pod capacity.</p><p>The problem is node capacity.</p><p>Consider:</p><pre>10 Pods Required</pre><p>but the cluster only has resources for:</p><pre>6 Pods</pre><p>The remaining pods stay pending.</p><p>Cluster Autoscaler solves this by adding nodes automatically.</p><pre>Demand Increases<br>      ↓<br>Nodes Added<br>      ↓<br>Pods Scheduled</pre><p>This allows the platform to grow with workload demand.</p><h3>Protecting Against OOMKills</h3><p>One of the most common causes of unexpected restarts is memory exhaustion.</p><p>Example:</p><pre>Reason: OOMKilled</pre><p>Applications should define realistic:</p><pre>resources:<br>  requests:<br>  limits:</pre><p>Monitoring memory consumption is critical.</p><p>Blindly increasing limits often masks the root cause.</p><p>A resilient workload understands its resource requirements.</p><h3>Chaos Testing</h3><p>One of the best ways to evaluate resilience is to introduce controlled failures.</p><p>Examples:</p><p>Delete a pod:</p><pre>kubectl delete pod &lt;pod-name&gt;</pre><p>Drain a node:</p><pre>kubectl drain &lt;node-name&gt;</pre><p>Restart a deployment:</p><pre>kubectl rollout restart deployment</pre><p>The question is simple:</p><pre>Do customers notice?</pre><p>If they do, resilience improvements are required.</p><h3>Monitoring for Resilience</h3><p>Resilience requires visibility.</p><p>Monitor:</p><ul><li>Pod restarts</li><li>OOMKills</li><li>Node failures</li><li>Deployment failures</li><li>Availability</li><li>Latency</li></ul><p>Useful metrics include:</p><pre>Restart Count<br>Error Rate<br>Request Duration<br>Availability Percentage</pre><p>Problems identified early are far easier to address than production incidents.</p><h3>Common Mistakes</h3><h3>Mistake 1</h3><p>Running production workloads with:</p><pre>replicas: 1</pre><h3>Mistake 2</h3><p>Missing readiness probes.</p><h3>Mistake 3</h3><p>Missing liveness probes.</p><h3>Mistake 4</h3><p>No Pod Disruption Budget.</p><h3>Mistake 5</h3><p>All replicas scheduled on one node.</p><h3>Mistake 6</h3><p>No autoscaling strategy.</p><h3>Mistake 7</h3><p>Never testing failure scenarios.</p><h3>A Simple Resilience Checklist</h3><p>Before promoting a workload to production, verify:</p><ul><li>Multiple replicas exist.</li><li>Readiness probes are configured.</li><li>Liveness probes are configured.</li><li>Resource limits are defined.</li><li>Pod Disruption Budgets exist.</li><li>Replicas are distributed across nodes.</li><li>Autoscaling is configured.</li><li>Monitoring is enabled.</li><li>Failure scenarios have been tested.</li></ul><h3>Final Thoughts</h3><p>Kubernetes provides powerful resilience capabilities, but those capabilities are not automatic.</p><p>A deployment with a single replica remains a single point of failure regardless of how advanced the platform appears.</p><p>The most resilient environments assume that failures will occur every day.</p><p>Pods will restart.</p><p>Nodes will fail.</p><p>Applications will crash.</p><p>Upgrades will happen.</p><p>The difference between a resilient platform and an unreliable one is how well the workload continues serving customers when those events occur.</p><p>The true measure of resilience is not whether failures happen.</p><p>It is whether anyone notices when they do.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d117751d57c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your AKS Pods Keep Getting OOMKilled Even When CPU Looks Fine]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@olaitanfalolu02/why-your-aks-pods-keep-getting-oomkilled-even-when-cpu-looks-fine-8423bb20fcd8?source=rss-58bbf460e2b0------2"><img src="https://cdn-images-1.medium.com/max/1402/1*WrVvu4ARM6bTeVbQPFIkOA.png" width="1402"></a></p><p class="medium-feed-snippet">Why Your AKS Pods Keep Getting OOMKilled Even When CPU Looks Fine</p><p class="medium-feed-link"><a href="https://medium.com/@olaitanfalolu02/why-your-aks-pods-keep-getting-oomkilled-even-when-cpu-looks-fine-8423bb20fcd8?source=rss-58bbf460e2b0------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@olaitanfalolu02/why-your-aks-pods-keep-getting-oomkilled-even-when-cpu-looks-fine-8423bb20fcd8?source=rss-58bbf460e2b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8423bb20fcd8</guid>
            <category><![CDATA[memory-leak]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[oomkill]]></category>
            <dc:creator><![CDATA[Olaitan Falolu]]></dc:creator>
            <pubDate>Mon, 08 Jun 2026 17:13:35 GMT</pubDate>
            <atom:updated>2026-06-08T17:13:35.181Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Grammar in Tech: Why You Don’t “Deploy a Resource” or “Provision an Application”]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@olaitanfalolu02/grammar-in-tech-why-you-dont-deploy-a-resource-or-provision-an-application-ad1b33590e21?source=rss-58bbf460e2b0------2"><img src="https://cdn-images-1.medium.com/max/1024/1*de5Oc5ho-6Q69s1ne1Hdhg.png" width="1024"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/@olaitanfalolu02/grammar-in-tech-why-you-dont-deploy-a-resource-or-provision-an-application-ad1b33590e21?source=rss-58bbf460e2b0------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@olaitanfalolu02/grammar-in-tech-why-you-dont-deploy-a-resource-or-provision-an-application-ad1b33590e21?source=rss-58bbf460e2b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad1b33590e21</guid>
            <dc:creator><![CDATA[Olaitan Falolu]]></dc:creator>
            <pubDate>Thu, 15 May 2025 10:26:27 GMT</pubDate>
            <atom:updated>2025-05-15T10:30:18.880Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Deploy Endpoints in Azure Machine Learning Studio]]></title>
            <link>https://medium.com/@olaitanfalolu02/how-to-deploy-endpoints-in-azure-machine-learning-studio-382fe8b8f750?source=rss-58bbf460e2b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/382fe8b8f750</guid>
            <dc:creator><![CDATA[Olaitan Falolu]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 18:12:32 GMT</pubDate>
            <atom:updated>2025-05-15T10:44:02.709Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wes6ptPFjXl5MGoRhFr9pg.jpeg" /></figure><p>Azure Machine Learning Studio (Azure ML) is a powerful platform for building, training, and deploying machine learning models. This guide will walk you through creating a new workspace, registering a model, setting up a custom environment, and deploying a model to an endpoint.</p><h3>Step 1: Create a New Workspace</h3><h3>What is an Azure ML Workspace?</h3><p>A workspace is a foundational resource in Azure ML that provides a centralized place to manage machine learning experiments, resources, and assets.</p><h3>Steps to Create a Workspace</h3><ol><li><strong>Log in to Azure Portal</strong>: Go to ml.azure.com.</li><li><strong>Create a New Workspace</strong>:</li></ol><ul><li>Click on <strong>+ Create</strong>.</li><li>Fill in the required details:</li><li><strong>Subscription</strong>: Select your Azure subscription.</li><li><strong>Resource Group</strong>: Choose an existing one or create a new one.</li><li><strong>Workspace Name</strong>: Provide a unique name for your workspace.</li><li><strong>Region</strong>: Select the region closest to your team or resources.</li><li>Click <strong>Review + Create</strong> and then <strong>Create</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*H8cRDAEZ0B24iWIlJnkCCw.png" /></figure><p><strong>Access the Workspace</strong>:</p><ul><li>Once deployment is complete, navigate to the workspace from the Azure Machine Learning resource.</li></ul><h3>Step 2: Register Your Model</h3><h3>Why Register a Model?</h3><p>Model registration ensures version control and enables easy deployment and collaboration within your team.</p><h3>Steps to Register a Model</h3><ol><li><strong>Log in to Azure ML Studio</strong>:</li></ol><ul><li>Go to your workspace in Azure ML Studio (https://ml.azure.com).</li></ul><p><strong>2. Register the Model</strong>:</p><ul><li>Navigate to <strong>Assets</strong> &gt; <strong>Models</strong> &gt; <strong>Register Model</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*zxttSdUeaZW_pUkRDj-dCQ.png" /></figure><ul><li>Upload your model file (e.g., .pkl, .onnx, or .mlmodel).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*3q82-FJ0PiSQLcMXs1ms3A.png" /></figure><ul><li>Provide details such as:<br><strong> Model Name</strong>: Give it a unique name.<br><strong>Description</strong>: Briefly describe the model.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*mkqlGpIv_QDB-hgsBHBbgQ.png" /></figure><ul><li>Optionally, tag your model for better organization.</li></ul><p><strong>3. Complete Registration</strong>:</p><ul><li>Click <strong>Register</strong> to store the model in the workspace</li></ul><h3>Step 3: Create a Custom Environment</h3><h3>What is an Environment in Azure ML?</h3><p>An environment encapsulates the dependencies required for model training or inference, such as Python packages, system libraries, and environment variables.</p><h3>Steps to Create a Custom Environment</h3><ol><li><strong>Navigate to Environments</strong>:</li></ol><ul><li>In Azure ML Studio, go to <strong>Assets</strong> &gt; <strong>Environments</strong>.</li></ul><p><strong>2. Create a New Environment</strong>:</p><ul><li>Click <strong>+ New Environment</strong>.</li><li>Choose <strong>Custom Environment</strong> and provide:<br><strong>Name</strong>: A unique name for the environment.<br><strong>Description</strong>: Details about the environment’s purpose.</li></ul><p><strong>3. Specify Dependencies</strong>:</p><ul><li><strong>Using a YAML File</strong>: Upload a .yml file containing your dependencies.</li><li><strong>Manually Add Dependencies</strong>:</li><li>Choose a base image (e.g., AzureML TensorFlow or AzureML PyTorch).</li><li>Add specific Python packages in the <strong>Conda</strong> or <strong>Pip</strong> section.</li></ul><p><strong>4. Save the Environment</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*SRO-Stm1FjLnMj6RTRpowA.png" /></figure><ul><li>Review the configuration and click <strong>Create</strong>.</li></ul><h3>Step 4: Deploy a Model to an Endpoint</h3><h3>What is an Endpoint?</h3><p>Endpoints expose your model as a web service, allowing applications to interact with it via REST APIs.</p><h3>Steps to Deploy a Model</h3><ol><li><strong>Prepare Your Model and Environment</strong>:<br>Ensure the model and environment are registered in the workspace.</li><li><strong>Create a Deployment</strong>:</li></ol><ul><li>Go to <strong>Endpoints</strong> &gt; <strong>Real-time Endpoints</strong> &gt; <strong>+ New Endpoint</strong>.</li><li>Provide details:<br><strong>Name</strong>: A unique name for the endpoint.<br><strong>Compute Type</strong>: Choose between managed online endpoints or Kubernetes.</li></ul><p><strong>3. Specify Deployment Configuration</strong>:</p><ul><li><strong>Model</strong>: Select the registered model.</li><li><strong>Environment</strong>: Choose the custom environment you created.</li><li><strong>Inference Configuration</strong>: Define the entry script (e.g., score.py) and other runtime settings.</li></ul><p>4. <strong>Deploy</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-a-ANL5WwwynDKsVvHwIcg.png" /></figure><ul><li>Click <strong>Deploy</strong> and monitor the deployment status.</li></ul><p><strong>5. Test the Endpoint</strong>:</p><ul><li>Once deployed, use the endpoint URL and API key to send test requests using tools like Postman or Python’s requests library.</li></ul><h3>Conclusion</h3><p>Azure Machine Learning Studio streamlines the entire machine learning lifecycle, from model development to deployment. By following the steps outlined above, you can effectively manage resources, ensure reproducibility, and deploy your models with ease.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=382fe8b8f750" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Azure SQL Database Copy and Scaling with PowerShell and Azure Automation]]></title>
            <link>https://medium.com/@olaitanfalolu02/automating-azure-sql-database-copy-and-scaling-with-powershell-and-azure-automation-9f4c3dbe0fe1?source=rss-58bbf460e2b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f4c3dbe0fe1</guid>
            <dc:creator><![CDATA[Olaitan Falolu]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 17:09:26 GMT</pubDate>
            <atom:updated>2024-11-30T18:27:54.538Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*2Fu-XG25j6lwR_3OGHfT3A.png" /></figure><p>Managing Azure SQL Databases often involves tasks such as copying databases between servers for backups, development, or testing, and scaling resources to optimize costs. While these tasks can be done manually, automating them brings consistency and saves time. In this post, we’ll demonstrate how to:</p><p>Copy an Azure SQL Database from one server to another.<br>Scale down the database to save costs.<br>Automate the process using an Azure Automation Account.</p><p>_________________________________________________________________</p><p><strong>The Use Case</strong><br>Imagine you have a production Azure SQL Database, and you need to:</p><p>Regularly create a copy on a separate server for backup or testing.<br>Scale down a development database to save costs outside business hours.<br>Let’s automate this workflow using PowerShell and Azure Automation.</p><p>_________________________________________________________________</p><p><strong>The PowerShell Script</strong><br>Here’s a script to copy a database and scale down its vCores:</p><pre># Connect-AzAccount<br>$TENANTID = &quot;YourTenantID&quot;<br>$ClientId = &quot;YourClientID&quot;<br>$ClientSecret = &quot;YourClientSecret&quot;<br>$SUBSCRIPTIONID = &quot;YourSubscriptionID&quot;<br>$creds = [System.Management.Automation.PSCredential]::new($ClientId, (ConvertTo-SecureString $ClientSecret -AsPlainText -Force))<br>Connect-AzAccount -Tenant $TenantId -Subscription $SubscriptionId -Credential $creds -ServicePrincipal | Out-Null<br><br># Source and Target Configurations<br>$sourceResourceGroupName = &quot;source-rg&quot;<br>$sourceServerName = &quot;source-sql-server&quot;<br>$sourceDatabaseName = &quot;source-database&quot;<br>$targetResourceGroupName = &quot;target-rg&quot;<br>$targetServerName = &quot;target-sql-server&quot;<br>$targetDatabaseName = &quot;target-database&quot;<br>$scaleDownDatabaseName = &quot;target-database&quot; # Database to scale down<br><br># Set subscription context<br>Set-AzContext -SubscriptionId $SubscriptionId <br><br># Copy the database<br>Write-Output &quot;Starting database copy...&quot;<br>New-AzSqlDatabaseCopy -ResourceGroupName $sourceResourceGroupName `<br>    -ServerName $sourceServerName `<br>    -DatabaseName $sourceDatabaseName `<br>    -CopyResourceGroupName $targetResourceGroupName `<br>    -CopyServerName $targetServerName `<br>    -CopyDatabaseName $targetDatabaseName <br>Write-Output &quot;Database copy completed.&quot;<br><br># Scale down the copied database<br>Write-Output &quot;Scaling down the database...&quot;<br>$sku = @{<br>    Edition = &quot;GeneralPurpose&quot;<br>    ComputeModel = &quot;Provisioned&quot;<br>    ComputeGeneration = &quot;Gen5&quot;<br>    Capacity = 2<br>}<br><br>Set-AzSqlDatabase -ResourceGroupName $targetResourceGroupName `<br>    -ServerName $targetServerName `<br>    -DatabaseName $scaleDownDatabaseName `<br>    -Edition $sku.Edition `<br>    -ComputeModel $sku.ComputeModel `<br>    -ComputeGeneration $sku.ComputeGeneration `<br>    -Capacity $sku.Capacity<br>Write-Output &quot;Database scaled down to 2 vCores.&quot;</pre><p><strong>Setting Up Azure Automation</strong><br>1. Create an Automation Account<br>In the Azure portal, go to Automation Accounts and create a new account.<br>2. Add the Script as a Runbook<br>Navigate to the Automation Account, click Runbooks, and create a new runbook.<br>Choose PowerShell as the runbook type, and paste the script.<br>3. Assign Credentials<br>Store the ClientId, TenantId, and ClientSecret in Azure Key Vault or the Automation Account’s credential store. Update the script to fetch these securely.<br>4. Schedule the Runbook<br>Use the Schedules option to run the script daily, weekly, or at specific times (e.g., outside business hours).</p><p><strong>Benefits of This Approach</strong><br><strong>Reliability: </strong>Automated processes ensure database copies and scaling happen without manual intervention.<br><strong>Cost Savings:</strong> Scaling down databases during off-hours reduces unnecessary expenses.<br><strong>Scalability:</strong> Easily adapt the script to handle multiple databases or servers.</p><p><strong>Conclusion</strong><br>By leveraging Azure Automation and PowerShell, you can ensure efficient, reliable, and cost-effective database management for your Azure SQL resources.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f4c3dbe0fe1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Automate Azure App Service IP Whitelisting with Azure DevOps Pipeline]]></title>
            <link>https://medium.com/@olaitanfalolu02/how-to-automate-azure-app-service-ip-whitelisting-with-azure-devops-pipeline-8aca5d048a9c?source=rss-58bbf460e2b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aca5d048a9c</guid>
            <dc:creator><![CDATA[Olaitan Falolu]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 16:47:56 GMT</pubDate>
            <atom:updated>2024-11-30T18:34:37.925Z</atom:updated>
            <content:encoded><![CDATA[<p>How to Automate Azure App Service IP Whitelisting with Azure DevOps Pipeline</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*RCtbYryNbSQrUGikMMufRg.jpeg" /></figure><p>If you’re managing IP restrictions for an Azure App Service, you’ve likely encountered the need to add, update, or remove IP addresses for access control. Doing this manually can be cumbersome and prone to errors, especially when dealing with multiple environments or services. By using an Azure DevOps (ADO) pipeline, you can automate IP whitelisting, ensuring that changes are applied consistently.</p><p>In this guide, I’ll walk you through using the Azure CLI in an Azure DevOps pipeline to manage IP restrictions dynamically. We’ll set up a pipeline that:</p><p>Accepts an IP address and rule name as parameters.<br>Checks if an existing IP restriction with the specified name already exists.<br>Deletes the existing rule if found and adds the new IP restriction with a specified priority.<br>Let’s dive in!</p><p><strong>Prerequisites</strong><br>Before we get started, make sure you have:</p><p>Azure CLI installed on your DevOps agent.<br>Azure Service Connection in ADO, allowing access to your Azure subscription.<br>Resource Group and App Service name where you plan to implement IP restrictions.</p><p><strong>Step 1: Understanding the Azure CLI Commands</strong><br>The Azure CLI provides straightforward commands for managing access restrictions. Here’s a quick breakdown:</p><p><strong>Add an IP Restriction</strong><br>This command adds an IP address to the list of allowed addresses for your app service, specifying a priority to manage the order of rules.</p><p>az webapp config access-restriction add \<br> --resource-group &lt;RESOURCE_GROUP&gt; \<br> --name &lt;APP_SERVICE_NAME&gt; \<br> --rule-name &lt;RULE_NAME&gt; \<br> --ip-address &lt;IP_ADDRESS&gt; \<br> --priority &lt;PRIORITY&gt; \<br> --action Allow</p><p><strong>Remove an IP Restriction by Name</strong><br>This command deletes an IP restriction by referencing the rule name.</p><p>az webapp config access-restriction remove \<br> --resource-group &lt;RESOURCE_GROUP&gt; \<br> --name &lt;APP_SERVICE_NAME&gt; \<br> --rule-name &lt;RULE_NAME&gt;</p><h3><strong>Step 2: Setting Up the Azure DevOps Pipeline</strong><br>Now, we’ll create an ADO pipeline that uses these CLI commands. This pipeline will take three parameters: ruleName, ipAddress, and priority. If a rule with the specified name already exists, it will be deleted before adding the new IP restriction.</h3><h3>Here’s the complete YAML file for the pipeline:</h3><h3>trigger: none<br><br>parameters:<br> - name: ruleName<br> displayName: &#39;Name of the IP Rule&#39;<br> type: string<br> default: &#39;&#39;<br> - name: ipAddress<br> displayName: &#39;IP Address to Allow&#39;<br> type: string<br> default: &#39;&#39;<br> - name: priority<br> displayName: &#39;Priority of the Rule&#39;<br> type: number # Corrected type from &#39;int&#39; to &#39;number&#39;<br> default: 100<br><br>jobs:<br> - job: ManageAppServiceIP<br> displayName: &#39;Manage App Service IP Whitelisting&#39;<br> pool:<br> vmImage: &#39;ubuntu-latest&#39;<br><br> steps:<br> - task: AzureCLI@2<br> displayName: &#39;Check and Update IP Restriction on App Service&#39;<br> inputs:<br> azureSubscription: &#39;&lt;YOUR_AZURE_SERVICE_CONNECTION&gt;&#39;<br> scriptType: bash<br> scriptLocation: inlineScript<br> inlineScript: |<br> # Define variables<br> RESOURCE_GROUP=&quot;&lt;RESOURCE_GROUP&gt;&quot;<br> APP_SERVICE_NAME=&quot;&lt;APP_SERVICE_NAME&gt;&quot;<br> RULE_NAME=&quot;${{ parameters.ruleName }}&quot;<br> IP_ADDRESS=&quot;${{ parameters.ipAddress }}&quot;<br> PRIORITY=&quot;${{ parameters.priority }}&quot;<br><br> echo &quot;Checking if IP restriction rule exists for ${RULE_NAME}...&quot;<br><br> # Check if the IP rule with the specified name already exists<br> EXISTING_RULE=$(az webapp config access-restriction show \<br> --resource-group $RESOURCE_GROUP \<br> --name $APP_SERVICE_NAME \<br> --query &quot;ipSecurityRestrictions[?name==&#39;$RULE_NAME&#39;]&quot; \<br> -o tsv)<br><br> # If rule exists, delete it<br> if [[ -n &quot;$EXISTING_RULE&quot; ]]; then<br> echo &quot;Rule ${RULE_NAME} exists. Deleting existing rule...&quot;<br> az webapp config access-restriction remove \<br> --resource-group $RESOURCE_GROUP \<br> --name $APP_SERVICE_NAME \<br> --rule-name $RULE_NAME<br> echo &quot;Existing rule ${RULE_NAME} deleted.&quot;<br> else<br> echo &quot;No existing rule found for ${RULE_NAME}. Adding new rule.&quot;<br> fi<br><br> # Add the new IP restriction with priority<br> echo &quot;Adding IP restriction for ${IP_ADDRESS} with name ${RULE_NAME} and priority ${PRIORITY}...&quot;<br> az webapp config access-restriction add \<br> --resource-group $RESOURCE_GROUP \<br> --name $APP_SERVICE_NAME \<br> --rule-name $RULE_NAME \<br> --ip-address $IP_ADDRESS \<br> --priority $PRIORITY \<br> --action Allow<br> echo &quot;IP restriction rule ${RULE_NAME} added successfully with priority ${PRIORITY}.&quot;</h3><h3><strong>Step 3: Fixing YAML Errors in ADO</strong><br>When working with YAML files in ADO, you may encounter validation errors. For example, if you receive an error like String does not match the pattern of “^boolean$”, it could indicate a type mismatch.</h3><h3>In our case, the type of priority was initially set to int, which Azure DevOps expects as number. Changing it from int to number resolved the error:</h3><h3>- name: priority<br> displayName: &#39;Priority of the Rule&#39;<br> type: number # Set type to &#39;number&#39; instead of &#39;int&#39;<br> default: 100</h3><h3><strong>Conclusion</strong><br>Automating IP whitelisting for an Azure App Service saves time and reduces human error. By using an ADO pipeline, you ensure that IP restriction rules are managed consistently across environments. This setup is flexible, allowing you to update IP restrictions simply by providing new inputs when running the pipeline.</h3><h3>Tip: Consider adding notifications or approval steps in ADO if you’re managing critical IP whitelisting to prevent accidental overrides.</h3><h3><strong>Happy automating!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aca5d048a9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>