<?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 Aakarshit Agarwal on Medium]]></title>
        <description><![CDATA[Stories by Aakarshit Agarwal on Medium]]></description>
        <link>https://medium.com/@AakarshitAgarwal?source=rss-b7e4f0636b3a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0JPC2yA_pR-JuVCTUd0evg.jpeg</url>
            <title>Stories by Aakarshit Agarwal on Medium</title>
            <link>https://medium.com/@AakarshitAgarwal?source=rss-b7e4f0636b3a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 15:42:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AakarshitAgarwal/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[Isolating a Third-Party SFTP Integration Behind One Door: Dedicated Private Connectivity in Azure]]></title>
            <link>https://medium.com/@AakarshitAgarwal/isolating-a-third-party-sftp-integration-behind-one-door-dedicated-private-connectivity-in-azure-431031361c36?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/431031361c36</guid>
            <category><![CDATA[ipsec]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[connectivity]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-vnet]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 23:35:31 GMT</pubDate>
            <atom:updated>2026-09-23T23:36:16.339Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A technical walkthrough of a dedicated proxy-VNet + Site-to-Site IPsec pattern for single-purpose partner connectivity.</em></p><h3>Problem statement</h3><p>A partner-hosted SFTP server needs to be reachable from an application running in Azure. The partner’s firewall is IP-based: they will whitelist only what you give them, and they will not accept a shared corporate egress address that also fronts unrelated integrations.</p><p>Two more constraints usually appear together:</p><ol><li>An existing Site-to-Site IPsec tunnel already terminates on the same partner firewall pair, often for a latency-sensitive workload. A bulk file transfer sharing one IPsec SA with real-time traffic is a bad idea on paper and worse in production.</li><li>The partner’s real server address sits inside a private CIDR that you already use internally. A direct route creates an ambiguous destination: the same prefix cannot safely mean “us” and “them” at once.</li></ol><p>The design below addresses both with a purpose-built network segment, a forward-proxy chokepoint, a dedicated VPN gateway, and destination NAT on the partner side to resolve the address collision.</p><h3>Architecture overview</h3><pre>[Azure application] → [Forward proxy tier] → [VPN Gateway] ⇄ IPsec ⇄ [Partner firewall] → [DNAT] → [Real server { SFTP host} ]<br>  (hub VNet)             (isolated VNet)                                                                                     </pre><pre>                   ┌─────────────────────────────────────────┐<br>                   │  Dedicated integration VNet             │<br>Hub VNet           │  ┌──────────┐  ┌──────────┐             │<br>┌──────────┐       │  │ Proxy A  │  │ Proxy B  │             │<br>│ App tier │───────┼─▶│          │  │          │             │<br>└──────────┘       │  └────┬─────┘  └────┬─────┘             │<br>  (no direct       │       │             │                   │<br>   tunnel path)    │       └──────┬──────┘                   │<br>                   │              ▼                          │<br>                   │     ┌─────────────────┐                 │<br>                   │     │ VPN Gateway     │                 │<br>                   │     └────────┬────────┘                 │<br>                   └──────────────┼──────────────────────────┘<br>                                  │<br>                                  │  Dedicated private tunnel<br>                                  │  (isolated from other paths)<br>                                  ▼<br>                   ┌──────────────────────────────┐<br>                   │ Partner firewall HA pair     │<br>                   │ DNAT: VIP → real SFTP IP     │<br>                   └──────────────┬───────────────┘<br>                                  ▼<br>                    Partner service ( ex. SFTP host )<br>                    (address translation as needed)</pre><h3>1. A dedicated ( ~ smaller) VNet — peered, not transited</h3><p>Do not add another subnet to the hub and hope route tables stay clean. Provision a standalone VNet whose only tenants are:</p><ul><li>the proxy tier</li><li>the gateway subnet for this integration</li></ul><p>Peer it to the hub for reachability, but set allowGatewayTransit / useRemoteGateways to false on both sides. That is the load-bearing control: tunnel routes must not leak into the hub’s effective routes.</p><h3>2. Forward proxies as the only tunnel-reachable hosts</h3><p>The Azure-hosted application never gets a route to the VPN gateway; ideally it should talk to a small proxy pair on an internal port.</p><p>~ NSGs on the backend subnets allow inbound only from the hub CIDR on the proxy port</p><p>That buys things:</p><ul><li>One enforcement and audit point. Every byte to the partner passes through a process you control and can log, independent of how the app is instrumented.</li><li>Blast-radius containment. A misbehaving api job can be rate-limited or blocked at the proxy without touching routes.</li></ul><p>Tradeoff: an extra hop, and another thing to patch and monitor</p><h3>3. A dedicated VPN gateway and IPsec SA</h3><p>Stand up a route-based VPN gateway, sized for the expected throughput of a bulk pull (not the cheapest SKU “because it’s only files”). <br>Give that SA its own:</p><pre>+--------------------+--------------------------------------------------------------------------+<br>| Item               | Practical choice                                                         |<br>+--------------------+--------------------------------------------------------------------------+<br>| Pre-shared key     | Fresh; secrets manager only; never reused across tunnels                 |<br>| Protocol           | IKEv2                                                                    |<br>| Phase 1 / 2        | AES-256, SHA-256, Group 14                              |<br>| Phase 2 lifetime   | Conservative (e.g. 12 hours) — bounds key exposure without constant      |<br>|                    | rekey churn                                                              |<br>| Routing            | Static; BGP off when destinations are a handful of fixed prefixes        |<br>| Traffic selectors  | Narrow: local proxy (or dedicated VNet) CIDR ↔ partner NAT VIPs — not    |<br>|                    | 0.0.0.0/0                                                                |<br>+--------------------+--------------------------------------------------------------------------+</pre><p>For availability, run two static tunnels to two partner firewall endpoints (active/standby, not active-active on the Azure side for this model). Failover can stay manual at first: change the proxy’s upstream target from primary VIP to secondary.</p><p>~ NATing ( optional )</p><p>If the partner’s real SFTP host lives in a private range that overlaps yours. Options:</p><ol><li>NAT on your side — translate outbound view of their space before it enters the tunnel.</li><li>DNAT on their side — expose the real server behind VIPs reserved for this tunnel only.</li></ol><h3>HLD</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P2AiCJJ3k2JVmT_aafijCw.png" /></figure><h3>Closing</h3><p>Shared egress and shared tunnels are efficient until they are not. When a partner needs a whitelist you can defend, when CIDRs collide, and when an existing SA already carries something you cannot afford to disturb, a dedicated proxy VNet plus its own gateway is a boring, expensive, and correct answer. The point is clever networking — it is a single door you own, with a diagram that still makes sense a year later!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=431031361c36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving gRPC Inbound Connectivity Issues in AKS using NGINX (grpc_pass)]]></title>
            <link>https://medium.com/@AakarshitAgarwal/solving-grpc-inbound-connectivity-issues-in-aks-using-nginx-grpc-pass-24be5c1c6bbf?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/24be5c1c6bbf</guid>
            <category><![CDATA[azure-kubernetes-service]]></category>
            <category><![CDATA[ingress]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[nginx-proxy]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 13:33:25 GMT</pubDate>
            <atom:updated>2026-04-09T13:33:25.134Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>External clients were unable to connect to a gRPC service exposed via a public Load Balancer.</em></blockquote><p>Unlike Basic Load Balancers, <strong>Standard LBs</strong> are <strong>secure by default</strong>:<br>All inbound traffic is <strong>blocked. </strong>Traffic is only allowed if explicitly permitted via an NSG, so<br>Overview solution diagram —</p><pre><br>Client<br>   ↓<br>Azure Standard Load Balancer (Public IP)<br>   ↓<br>VM (NGINX with TLS + HTTP/2)<br>   ↓<br>Internal gRPC service (AKS)</pre><h4>NGINX supports gRPC via the grpc_pass directive, which makes it ideal for routing requests to internal services.</h4><h3>NGINX Configuration</h3><pre>server {</pre><pre>listen 443 ssl http2;<br>server_name my-grpc-domain.com;</pre><pre>ssl_certificate cert/server-cert.pem;<br>    ssl_certificate_key cert/server-key.pem;</pre><pre>    location / {<br>        grpc_pass grpcs://internal-grpc-service:443;</pre><pre>        proxy_set_header Host $host;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</pre><pre>        proxy_connect_timeout 180;<br>        proxy_send_timeout 180;<br>        proxy_read_timeout 180;<br>    }</pre><pre>    location /ping {<br>        return 200 &#39;pong!&#39;;<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24be5c1c6bbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessing AWS from an Azure VM]]></title>
            <link>https://medium.com/@AakarshitAgarwal/accessing-aws-from-an-azure-vm-6be06a92cf44?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be06a92cf44</guid>
            <category><![CDATA[aws-iam]]></category>
            <category><![CDATA[web-identity]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[crosscloud]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Thu, 12 Mar 2026 18:19:34 GMT</pubDate>
            <atom:updated>2026-03-12T18:19:34.591Z</atom:updated>
            <content:encoded><![CDATA[<h4>— — — — — — using web identity role — — — — — — — — — — —</h4><h3>s1: Create or Use an Azure Managed Identity</h3><p>Create an Azure User Assigned Managed Identity or reuse the existing one<br>collect Client ID, Object ID, Tenant ID</p><h3>s2: Configure AWS as an OIDC Trust for Azure</h3><p>AWS needs to trust Azure AD as an identity provider.</p><p>Create an <strong>OIDC Identity Provider</strong> in AWS IAM <br><strong>IAM -&gt; Identity Providers -&gt; Add Provider -&gt; OpenID Connect</strong> and configure:<br>Provider URL<br>https://sts.windows.net/&lt;azure-tenant-id&gt;/<br>Retrieve the <strong>Thumbprint<br></strong>Add the <strong>Managed Identity Client ID</strong> as the audience<br>Once saved, AWS will trust tokens issued by Azure AD for this tenant.</p><h3>s3: Create an AWS IAM Role</h3><p><strong>IAM → Roles -&gt; Web Identity</strong></p><p>-&gt; Select the <strong>OIDC provider created earlier<br>-&gt; </strong>Choose the <strong>audience (Managed Identity Client ID)<br></strong>Attach the required permissions for the resources that are to be used in AWS</p><h3>s4: Restrict Access with a Trust Policy</h3><p>To prevent unauthorised access, the role should restrict who can assume it.<br>AWS supports conditions that validate token claims such as:<br><strong>aud</strong> (audience)<br><strong>sub</strong> (subject)<br>Example trust policy:</p><pre>{<br>  &quot;Version&quot;: &quot;201X-1X-1X&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;Federated&quot;: &quot;arn:aws:iam::&lt;aws-account-id&gt;:oidc-provider/sts.windows.net/&lt;azure-tenant-id&gt;&quot;<br>      },<br>      &quot;Action&quot;: &quot;sts:AssumeRoleWithWebIdentity&quot;,<br>      &quot;Condition&quot;: {<br>        &quot;StringEquals&quot;: {<br>          &quot;sts.windows.net/&lt;tenant-id&gt;:aud&quot;: &quot;&lt;managed-identity-client-id&gt;&quot;,<br>          &quot;sts.windows.net/&lt;tenant-id&gt;:sub&quot;: &quot;&lt;managed-identity-object-id&gt;&quot;<br>        }<br>      }<br>    }<br>  ]<br>}</pre><p>This ensures only the intended Azure Managed Identity can assume the AWS role.</p><h3>s5: Generate an Azure Access Token</h3><p>Next, generate an access token from Azure, using Azure CLI</p><pre>az account get-access-token \<br>--resource &lt;managed-identity-client-id&gt; \<br>--query &quot;accessToken&quot; \<br>--output tsv</pre><p>The command returns a <strong>JWT token issued by Azure AD</strong>.</p><h3>s6: Assume the AWS Role</h3><p>Use the token to request temporary AWS credentials:</p><pre>aws sts assume-role-with-web-identity \<br>--role-arn &lt;aws-role-arn&gt; \<br>--role-session-name example-session \<br>--web-identity-token &lt;azure-token&gt;</pre><p>AWS will return temporary credentials: AccessKeyId, SecretAccessKey, SessionToken</p><h3>s7: Use the Temporary Credentials</h3><p>Export the credentials as environment variables:</p><pre>export AWS_ACCESS_KEY_ID=&lt;AccessKeyId&gt;<br>export AWS_SECRET_ACCESS_KEY=&lt;SecretAccessKey&gt;<br>export AWS_SESSION_TOKEN=&lt;SessionToken&gt;</pre><p>can now run AWS CLI commands using these temporary credentials.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be06a92cf44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessing AWS from a GCP VM]]></title>
            <link>https://medium.com/@AakarshitAgarwal/accessing-aws-from-a-gcp-vm-3b5020be010d?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b5020be010d</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[web-identity]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-sts]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 16:08:05 GMT</pubDate>
            <atom:updated>2026-03-04T16:10:07.732Z</atom:updated>
            <content:encoded><![CDATA[<p>— — — — — — using web identity role — — — — — — — — — — —</p><h4>S1: Service Account in GCP</h4><p>Create a service account which will be attached to VM -&gt; locate the Domain Wide Delegation Client ID.<br>Copy this client ID, as it uniquely identifies the service account and will be referenced when configuring AWS trust relationships.</p><h4>S2: Configure an AWS IAM Role</h4><p>Go to AWS IAM → Roles → Create Role</p><ul><li><strong>Trusted Entity Type:</strong> Web Identity</li><li><strong>Identity Provider:</strong> accounts.google.com<br> (No need to create a custom IdP — AWS provides built-in Google support)</li><li>Add permission to web identity role and copy role ARN</li></ul><pre>{<br>  &quot;Version&quot;: &quot;20XX-XX-XX&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;Federated&quot;: &quot;accounts.google.com&quot;<br>      },<br>      &quot;Action&quot;: &quot;sts:AssumeRoleWithWebIdentity&quot;,<br>      &quot;Condition&quot;: {<br>        &quot;StringEquals&quot;: {<br>          &quot;accounts.google.com:aud&quot;: &quot;&lt;gcp-service-account-client-id&gt;&quot;,<br>          &quot;accounts.google.com:oaud&quot;: &quot;&lt;audience-value&gt;&quot;<br>        }<br>      }<br>    }<br>  ]<br>}</pre><p>oaud will be the same as what we are using in S3 to retrieve token</p><h4>S3: Retrieve an Identity Token from the GCP Metadata Server</h4><p>On the GCP VM, an identity token can be requested from the metadata service. This token represents the VM’s service account identity.</p><pre>curl -H &quot;Metadata-Flavor: Google&quot; \<br>&quot;http://metadata/computeMetadata/v1/instance/service-accounts/default/identity?audience=&lt;audience-value&gt;&amp;format=full&quot;</pre><p>The response is a signed identity token issued by Google<br>Store the output/token in a variable for later use.</p><h4>S4: Exchange the Token for Temporary AWS Credentials</h4><p>Token exchanged for temporary AWS credentials using AWS STS.</p><pre>aws sts assume-role-with-web-identity \<br>--role-arn &lt;aws-role-arn&gt; \<br>--role-session-name gcp-session \<br>--web-identity-token $TOKEN</pre><p>output will be Access Key ID, Secret Access Key, Session Token</p><p>These values can be exported as environment variables so that the AWS CLI can use them.</p><p>Also, can export token file ( AWS_WEB_IDENTITY_TOKEN_FILE ) and role arn ( AWS_ROLE_ARN ), and use aws sts get-caller-identity, and later use aws commands</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b5020be010d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hamburg DevFest 2025]]></title>
            <link>https://medium.com/@AakarshitAgarwal/my-first-hamburg-devfest-two-days-of-learning-8c4423d356b7?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c4423d356b7</guid>
            <category><![CDATA[hamburg]]></category>
            <category><![CDATA[devfest2025]]></category>
            <category><![CDATA[devfest]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Sun, 25 Jan 2026 16:08:38 GMT</pubDate>
            <atom:updated>2026-01-25T16:09:17.258Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Event:</strong> Hamburg DevFest<br><strong>Dates:</strong> 14–15 November 2025<br><strong>Location:</strong> Hamburg, Germany</p><h3>Day 1 — Friday</h3><h3>1️⃣ LLM-Based End-to-End Services in Swiss Banking</h3><p><strong>Speaker:</strong> Luca Mülln</p><p>The first talk I attended was by Luca Mülln, who presented an <strong>LLM-based end-to-end service</strong> designed for the <strong>Swiss banking sector</strong>. The talk was exceptionally well explained and practical.</p><p>What stood out most was how <strong>edge test cases</strong> were handled — especially those related to <strong>security</strong> — when integrating an <strong>LLM-powered voice bot</strong> in such a sensitive domain. I was particularly curious about - why <strong>AWS or other US-based cloud providers</strong> were chosen for deployment, and how <strong>data guidelines, compliance, and sovereignty</strong> were addressed for a Swiss bank?<br>Overall, the talk was highly informative. It was evident how much effort went into reducing response time and improving solution resolution rates for customers — real engineering work solving real problems.</p><h3>2️⃣ Automagic Observability with eBPF</h3><p><strong>Speaker:</strong> Dominik Süß, Grafana Labs</p><p>Next up was a fascinating session on <strong>eBPF-based observability</strong>. Where eBPF can hook into the Linux kernel and other layers, and how it enables tracking of <strong>new connections</strong> and low-level system behaviour with minimal overhead, this talk sparked a lot of curiosity for me. One question that stayed with me was whether <strong>eBPF could be used to reduce cross-AZ network costs</strong>, especially for systems like <strong>MongoDB or Kafka</strong>, by giving deeper visibility into traffic patterns and inefficiencies.<br>It was a great blend of systems-level insight and practical observability use cases.</p><h3>3️⃣ Learning from the Landing on the Moon</h3><p><strong>Speaker:</strong> Tobias Voß</p><p>This was one of the most <strong>inspiring and visually engaging talks</strong> of the day. He took us through lessons from the <strong>Apollo moon landing</strong>, focusing on engineering discipline, decision-making, and resilience.<br>Learning more about <strong>Margaret Hamilton’s work on Apollo</strong> — and how software engineering principles quite literally made the mission possible- was both humbling and motivating.</p><h3>Day 2 — Saturday</h3><h3>1️⃣ Demystifying Agents: Building AI Agents from Scratch vs ADK</h3><p><strong>Speaker:</strong> <strong>Alexander Amin</strong></p><p>This session helped clarify <strong>building AI agents from scratch</strong> and using the <strong>Agent Development Kit (ADK)</strong>. I got to know about the <strong>GenAI libraries, </strong>Integration with <strong>Firestore, </strong>and practical use cases where ADK simplifies agent orchestration<br>A great talk for anyone starting with AI agents or evaluating build-vs-buy decisions.</p><h3>2️⃣ Context Engineering Principles to Build LLM Pipelines</h3><p><strong>Speaker:</strong> Tahreem Rasul</p><p>This talk was more <strong>conceptual</strong>, but extremely valuable. <br>Why <strong>context engineering</strong> is critical for reliable LLM pipelines<br>How choosing the <strong>right data sources</strong> directly impacts output quality<br>What I appreciated most were the <strong>references and learning paths</strong> shared to dive deeper into context engineering — this is an area I’m keen to explore further.</p><h3>3️⃣ Self-Coaching for Uncertain Career Paths in Tech</h3><p><strong>Speaker:</strong> Elif Schaefer</p><p>A refreshing and thoughtful session focused on <strong>career pivots</strong>, uncertainty, and courage in tech careers. The talk resonated deeply, highlighting the mindset shifts needed when navigating transitions. It ended on a strong, hopeful note.</p><h3>4️⃣ Your First MCP Server in Go</h3><p><strong>Speaker:</strong> Christian Bargmann</p><p>This was another technical talk. takeaways:<br>What <strong>MCP (Model Context Protocol)</strong> is<br>How MCP servers operate<br>How to build one using <strong>Go<br></strong>Dense but rewarding — definitely a session that pushed me to explore MCP further.</p><h3>5️⃣ User Research in OpenTelemetry</h3><p><strong>Speaker:</strong> Andrej Kiripolsky</p><p>A great closing session focused on <strong>OpenTelemetry</strong> and open-source contribution. The biggest takeaway for me was understanding: How <strong>user research</strong> influences open-source projects, Practical ways developers can <strong>start contributing<br></strong>A very motivating talk for anyone looking to give back to the open-source ecosystem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c4423d356b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure ↔ AWS Site-to-Site VPN Connectivity]]></title>
            <link>https://medium.com/@AakarshitAgarwal/azure-aws-site-to-site-vpn-connectivity-0d96cc72ca64?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d96cc72ca64</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[network-connectivity]]></category>
            <category><![CDATA[site-to-site-vpn]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 20:37:51 GMT</pubDate>
            <atom:updated>2026-01-13T21:10:44.151Z</atom:updated>
            <content:encoded><![CDATA[<p>This document outlines the procedure to establish secure, private connectivity between the <strong>Azure Cloud Environment</strong> and the <strong>AWS Cloud Environment</strong>. They must integrate via a Site-to-Site (S2S) IPsec VPN. This ensures reliable, encrypted access while keeping traffic within controlled network boundaries.</p><p>The IP range of the Azure environment.[AZURE_VNET_CIDR] <br>The IP range of the AWS Server VPC.[AWS_SERVER_VPC_CIDR] <br>Public IP of the Azure VPN Gateway.[AZURE_GW_PUBLIC_IP] <br>Public IP of the AWS VPN Tunnel endpoint.[AWS_TUNNEL_IP] <br>The shared secret for authentication.[PSK_SECRET]</p><h3>Implementation Steps</h3><h3>Phase 1: Azure Preparation</h3><p><strong>Create Virtual Network Gateway (VNG)<br></strong>Navigate to the Azure Virtual Network Gateway service.</p><p><strong>Action:</strong> Create a VNG with the correct SKU (e.g., VpnGw1 or VpnGw2) attached to the Gateway Subnet of [AZURE_VNET_CIDR].</p><p><strong>Note:</strong> Record the <strong>Public IP Address</strong> assigned to this gateway, it is required for the AWS configuration.</p><h3>Phase 2: AWS Configuration</h3><ol><li><strong>Create Customer Gateway (CGW)</strong></li></ol><p>Navigate to the AWS VPC Console in the relevant region <br>Create a <strong>Customer Gateway</strong>.<br><strong>IP Address:</strong> Input [AZURE_GW_PUBLIC_IP].<br><strong>BGP ASN:</strong> Use default/existing (Static routing is used).<br><em>Logical Link:</em> This object serves as the “pointer” that tells AWS where the Azure network physically resides.</p><p><strong>2. Create VPN Connection</strong></p><p>Create a <strong>Site-to-Site VPN Connection</strong> attached to the Virtual Private Gateway (VGW) of the server from where you want the connection<br><strong>Target Gateway Type:</strong> Virtual Private Gateway.<br><strong>Customer Gateway:</strong> Select the CGW created in step1<br><strong>Routing Options:</strong> Select <strong>Static</strong>.<br><strong>Static IP Prefixes:</strong> Add [AZURE_VNET_CIDR]created in phase 1<strong><br>Action:</strong> Once created, download the Generic Configuration File, this file contains the [AWS_TUNNEL_IP] and [PSK_SECRET].</p><h3>Phase 3: Azure Tunnel Configuration</h3><p>Complete the handshake by configuring the Azure side to point to AWS.</p><ol><li><strong>Create Local Network Gateway (LNG)</strong></li></ol><p>Create a <strong>Local Network Gateway</strong>.<br><strong>IP Address:</strong> Input [AWS_TUNNEL_IP] (from the AWS config file).<br><strong>Address Space:</strong> Input [AWS_SERVER_VPC_CIDR].</p><p><em>Logical Link:</em> This object tells the Azure VNet which IP ranges live “across the tunnel” in AWS.</p><p><strong>2. Establish the Connection</strong></p><p>Navigate to the main <strong>Azure Virtual Network Gateway</strong>.<br>Select <strong>Connections</strong> &gt; <strong>Add</strong>.<br><strong>Connection Type:</strong> Site-to-Site (IPsec).<br><strong>Local Network Gateway:</strong> Select the LNG created in phase3 step1.<br><strong>Shared Key (PSK):</strong> Input [PSK_SECRET] (from the AWS config file).</p><p><strong>Outcome:</strong> Azure will initiate the IKEv2 handshake. The tunnel status in AWS should transition from DOWN to UP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjFy7DlZkjyvboKHTs3Tnw.png" /><figcaption>Network Diagram</figcaption></figure><h3>Phase 4: Routing &amp; Security</h3><p><strong>Objective:</strong> Allow traffic to flow through the now-active tunnel.</p><ol><li><strong>Update AWS Route Tables</strong></li></ol><p>Identify the Route Table associated with the target EC2 service subnets<br><strong>Action:</strong> Add a route entry:<br><strong>Destination:</strong> [AZURE_VNET_CIDR]<br><strong>Target:</strong> Virtual Private Gateway ID.</p><p><em>Check:</em> Ensure no conflicting routes exist for this destination.</p><p><strong>2. Update AWS Security Groups</strong></p><p>Locate the Security Group attached to the target server<br><strong>Action:</strong> Add an <strong>Inbound Rule</strong>:<br><strong>Type:</strong> Custom TCP (or All Traffic for testing).<br><strong>Port:</strong> Relevant Service Ports on your EC2 (e.g. 443, 22).<br><strong>Source:</strong> [AZURE_VNET_CIDR].</p><p><em>Why:</em> Even if the tunnel is UP, AWS firewalls drop traffic by default unless explicitly allowed.</p><h3>Phase 5: Connectivity Validation</h3><p>Perform the following tests to confirm stability:</p><ol><li><strong>Tunnel Status Check:<br>Azure:</strong> Check the connection status is “Connected”.<br><strong>AWS:</strong> Check Site-to-Site VPN Tunnel 1/2 status is “UP”.</li><li><strong>Ping/Telnet Test:<br></strong>ssh into a test instance inside the Azure [AZURE_VNET_CIDR].<br>Attempt to reach the internal IP of the AWS ec2 service<br>telnet [TARGET_SERVICE_PRIVATE_IP] [PORT]</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d96cc72ca64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOM Prevention in GCP Memorystore]]></title>
            <link>https://medium.com/@AakarshitAgarwal/oom-prevention-in-gcp-memorystore-a2da7bc84056?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2da7bc84056</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[memorystore]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 14:03:30 GMT</pubDate>
            <atom:updated>2026-01-12T14:03:30.397Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOM Prevention in GCP Memorystore (Key Concept)</h3><h3>What is OOM Prevention?</h3><p>OOM (Out-Of-Memory) Prevention is a <strong>protective safety mechanism</strong> implemented by GCP Memorystore to avoid Redis crashes.</p><p>Instead of letting Redis exceed system memory and crash, GCP:</p><p><strong>Freezes all write operations<br></strong>Allows <strong>read operations to continue<br></strong>Prevents Redis from restarting or becoming unavailable<br>This is controlled internally by a parameter called:</p><pre>oom_prevention_on</pre><p><strong>Primary cause for this param flip</strong></p><ul><li>Sudden increase in Redis client connections (ex <strong>~500 → ~1200</strong>)<br><strong>It’s Secondary impact -&gt; </strong>1)<strong> </strong>Elevated memory usage per connection<br>2) Redis crossed the <strong>system memory usage ratio</strong> enforced by GCP</li></ul><p><a href="https://docs.cloud.google.com/memorystore/docs/redis/memory-management-best-practices#manage_your_system_memory_usage_ratio">https://docs.cloud.google.com/memorystore/docs/redis/memory-management-best-practices#manage_your_system_memory_usage_ratio</a></p><h3>oom_prevention_on: yes</h3><ul><li>Redis has entered <strong>memory protection mode</strong></li><li><strong>All write commands are rejected</strong>, including: <br>SET<br>DEL<br>EXPIRE<br>INCR</li><li>Redis remains <strong>online and readable</strong></li><li>This protects Redis from being killed by the OS due to OOM</li></ul><h3>oom_prevention_on: no</h3><ul><li>Memory pressure has reduced</li><li>Redis has exited protection mode</li><li><strong>Write operations are automatically re-enabled</strong></li><li>No manual intervention is required</li></ul><blockquote><em>⚠️ Important:<br> This parameter is </em><strong><em>managed internally by GCP</em></strong><em> and </em><strong><em>cannot be manually set or overridden</em></strong><em>.</em></blockquote><p>To release memory pressure, some keys can be explicitly deleted:</p><pre>redis-cli -h &lt;REDIS_HOST&gt; -p &lt;PORT&gt; -a &#39;&lt;PASSWORD&gt;&#39; --scan --pattern &#39;EXAMPLE*&#39; \<br>| xargs -n 100 redis-cli -h &lt;REDIS_HOST&gt; -p &lt;PORT&gt; -a &#39;&lt;PASSWORD&gt;&#39; del</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2da7bc84056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SSL.com for EV Code Signing Over DigiCert, AWS, Azure]]></title>
            <link>https://medium.com/@AakarshitAgarwal/ssl-com-for-ev-code-signing-over-digicert-aws-azure-ef3d5b651042?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef3d5b651042</guid>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[code-signing-certificate]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[code-signing]]></category>
            <category><![CDATA[ssl-certificate]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 14:58:24 GMT</pubDate>
            <atom:updated>2025-10-22T14:59:50.132Z</atom:updated>
            <content:encoded><![CDATA[<p>When selecting a provider for <strong>EV (Extended Validation) Code Signing Certificates</strong>, our primary objectives were clear:</p><ul><li>Ensure <strong>global trust</strong> in our signed binaries.</li><li>Maintain <strong>security and compliance</strong> without exposing private keys.</li><li>Achieve <strong>cost and support flexibility</strong> that fits a modern CI/CD workflow.</li></ul><p>After evaluating <strong>DigiCert</strong>, <strong>AWS</strong>, and <strong>Azure</strong>, I ultimately chose <strong>SSL.com</strong> for our EV Code Signing needs. Here’s a detailed look at the decision process and implementation journey.</p><h3>🔍 Why Not DigiCert?</h3><p>DigiCert is one of the most recognised names in the certificate authority ecosystem, but during our evaluation, I encountered some practical challenges:</p><ol><li><strong>Support Responsiveness</strong><br> Their support channels were often slow to respond, especially during the verification and validation process, which can cause delays in onboarding.</li><li><strong>High Product Cost</strong><br>DigiCert positions EV certificates as a high-end enterprise product. While this comes with a brand reputation, the cost was significantly higher than that of comparable offerings.</li><li><strong>Annual-Only Support Plans</strong><br>DigiCert’s support plans were <strong>billed annually</strong>, offering no monthly flexibility. For organisations preferring a pay-as-you-go or scalable model, this introduced unnecessary cost rigidity.</li></ol><p>📘 Reference: <a href="https://docs.digicert.com/en/certcentral/manage-certificates/code-signing-certificates/order-an-ev-code-signing-certificate.html">DigiCert EV Code Signing Order Guide</a></p><h3>☁️ Why Not AWS or Azure?</h3><p>Both AWS and Azure offer robust key management and HSM (Hardware Security Module) solutions — <strong>AWS CloudHSM</strong> and <strong>Azure Key Vault HSM</strong> — which initially seemed suitable for hosting our private keys.</p><p>However, some limitations became apparent:</p><ol><li><strong>Limited Global Acceptance</strong><br>AWS does <strong>not guarantee global acceptance</strong> of code-signed binaries outside their ecosystem. This constraint was critical since our software needs to be distributed worldwide.</li><li><strong>Dependence on DigiCert or Other CAs</strong><br>While CloudHSM can generate the <strong>CSR (Certificate Signing Request)</strong> and private key, I would still need to rely on <strong>DigiCert</strong> (or another CA) to issue the EV certificate.<br>Moreover, <strong>private keys cannot be exported</strong> from CloudHSM, introducing operational dependency and limited flexibility.</li></ol><h3>✅ Why I chose SSL.com?</h3><p>After weighing the above options, <strong>SSL.com</strong> emerged as the best fit — offering a balance of <strong>security</strong>, <strong>global trust</strong>, and <strong>operational simplicity</strong>.</p><p>SSL.com’s <strong>eSigner EV Code Signing</strong> solution provided exactly what I needed:</p><ul><li>Cloud-based signing with <strong>no private key exposure</strong></li><li><strong>Global recognition</strong> of signed software</li><li>Monthly billing flexibility</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*N6LigB05V0kOd3mgYNfoIw.png" /></figure><ul><li>Easy <strong>CI/CD integration</strong> options</li></ul><h3>💬 Common Questions Clarified ( SSL.com )</h3><h3>1. Billing Process</h3><ul><li>SSL.com supports <strong>monthly recurring billing</strong>, offering greater flexibility.</li><li>If a credit card is on file, <strong>billing is automated</strong> with no manual intervention required.</li><li>Signing operations continue seamlessly unless payments lapse.</li></ul><h3>2. Signer Limits &amp; File Re-signing ✅</h3><p><strong>Q:</strong> If I re-sign the same files multiple times using the same certificate, does that count against our signing quota?</p><p><strong>A:</strong> SSL.com clarified that billing is based on the <strong>total number of signing actions</strong>, not on file uniqueness.<br> Re-signing the same file multiple times <strong>does count</strong> towards the signing quota, but there are <strong>no restrictions</strong> on how often you can re-sign files.</p><h3>3. Monitoring Usage</h3><ul><li>No <strong>real-time usage alerts</strong>, but logs are refreshed every 24 hours.</li><li>Logs can be viewed under the <strong>“Signing Credentials”</strong> section of your SSL.com dashboard.</li><li>Detailed <strong>monthly activity reports</strong> are available for audit and review CI/CD Integration (GitLab Example)</li></ul><p>SSL.com offers direct integration guides for <strong>GitLab pipelines</strong>, making it easy to automate signing in your CI/CD process using <strong>eSigner</strong>.</p><p>You’ll need the following environment variables configured:</p><pre>SSL_COM_PROD_CREDENTIAL_ID=&lt;your credential ID&gt;<br>SSL_COM_PROD_USERNAME=&lt;your username&gt;<br>SSL_COM_PROD_PASSWORD=&lt;your password&gt;<br>SSL_COM_PROD_TOTP=&lt;your TOTP secret&gt;<br>SSL_COM_THUMBPRINT=&lt;your certificate thumbprint&gt;</pre><p>🔗 Reference to get thumbprint: <a href="https://www.ssl.com/esigner/">How to Install SSL.com eSigner Cloud Key Adapter (CKA)</a></p><p>This setup ensures <strong>secure, automated code signing</strong> without local private key management.</p><h3>🔐 Security, Lifecycle, and Storage</h3><ul><li><strong>Certificate Security:</strong><br> SSL.com’s eSigner ensures private keys <strong>never leave the cloud environment</strong>. Signing operations occur securely in their HSM-backed infrastructure.</li><li><strong>Lifecycle Management:</strong><br> Our EV Code Signing certificate has a <strong>1-year validity</strong>. Renewal is performed via a dedicated link on the order page, and SSL.com sends <strong>pre-expiry notifications</strong> to avoid downtime.</li><li><strong>Revocation:</strong><br> If an eSigner is revoked, the associated certificate is also revoked immediately for compliance and trust safety.</li><li><strong>Storage and Standards:</strong><br> SSL.com adheres to <strong>industry-leading security standards</strong> for SSL/TLS certificates, including encryption, authentication, and certificate lifecycle best practices.<br>More details: <a href="https://www.ssl.com/esigner/">SSL.com eSigner Overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef3d5b651042" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Strimzi Kafka on Kubernetes]]></title>
            <link>https://medium.com/@AakarshitAgarwal/strimzi-kafka-on-kubernetes-bdc0299ce8eb?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdc0299ce8eb</guid>
            <category><![CDATA[kafka-strimzi]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Thu, 24 Apr 2025 10:58:00 GMT</pubDate>
            <atom:updated>2025-04-24T10:58:55.287Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide documents the setup and configuration of Apache Kafka on Kubernetes using <a href="https://strimzi.io/">Strimzi</a>. All related manifests and configuration files are available in my GitHub repository:</p><p>👉 <a href="https://github.com/AakarshitAgarwal/Strimzi-Kafka"><strong>GitHub Repository: AakarshitAgarwal/Strimzi-Kafka</strong></a></p><h3>📦 Repository Structure</h3><p>The repository includes:</p><ul><li><strong>install/</strong> – YAML files to deploy the Strimzi operator.</li><li><strong>kafka-cluster/</strong> – Configuration for Kafka and Zookeeper clusters.</li><li><strong>connect/</strong> – Kafka Connect setup and configurations.</li><li><strong>monitoring/</strong> – Prometheus and Grafana dashboards for Kafka monitoring.</li><li><strong>secrets/</strong> – TLS and authentication secrets (redacted/templated for security).</li><li><strong>jmx-exporter/</strong> – Custom JMX exporter configuration for Kafka metrics.</li></ul><p>Includes a kafka-metrics ConfigMap to collect JMX metrics and Grafana dashboard to visualise them Observability</p><ul><li>Kafka JMX metrics are exposed using a custom jmx-exporter configuration.</li><li>Dashboards for brokers, producers, consumers, and Connect workers.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdc0299ce8eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ How to Use AWS EFS and Azure File System for Persistent Volumes in Kubernetes (with YAML)]]></title>
            <link>https://medium.com/@AakarshitAgarwal/how-to-use-aws-efs-and-azure-file-system-for-persistent-volumes-in-kubernetes-with-yaml-47c027142257?source=rss-b7e4f0636b3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/47c027142257</guid>
            <category><![CDATA[elastic-file-system]]></category>
            <category><![CDATA[azure-file-storage]]></category>
            <category><![CDATA[kuberenetes]]></category>
            <category><![CDATA[persistent-volume-claim]]></category>
            <category><![CDATA[persistent-volume]]></category>
            <dc:creator><![CDATA[Aakarshit Agarwal]]></dc:creator>
            <pubDate>Tue, 22 Apr 2025 10:10:47 GMT</pubDate>
            <atom:updated>2026-03-30T08:38:24.282Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern cloud-native apps, sharing files between multiple pods or maintaining persistent state is crucial. Kubernetes offers an elegant way to handle this via Persistent Volumes (PV) and Persistent Volume Claims (PVC).</p><p>In this article, we’ll cover how to set up shared storage using:</p><ul><li>✅ <strong>AWS Elastic File System (EFS)</strong></li><li>✅ <strong>Azure Files via CSI Driver</strong></li></ul><p>Let’s dive in! 🏊‍♂️</p><h3>🔹 Part 1: AWS EFS with Kubernetes</h3><h3>🎛️ 1. StorageClass for EFS</h3><pre>kind: StorageClass<br>apiVersion: storage.k8s.io/v1<br>metadata:<br>  name: aws-efs<br>provisioner: efs.csi.aws.com<br>parameters:<br>  provisioningMode: efs-ap<br>  fileSystemId: fs-01575cdfchjfy61f9<br>  directoryPerms: &quot;700&quot;<br>reclaimPolicy: Retain<br>volumeBindingMode: Immediate</pre><h3>📦 2. PersistentVolume for EFS</h3><pre>apiVersion: v1<br>kind: PersistentVolume<br>metadata:<br>  name: efs-medium-pv<br>  finalizers:<br>    - kubernetes.io/pv-protection<br>spec:<br>  capacity:<br>    storage: 200Gi<br>  accessModes:<br>    - ReadWriteMany<br>  persistentVolumeReclaimPolicy: Retain<br>  storageClassName: efs-sc<br>  volumeMode: Filesystem<br>  claimRef:<br>    namespace: medium<br>    name: efs-medium-pv-claim<br>  csi:<br>    driver: efs.csi.aws.com<br>    volumeHandle: fs-05985555559efc7</pre><h3>📄 3. PersistentVolumeClaim for EFS</h3><pre>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: efs-medium-pv-claim<br>  namespace: medium<br>  labels:<br>    component: server<br>    app.kubernetes.io/managed-by: Helm<br>    heritage: Helm<br>  finalizers:<br>    - kubernetes.io/pvc-protection<br>spec:<br>  accessModes:<br>    - ReadWriteMany<br>  resources:<br>    requests:<br>      storage: 200Gi<br>  volumeMode: Filesystem<br>  volumeName: efs-medium-pv<br>  storageClassName: efs-sc</pre><h3>🔷 Part 2: Azure Files with Kubernetes</h3><p>If you’re running your workloads in <strong>Azure Kubernetes Service (AKS)</strong> or self-managed clusters in Azure, <strong>Azure Files</strong> is a perfect managed NFS-like storage backend.</p><p>Create a Kubernetes Secret for Azure Storage</p><pre>STORAGE_KEY=$(az storage account keys list \<br>  --resource-group myResourceGroup \<br>  --account-name myAKSStorageAccount \<br>  --query &quot;[0].value&quot; -o tsv)</pre><p>You can get the base64 values with:</p><pre>echo -n &quot;myAKSStorageAccount&quot; | base64<br>echo -n &quot;&lt;your-storage-key&gt;&quot; | base64</pre><h4>📜 YAML Manifest</h4><pre>apiVersion: v1<br>kind: Secret<br>metadata:<br>  name: storage-secret-medium<br>  namespace: medium<br>type: Opaque<br>data:<br>  azurestorageaccountname: dm9jb25chbhjkuZJwcm9kMw==  # base64 encoded<br>  azurestorageaccountkey: WnFwKtdtyhRV...              # base64 encoded</pre><h3>🎛️ 1. StorageClass for Azure Files</h3><pre>apiVersion: storage.k8s.io/v1<br>kind: StorageClass<br>metadata:<br>  name: azurefile-csi-premium<br>  labels:<br>    addonmanager.kubernetes.io/mode: EnsureExists<br>    kubernetes.io/cluster-service: &quot;true&quot;<br>allowVolumeExpansion: true<br>mountOptions:<br>  - mfsymlinks<br>  - actimeo=30<br>  - nosharesock<br>parameters:<br>  skuName: Premium_LRS<br>provisioner: file.csi.azure.com<br>reclaimPolicy: Delete<br>volumeBindingMode: Immediate</pre><h3>📦 2. PersistentVolume for Azure Files</h3><pre>apiVersion: v1<br>kind: PersistentVolume<br>metadata:<br>  name: pv-medium<br>  finalizers:<br>    - kubernetes.io/pv-protection<br>spec:<br>  capacity:<br>    storage: 200Gi<br>  accessModes:<br>    - ReadWriteMany<br>  storageClassName: azurefile-csi-premium<br>  volumeMode: Filesystem<br>  persistentVolumeReclaimPolicy: Retain<br>  claimRef:<br>    namespace: medium<br>    name: medium-pvc<br>  csi:<br>    driver: file.csi.azure.com<br>    nodeStageSecretRef:<br>      name: storage-secret-medium<br>      namespace: medium<br>    volumeAttributes:<br>      shareName: medium<br>    volumeHandle: &quot;{resource-group-name}#{account-name}#{file-share-name}&quot;<br>  mountOptions:<br>    - dir_mode=0777<br>    - file_mode=0777<br>    - uid=1000<br>    - gid=1000<br>    - mfsymlinks<br>    - cache=strict<br>    - actimeo=30</pre><h3>📄 3. PersistentVolumeClaim for Azure Files</h3><pre>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: medium-pvc<br>  namespace: medium<br>  labels:<br>    component: server<br>    app.kubernetes.io/managed-by: Helm<br>    heritage: Helm<br>  finalizers:<br>    - kubernetes.io/pvc-protection<br>spec:<br>  accessModes:<br>    - ReadWriteMany<br>  resources:<br>    requests:<br>      storage: 200Gi<br>  storageClassName: azurefile-csi-premium<br>  volumeMode: Filesystem<br>  volumeName: pv-medium</pre><h3>🚀 Use in a Pod</h3><p>To use either PVC (AWS or Azure), mount them in a pod like this:</p><pre>volumes:<br>  - name: shared-volume<br>    persistentVolumeClaim:<br>      claimName: &lt;your-pvc-name&gt;</pre><pre>containers:<br>  - name: app<br>    image: nginx<br>    volumeMounts:<br>      - mountPath: &quot;/mnt/shared&quot;<br>        name: shared-volume</pre><p>Replace &lt;your-pvc-name&gt; with either:</p><ul><li>medium-pv-claim for AWS</li><li>medium-pvc for Azure</li></ul><h3>🧠 Final Thoughts</h3><p>Both <strong>AWS EFS</strong> and <strong>Azure Files</strong> are robust, cloud-native solutions to handle persistent and shared storage in Kubernetes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47c027142257" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>