<?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 Saurabh Tandon on Medium]]></title>
        <description><![CDATA[Stories by Saurabh Tandon on Medium]]></description>
        <link>https://medium.com/@saurabhtandon13?source=rss-684b98715ed9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UFp-5a9bT4gemn9JKkeLJA.jpeg</url>
            <title>Stories by Saurabh Tandon on Medium</title>
            <link>https://medium.com/@saurabhtandon13?source=rss-684b98715ed9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:02:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saurabhtandon13/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[Running Garage on VKS: A Modern Open-Source S3-Compatible Object Store]]></title>
            <link>https://medium.com/@saurabhtandon13/running-garage-on-vks-a-modern-open-source-s3-compatible-object-store-a31105de10da?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a31105de10da</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[backup]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Wed, 27 May 2026 15:12:47 GMT</pubDate>
            <atom:updated>2026-05-27T15:12:47.603Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZuHkjHrDH4osHLdqQTNrQ.png" /></figure><h3>What is Garage?</h3><p>Garage is a modern open-source distributed object storage solution designed for cloud-native and Kubernetes environments. Built in Rust, Garage provides an S3-compatible API while maintaining a lightweight and efficient architecture compared to traditional object storage platforms. It is designed to run seamlessly across multiple nodes with support for replication, fault tolerance, and scalable storage management. As organizations increasingly look for self-hosted alternatives to cloud storage Garage has emerged as an attractive option for developers, DevOps engineers, and platform teams. Its low resource consumption makes it ideal for Kubernetes clusters, edge deployments, and production-grade environments.</p><h3>Main Features of Garage</h3><h4>Lightweight and Easy to Run</h4><p>Garage is designed to run efficiently on low-resource systems, making it ideal for edge deployments, and small Kubernetes clusters and Kuberetes backup.</p><h4>Fully S3 Compatible</h4><p>Garage works seamlessly with popular S3 tools like AWS CLI, s3cmd and rclone.</p><h4>Simple and High-Performance Architecture</h4><p>Garage avoids complex consensus overhead, allowing requests to be handled faster and more efficiently, especially in lightweight deployments.</p><h4>Built-in Storage Efficiency</h4><p>With native deduplication and optional Zstd compression, Garage helps optimize storage usage without requiring additional configuration or external tools.</p><h3>Installation Prerequisites</h3><p>The following platform versions were used to validate the Garage setup:</p><ul><li><strong>Kubernetes version:-</strong> v1.35.2+vmware.2</li><li><strong>VKS Service Version:-</strong> 3.6.2+v1.35</li><li><strong>Supervisor Version: </strong>v1.32.9+vmware.2-fips-vsc9.1.0.0–25370922</li><li><strong>Garage Version: v2.3.0</strong></li><li><strong>VCF 9.1</strong></li><li><strong>Helm v4</strong></li></ul><h3>Deploying Garage on VKS</h3><h4>Cluster Creation</h4><p>In VCF 9.1, the <strong>LCI (Local Consumption Interface) </strong>can be leveraged to create and manage Kubernetes workloads. Alternatively, Kubernetes clusters can also be provisioned and managed using the kubectl CLI, depending on the operational and automation requirements.</p><pre>apiVersion: cluster.x-k8s.io/v1beta2<br>kind: Cluster<br>metadata:<br>  name: garage-wl01<br>  namespace: garage<br>spec:<br>  clusterNetwork:<br>    pods:<br>      cidrBlocks:<br>        - 10.244.0.0/16<br>    services:<br>      cidrBlocks:<br>        - 10.96.0.0/16<br>    serviceDomain: cluster.local<br>  topology:<br>    classRef:<br>      name: builtin-generic-v3.6.0<br>      namespace: vmware-system-vks-public<br>    version: v1.35.2---vmware.1-vkr.3<br>    variables:<br>      - name: vmClass<br>        value: k8s-master<br>      - name: storageClass<br>        value: vks-storage-policy<br>      - name: vsphereOptions<br>        value:<br>          persistentVolumes:<br>            availableStorageClasses:<br>              - vks-storage-policy<br>            defaultStorageClass: vks-storage-policy<br>    controlPlane:<br>      replicas: 1<br>      metadata:<br>        annotations:<br>          run.tanzu.vmware.com/resolve-os-image: &gt;-<br>            os-name=ubuntu, content-library=cl-01719ac07566eb820,<br>            os-version=24.04<br>    workers:<br>      machineDeployments:<br>        - class: node-pool<br>          name: garage-wl01-np01<br>          metadata:<br>            annotations:<br>              cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size: &#39;3&#39;<br>              cluster.x-k8s.io/cluster-api-autoscaler-node-group-min-size: &#39;1&#39;<br>              run.tanzu.vmware.com/resolve-os-image: &gt;-<br>                os-name=ubuntu, content-library=cl-01719ac07566eb820,<br>                os-version=24.04</pre><h4>Setting Up Garage on the Cluster</h4><p>Garage will be installed using Helm charts for Kubernetes.</p><pre>$ git clone https://git.deuxfleurs.fr/Deuxfleurs/garage<br><br>$ cd garage/script/helm</pre><p><strong>Modify the below values.yaml</strong></p><pre><br># <br> 77 # Data persistence<br> 78 persistence:<br> 79   enabled: true<br> 80   meta:<br> 81     storageClass: &quot;vks-storage-policy&quot;   # Define the Storage Policy<br> 82     size: 1Gi                            # Storage Size<br> 83     # used only for daemon sets<br> 84     hostPath: /var/lib/garage/meta<br> 85   data:<br> 86     storageClass: &quot;vks-storage-policy&quot;   # Define the Storage Policy<br> 87     size: 10Gi                           # Storage Size<br> 88     # used only for daemon sets <br> 89     hostPath: /var/lib/garage/data<br><br><br>145 service:<br>146   # -- You can rely on any service to expose your cluster<br>147   # - ClusterIP (+ Ingress)<br>148   # - NodePort (+ Ingress)<br>149   # - LoadBalancer<br>150   type: LoadBalancer</pre><pre><br>$ helm install garage --namespace garage ./garage<br><br>NAME: garage<br>LAST DEPLOYED: Wed May 27 14:10:59 2026<br>NAMESPACE: garage<br>STATUS: deployed<br>REVISION: 1<br>DESCRIPTION: Install complete<br>TEST SUITE: None<br><br><br>&gt; kubectl get all -n garage<br><br>NAME           READY   STATUS    RESTARTS   AGE<br>pod/garage-0   1/1     Running   0          7m6s<br><br>NAME                      TYPE           CLUSTER-IP      EXTERNAL-IP    PORT(S)                         AGE<br>service/garage            LoadBalancer   10.96.236.236   192.168.80.8   3900:31953/TCP,3902:32671/TCP   7m6s<br>service/garage-headless   ClusterIP      None            &lt;none&gt;         3900/TCP,3902/TCP               7m6s<br><br>NAME                      READY   AGE<br>statefulset.apps/garage   1/1     7m6s</pre><h4>Validation &amp; Accessing the S3 Endpoint</h4><pre><br>##### Checking the application status <br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage status<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:33:22.090643Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:33:22.132702Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>==== HEALTHY NODES ====<br>ID                Hostname  Address           Tags  Zone  Capacity          DataAvail  Version<br>78d1705c4c9295b6  garage-0  10.244.1.12:3901              NO ROLE ASSIGNED             v2.3.0<br><br>##### Assigning the storage layout<br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage layout assign 78d1705c4c9295b6 -z dc1 -c 10G<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:33:36.104563Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:33:36.146734Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>Role changes are staged but not yet committed.<br>Use `garage layout show` to view staged role changes,<br>and `garage layout apply` to enact staged changes.<br><br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage layout show<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:33:48.528799Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:33:48.570859Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>==== CURRENT CLUSTER LAYOUT ====<br>No nodes currently have a role in the cluster.<br>See `garage status` to view available nodes.<br><br>Current cluster layout version: 0<br><br>==== STAGED ROLE CHANGES ====<br>ID                Tags  Zone  Capacity<br>78d1705c4c9295b6  []    dc1   9.3 GiB<br><br><br>==== NEW CLUSTER LAYOUT AFTER APPLYING CHANGES ====<br>ID                Tags  Zone  Capacity  Usable capacity<br>78d1705c4c9295b6  []    dc1   9.3 GiB   9.3 GiB (100.0%)<br><br>Zone redundancy: maximum<br><br>==== COMPUTATION OF A NEW PARTITION ASSIGNATION ====<br><br>Partitions are replicated 1 times on at least 1 distinct zones.<br><br>Optimal partition size:                     37.3 MiB<br>Usable capacity / total cluster capacity:   9.3 GiB / 9.3 GiB (100.0 %)<br>Effective capacity (replication factor 1):  9.3 GiB<br><br>dc1                 Tags  Partitions        Capacity  Usable capacity<br>  78d1705c4c9295b6  []    256 (256 new)     9.3 GiB   9.3 GiB (100.0%)<br>  TOTAL                   256 (256 unique)  9.3 GiB   9.3 GiB (100.0%)<br><br><br>To enact the staged role changes, type:<br><br>    garage layout apply --version 1<br><br>You can also revert all proposed changes with: garage layout revert<br><br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage layout apply --version 1<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:34:01.947355Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:34:01.989787Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>==== COMPUTATION OF A NEW PARTITION ASSIGNATION ====<br><br>Partitions are replicated 1 times on at least 1 distinct zones.<br><br>Optimal partition size:                     37.3 MiB<br>Usable capacity / total cluster capacity:   9.3 GiB / 9.3 GiB (100.0 %)<br>Effective capacity (replication factor 1):  9.3 GiB<br><br>dc1                 Tags  Partitions        Capacity  Usable capacity<br>  78d1705c4c9295b6  []    256 (256 new)     9.3 GiB   9.3 GiB (100.0%)<br>  TOTAL                   256 (256 unique)  9.3 GiB   9.3 GiB (100.0%)<br><br><br>New cluster layout with updated role assignment has been applied in cluster.<br>Data will now be moved around between nodes accordingly.<br></pre><h4>Bucket &amp; the Access Key Creation</h4><pre># Creating the S3 Bucket<br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage bucket create vks-cluster-backup<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:37:40.358995Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:37:40.401707Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>==== BUCKET INFORMATION ====<br>Bucket:          c1378f08ddb1e69f45407a4811aa8d8c121d623e85e89063fdfe92899994f7f1<br>Created:         2026-05-27 14:37:40.403 +00:00<br><br>Size:            0 B (0 B)<br>Objects:         0<br><br>Website access:  false<br><br>Global alias:    vks-cluster-backup<br><br>==== KEYS FOR THIS BUCKET ====<br>Permissions  Access key    Local aliases<br><br># Listing the bucket<br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage bucket list<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:38:58.397914Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:38:58.439863Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>ID                Created     Global aliases      Local aliases<br>c1378f08ddb1e69f  2026-05-27  vks-cluster-backup<br><br><br># Creating the S3 Access Key <br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage key create vks-admin-key<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:41:10.884351Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:41:10.926773Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>==== ACCESS KEY INFORMATION ====<br>Key ID:              GK7fa6a2bba235dd2194cf0fc5<br>Key name:            vks-admin-key<br>Secret key:          a06fb52d0a32fe33d5b96a5fda152ea8c9dba985ce34bff89a99ed17de45c55b<br>Created:             2026-05-27 14:41:10.927 +00:00<br>Validity:            valid<br>Expiration:          never<br><br>Can create buckets:  false<br><br>==== BUCKETS FOR THIS KEY ====<br>Permissions  ID  Global aliases  Local aliases<br><br># Allowing the Access to the Bucket Using the Access Key<br><br>$ kubectl exec --stdin --tty -n garage garage-0 -- ./garage bucket allow --read --write --owner vks-cluster-backup --key vks-admin-key<br><br>Defaulted container &quot;garage&quot; out of: garage, garage-init (init)<br>2026-05-27T14:42:53.362246Z  INFO garage_net::netapp: Connected to 127.0.0.1:3901, negotiating handshake...<br>2026-05-27T14:42:53.405759Z  INFO garage_net::netapp: Connection established to 78d1705c4c9295b6<br>==== BUCKET INFORMATION ====<br>Bucket:          c1378f08ddb1e69f45407a4811aa8d8c121d623e85e89063fdfe92899994f7f1<br>Created:         2026-05-27 14:37:40.403 +00:00<br><br>Size:            0 B (0 B)<br>Objects:         0<br><br>Website access:  false<br><br>Global alias:    vks-cluster-backup<br><br>==== KEYS FOR THIS BUCKET ====<br>Permissions  Access key                                 Local aliases<br>RWO          GK7fa6a2bba235dd2194cf0fc5  vks-admin-key<br></pre><p>Since Garage is fully compatible with the Amazon S3 API, it can be easily accessed and managed using the AWS CLI and other S3-compatible tools.</p><pre>&gt; aws configure<br><br>Tip: You can deliver temporary credentials to the AWS CLI using your AWS Console session by running the command &#39;aws login&#39;.<br><br>AWS Access Key ID [None]: GK7fa6a2bba235dd2194cf0fc5<br>AWS Secret Access Key [None]: a06fb52d0a32fe33d5b96a5fda152ea8c9dba985ce34bff89a99ed17de45c55b<br>Default region name [None]: garage<br>Default output format [None]:<br><br># The endpoint will be the same K8s Service on which Garage is exposed as LoadBalancer<br><br>&gt; aws --endpoint-url http://192.168.80.8:3900 s3 ls <br><br>2026-05-27 14:37:40 vks-cluster-backup</pre><h3>Conclusion</h3><p>Garage is a lightweight, modern, and fully S3-compatible object storage solution that integrates seamlessly with Kubernetes environments like VKS. With its low resource usage, distributed architecture, and simple deployment model, Garage serves as an excellent open-source alternative to MinIO for building scalable self-hosted storage platforms. In the next blog, we will integrate Garage with Velero to implement backup and restore capabilities for Kubernetes resources such as namespaces, pods, and services on the VKS cluster.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and do not constitute professional advice. No warranty implied or given, and the user accepts that all information, contents, and opinions are my own and do not reflect the opinions of my employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a31105de10da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cilium Ingress: The Future of Kubernetes Traffic Management]]></title>
            <link>https://medium.com/@saurabhtandon13/cilium-ingress-the-future-of-kubernetes-traffic-management-1b5d2087456b?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b5d2087456b</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cilium]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 02:31:36 GMT</pubDate>
            <atom:updated>2026-03-31T02:31:36.591Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUETq2DsVLOP6Inn12Gzig.png" /></figure><h4>Introduction</h4><p>Modern applications demand fast, secure, and highly observable traffic routing, especially at the ingress layer where external requests first enter the cluster. In traditional Kubernetes setups, ingress traffic often passes through multiple layers, such as kube-proxy and iptables, which adds latency and operational complexity. With Cilium on a <strong>Conformant Kubernetes Cluster</strong>, this changes significantly. By leveraging eBPF, ingress traffic is handled directly within the kernel, enabling faster request routing, improved scalability, and deep visibility into application flows.</p><h4>What is Cilium &amp; Why It Matters</h4><p>Cilium is a modern Kubernetes CNI powered by eBPF that brings networking and security into the kernel, making it faster and more efficient for real-world applications.</p><ul><li><strong>Lower latency</strong>: Direct kernel routing, no iptables overhead with kube-proxy, and less architecture design.</li><li><strong>Better scalability</strong>: Handles high traffic without rule explosion</li><li><strong>Deep observability</strong>: Real-time visibility into service-to-service traffic (via Hubble)</li><li><strong>Advanced security</strong>: Fine-grained L7 policies (API/path-level control)</li></ul><h4>Ingress Traffic Flow: IPtables vs eBPF (Cilium)</h4><p>In traditional setups, ingress traffic traverses multiple layers, including kube-proxy and iptables. In contrast, with Cilium, the same request is processed and routed directly to pods via eBPF, reducing hops, latency, and operational complexity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4lfBE5vDW4AedZXuZsVuw.png" /></figure><h4>Prerequisites</h4><p>This setup was validated on <strong>Conformant Kubernetes Cluster </strong>version <strong>v1.35.0+vmware.2</strong></p><p><strong>Cilium Version:</strong> 1.19.1</p><p><strong>Cilium Ingress Validation</strong></p><p>Cilium Ingress service should have the external IP and also validate the <strong>Ingressclass </strong>for cilium</p><pre>~ kubectl get svc -A<br>NAMESPACE           NAME                      TYPE           CLUSTER-IP       EXTERNAL-IP     PORT(S)                      AGE<br>kube-system         cilium-envoy              ClusterIP      None             &lt;none&gt;          9964/TCP                     10h<br>kube-system         cilium-ingress            LoadBalancer   100.69.177.14    192.168.40.59   80:31160/TCP,443:31344/TCP   10h<br>kube-system         hubble-peer               ClusterIP      100.71.70.226    &lt;none&gt;          443/TCP                      10h<br>kube-system         kube-dns                  ClusterIP      100.64.0.10      &lt;none&gt;          53/UDP,53/TCP,9153/TCP       10h<br>kube-system         metrics-server            ClusterIP      100.69.43.161    &lt;none&gt;          443/TCP                      10h<br><br>~ kubectl get ingressclass -A<br>NAME     CONTROLLER                     PARAMETERS   AGE<br>cilium   cilium.io/ingress-controller   &lt;none&gt;       10h</pre><h4>Application Deployment on Cilium CNI-Enabled Cluster</h4><p><strong>Apps Github Link:</strong></p><p><a href="https://github.com/GoogleCloudPlatform/microservices-demo">https://github.com/GoogleCloudPlatform/microservices-demo</a></p><p><strong>Apps Overview:</strong></p><p>The <strong>Online Boutique (microservices-demo)</strong> is a cloud-native e-commerce application designed to showcase a Kubernetes-based microservices architecture. It consists of multiple loosely coupled services such as frontend, product catalogue, cart, payment, and recommendation, communicating over gRPC and HTTP. We will additionally use cert-manager to obtain the SSL certificate and use it with the L7 Envoy ingress.</p><pre># Cloning the git repository <br><br>➜ git clone https://github.com/GoogleCloudPlatform/microservices-demo.git<br>Cloning into &#39;microservices-demo&#39;...<br>Resolving deltas: 100% (15780/15780), done.<br><br>➜ cd microservices-demo/kubernetes-manifests/<br><br>#### frontend service is exposed as LoadBalabcer I have changed <br>###  the service type to ClusterIP as i need to expose it via Ingress </pre><pre># As we have a Kustomize file so deploying the application using kustomize.<br><br>✗ k apply -k . -n webapps<br>serviceaccount/adservice created<br>serviceaccount/cartservice created<br>serviceaccount/checkoutservice created<br>serviceaccount/currencyservice created<br>serviceaccount/emailservice created<br>serviceaccount/frontend created<br>serviceaccount/paymentservice created<br>serviceaccount/productcatalogservice created<br>serviceaccount/recommendationservice created<br>serviceaccount/shippingservice created<br>service/adservice created<br>service/cartservice created<br>service/checkoutservice created<br>service/currencyservice created<br>service/emailservice created<br>service/frontend created<br>service/frontend-external created<br>service/paymentservice created<br>service/productcatalogservice created<br>service/recommendationservice created<br>service/redis-cart created<br>service/shippingservice created<br>deployment.apps/adservice created<br>deployment.apps/cartservice created<br>deployment.apps/checkoutservice created<br>deployment.apps/currencyservice created<br>deployment.apps/emailservice created<br>deployment.apps/frontend created<br>deployment.apps/paymentservice created<br>deployment.apps/productcatalogservice created<br>deployment.apps/recommendationservice created<br>deployment.apps/redis-cart created<br>deployment.apps/shippingservice created<br><br><br># Checking the application Service Status<br><br>✗ kubectl get svc -n webapps<br>NAME                    TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE<br>adservice               ClusterIP   100.70.87.30     &lt;none&gt;        9555/TCP    2m37s<br>cartservice             ClusterIP   100.65.178.70    &lt;none&gt;        7070/TCP    2m37s<br>checkoutservice         ClusterIP   100.65.157.88    &lt;none&gt;        5050/TCP    2m37s<br>currencyservice         ClusterIP   100.66.73.80     &lt;none&gt;        7000/TCP    2m37s<br>emailservice            ClusterIP   100.70.109.20    &lt;none&gt;        5000/TCP    2m37s<br>frontend                ClusterIP   100.68.200.26    &lt;none&gt;        80/TCP      2m37s<br>frontend-external       ClusterIP   100.71.22.74     &lt;none&gt;        80/TCP      2m37s<br>paymentservice          ClusterIP   100.67.19.142    &lt;none&gt;        50051/TCP   2m37s<br>productcatalogservice   ClusterIP   100.68.171.164   &lt;none&gt;        3550/TCP    2m37s<br>recommendationservice   ClusterIP   100.71.3.135     &lt;none&gt;        8080/TCP    2m37s<br>redis-cart              ClusterIP   100.66.110.247   &lt;none&gt;        6379/TCP    2m37s<br>shippingservice         ClusterIP   100.71.23.172    &lt;none&gt;        50051/TCP   2m37s<br></pre><p><strong>Certificate Generation Using Cert-Manager</strong></p><pre><br># Certificate Issuer <br><br>apiVersion: cert-manager.io/v1<br>kind: Issuer<br>metadata:<br>  name: online-app-selfsigned-issuer<br>  namespace: webapps<br>  labels:<br>    app: online-app<br>spec:<br>  selfSigned: {}<br><br># Certificate Request to Cert-Manager<br><br>apiVersion: cert-manager.io/v1<br>kind: Certificate<br>metadata:<br>  name: online-app-selfsigned-cert<br>  namespace: webapps<br>  labels:<br>    app: online-app<br>spec:<br>  isCA: true<br>  commonName: shoppingapp.vkslab.internal<br>  secretName: online-app-server-tls<br>  dnsNames:<br>    - shoppingapp.vkslab.internal<br>  duration: 8760h<br>  renewBefore: 240h<br>  privateKey:<br>    rotationPolicy: Always<br>    algorithm: ECDSA<br>    size: 256<br>  issuerRef:<br>    name: online-app-selfsigned-issuer<br>    kind: Issuer<br>    group: cert-manager.io</pre><p><strong>Cilium Ingress for Shopping Application</strong></p><pre># Ingress <br><br>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: online-app-ingress<br>  namespace: webapps<br>  labels:<br>    app: online-app<br>spec:<br>  ingressClassName: cilium  # This is important to Mention<br>  tls:<br>    - hosts:<br>        - shoppingapp.vkslab.internal<br>      secretName: online-app-server-tls<br>  rules:<br>    - host: shoppingapp.vkslab.internal<br>      http:<br>        paths:<br>          - path: /<br>            pathType: Prefix<br>            backend:<br>              service:<br>                name: frontend<br>                port:<br>                  number: 80<br><br><br>✗ kubectl get ingress -A<br><br>NAMESPACE   NAME                 CLASS    HOSTS                         ADDRESS         PORTS     AGE<br>webapps     online-app-ingress   cilium   shoppingapp.vkslab.internal   192.168.44.59   80, 443   6m47s<br></pre><h4><strong>Application validation</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cck6RWdwHgK4zagQ0GUI4w.png" /></figure><h4>Network Observability with Hubble</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*YDMnrLl489zFJ6mu.png" /></figure><h4>Conclusion:</h4><p>Cilium modernises Kubernetes ingress by combining eBPF performance with Envoy’s L7 capabilities, resulting in faster, scalable, and more observable traffic handling. It eliminates traditional bottlenecks like kube-proxy and iptables while enabling fine-grained security and control. This makes it an ideal choice for modern microservices-based applications.</p><p>In upcoming blogs, we will dive deeper into the Gateway API with Cilium and explore how Hubble helps monitor and visualise traffic flows — making it easier to understand and manage complex application traffic.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and do not constitute professional advice. No warranty implied or given, and the user accepts that all information, contents, and opinions are my own and do not reflect the opinions of my employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5d2087456b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VKS (VMware Kubernetes Service) Networking, Now Powered by Cilium: Expanding Networking…]]></title>
            <link>https://medium.com/@saurabhtandon13/vks-vmware-kubernetes-service-networking-now-powered-by-cilium-expanding-networking-34aefa2972e8?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/34aefa2972e8</guid>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Thu, 26 Mar 2026 07:50:54 GMT</pubDate>
            <atom:updated>2026-04-02T02:25:00.641Z</atom:updated>
            <content:encoded><![CDATA[<h3>VKS (VMware Kubernetes Service) Networking, Now Powered by Cilium: Expanding Networking Possibilities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-g2ndJItz3G4W76eAKIiVw.png" /></figure><h4>Introduction: Why Cilium on VKS?</h4><p>Kubernetes networking has evolved from a basic connectivity layer to a critical foundation for performance, security, and observability. As platforms mature, the ability to choose and integrate advanced networking solutions becomes less of a luxury and more of a necessity.</p><p>With VKS now supporting the installation of <strong>Cilium OSS using Standard Package</strong>, it introduces greater flexibility, enabling teams to move beyond default configurations and adopt solutions that better align with their architectural goals.</p><p>This is where Cilium stands out.</p><p>Bringing Cilium into VKS is not just about installing another CNI plugin; it’s about unlocking a more modern networking model. One that is built for scale, designed for security, and capable of providing deep insights into cluster traffic without additional complexity.</p><h4>What is Cilium &amp; Why It Matters</h4><p>Unlike traditional CNIs that rely heavily on iptables and static rules, Cilium leverages eBPF to operate directly within the Linux kernel. This shift is more than just an implementation detail; it fundamentally changes how networking, security, and visibility are handled in Kubernetes environments. Policies become more expressive, observability becomes real-time, and performance overhead is significantly reduced. Important features that make Cilium stand out from others are:-</p><ul><li><strong>Lower latency</strong>: Direct kernel routing, no iptables overhead with kube-proxy, and less architecture design.</li><li><strong>Better scalability</strong>: Handles high traffic without rule explosion</li><li><strong>Deep observability</strong>: Real-time visibility into service-to-service traffic (via Hubble)</li><li><strong>Advanced security</strong>: Fine-grained L7 policies (API/path-level control)</li></ul><h4>Installation Prerequisites</h4><p>This setup was validated on Kubernetes version <strong>v1.35.0+vmware.2</strong> with <strong>VKS Service Version:- 3.6.0+v1.35</strong></p><p><strong>VKS Standard Packages v3.6.0+20260320 repository: </strong>projects.packages.broadcom.com/vsphere/supervisor/vks-standard-packages/3.6.0–20260320/vks-standard-packages:3.6.0–20260320</p><p><strong>Supervisor k8s version</strong>:- v1.32.9+vmware.2-fips-vsc0.1.14–25197332</p><p>** Follow the official documentation to install the Addon on the Cluster</p><p><strong>Deploying Cilium Addons on the Supervisor</strong></p><pre><br># kubectl get addons -A  <br><br>NAMESPACE                  NAME                          AGE<br>vmware-system-vks-public   cilium                        34m<br><br><br># kubectl describe addons cilium -n vmware-system-vks-public<br><br>Name:         cilium<br>Namespace:    vmware-system-vks-public<br>Labels:       addon.kubernetes.vmware.com/addon-name=cilium<br>              addon.kubernetes.vmware.com/addon-namespace=vmware-system-vks-public<br>Annotations:  &lt;none&gt;<br>API Version:  addons.kubernetes.vmware.com/v1alpha1<br>Kind:         Addon<br>Metadata:<br>  Creation Timestamp:  2026-03-23T06:08:48Z<br>  Generation:          1<br>  Owner References:<br>    API Version:     data.packaging.carvel.dev/v1alpha1<br>    Kind:            PackageMetadata<br>    Name:            cilium.kubernetes.vmware.com<br>    UID:             35fcf0cd-8b21-4c90-875f-0a1fca0cd625<br>  Resource Version:  56251591<br>  UID:               f55dfde2-4ea2-43ae-be55-318d06a2f731<br>Spec:<br>  Description:  eBPF-based networking and security for Kubernetes<br>Events:         &lt;none&gt;<br></pre><h4>Installing Cilium on VKS</h4><p>Cilium is installed on VKS clusters using the addon functionality introduced in VKS version 3.5, and the Cilium CNI is supported from VKS Version 3.6+.</p><p>To proceed, we must create an <strong>AddonInstall </strong>YAML file.</p><pre><br># Create a addon install yaml file and apply it on the Supervisor <br># in this example cluster name is : air-wl01<br><br>apiVersion: addons.kubernetes.vmware.com/v1alpha1<br>kind: AddonInstall<br>metadata:<br>  name: &lt;&lt;cluster-name&gt;&gt;-cilium           # name of the addon install<br>  namespace: &lt;&lt; vsphere-namespace &gt;&gt;    <br>spec:<br>  addonConfigNameTemplate: &#39;{{.cluster.name}}-{{.addon.name}}&#39;<br>  addonRef:<br>    name: cilium<br>  clusters:<br>  - constraints:<br>      expression: cluster.cniRefName() == &#39;cilium&#39; &amp;&amp; version_in_range(cluster.spec.topology.version,<br>        &#39;&gt;=1.35.0&#39;)<br>    selector:<br>      matchLabels:<br>        cluster.x-k8s.io/cluster-name: &lt;&lt; cluster-name &gt;&gt; #Cluster Name<br>  crossNamespaceSelection: Allowed<br>  releaseFilter:<br>    ref:<br>      name: cilium.kubernetes.vmware.com.1.19.1-vmware.1-vks.1<br>      namespace: vmware-system-vks-public<br>  stopMatchingBehavior: Retain<br><br># kubectl apply -f cilium-addoninstall.yaml<br><br>addoninstall.addons.kubernetes.vmware.com/air-wl01-cilium created<br><br><br># Create the addonConfig file and apply it on Supervisor<br><br><br>apiVersion: addons.kubernetes.vmware.com/v1alpha1<br>kind: AddonConfig<br>metadata:<br>  annotations:<br>    clusteraddon.addons.kubernetes.vmware.com/owned-for-deletion: &quot;true&quot;<br>  name: &lt;&lt;cluster-name&gt;&gt;-cilium<br>  namespace: &lt;&lt; vsphere-namespace &gt;&gt;<br>spec:<br>  clusterName: &lt;&lt;&lt; cluster-name&gt;&gt;&gt;<br>  values:<br>    hubble:<br>      enabled: true<br>      relay:<br>        enabled: true<br>      ui:<br>        enabled: true<br>        service:<br>          type: &lt;&lt; LoadBalancer/NodePort/ClusterIP &gt;&gt;</pre><p>Create a cluster yaml file for the VKS cluster and apply it to the Supervisor cluster</p><pre>apiVersion: cluster.x-k8s.io/v1beta2<br>kind: Cluster<br>metadata:<br>  name: &lt;&lt;&lt; cluster-name&gt;&gt;.  #Should be same as defined in Addon install yaml<br>  namespace: &lt;&lt;&lt; vSphere-Namespace &gt;&gt;&gt; # vSphere Namespace<br>spec:<br>  clusterNetwork:<br>    pods:<br>      cidrBlocks:<br>      - 100.96.0.0/11<br>    serviceDomain: cluster.local<br>    services:<br>      cidrBlocks:<br>      - 100.64.0.0/13<br>  topology:<br>    classRef:<br>      name: builtin-generic-v3.6.0<br>      namespace: vmware-system-vks-public<br>    controlPlane:<br>      metadata:<br>        annotations:<br>          run.tanzu.vmware.com/resolve-os-image: os-name=ubuntu, os-version=24.04<br>      replicas: 1<br>    variables:<br>    - name: vmClass<br>      value: &lt;&lt;&lt; best-effort-xlarge &gt;&gt;&gt;. # vmclass <br>    - name: storageClass<br>      value: &lt;&lt;&lt;&lt; worker-storagepolicy &gt;&gt;&gt; # storage policy <br>    - name: bootstrapAddons <br>      value:<br>        cniRef:             # this is where we are pointing to cilium CNI<br>          name: cilium<br>    - name: node<br>      value:<br>        firewall:<br>          inboundRules:<br>          - fromPort: 2379<br>            protocol: tcp<br>            toPort: 2380<br>          - fromPort: 8472<br>            protocol: udp<br>            toPort: 8472<br>          - fromPort: 4240<br>            protocol: tcp<br>            toPort: 4240<br>          - fromPort: 4244<br>            protocol: tcp<br>            toPort: 4244<br>          - fromPort: 31235<br>            protocol: tcp<br>            toPort: 31235<br>          - protocol: icmp<br>    - name: kubernetes<br>      value:<br>        certificateRotation:<br>          enabled: true<br>          renewalDaysBeforeExpiry: 90<br>    version: v1.35.0+vmware.2         # check this as per the Supervisor support<br>    workers:<br>      machineDeployments:<br>      - class: node-pool<br>        metadata:<br>          annotations:<br>            run.tanzu.vmware.com/resolve-os-image: os-name=ubuntu, os-version=24.04<br>        name: node-pool-1<br>        replicas: 1<br>        variables:<br>          overrides:<br>          - name: node<br>            value:<br>              firewall:<br>                inboundRules:<br>                - fromPort: 8472<br>                  protocol: udp<br>                  toPort: 8472<br>                - fromPort: 4240<br>                  protocol: tcp<br>                  toPort: 4240<br>                - fromPort: 4244<br>                  protocol: tcp<br>                  toPort: 4244<br>                - fromPort: 31235<br>                  protocol: tcp<br>                  toPort: 31235<br>                - protocol: icmp<br><br># Cluster Creation<br><br>&gt; kubectl apply -f cilium-cluster.yaml<br><br>cluster.cluster.x-k8s.io/air-wl02 created<br>                                                                                                                                                                                                                                                                                                                                                                                       </pre><h4>Cilium Verification &amp; Validation</h4><pre># Login to the Cilium Workload Cluster <br><br># vcf context create &lt;&lt; context-name &gt;&gt;  --endpoint &lt;&lt; Supervisor-ip &gt;&gt; --insecure-skip-tls-verify --username administrator@vsphere.local --workload-cluster-namespace &lt;&lt; vsphere-Namespace &gt;&gt; --workload-cluster-name &lt;&lt; Cluster-Name&gt;&gt;<br><br># kubectl config use-context &lt;&lt; context-name &gt;&gt;<br><br># kubectl get nodes<br><br>NAME                                     STATUS   ROLES           AGE     VERSION<br>air-wl02-fqkb2-5ntqh                     Ready    control-plane   8m56s   v1.35.0+vmware.2<br>air-wl02-node-pool-1-hqwpd-bkc78-54q9z   Ready    &lt;none&gt;          4m52s   v1.35.0+vmware.2<br><br># kubectl get pods -n kube-system | grep -i cilium<br><br>cilium-envoy-8dfz7                             1/1     Running   0          70m<br>cilium-envoy-q55s7                             1/1     Running   0          67m<br>cilium-lbmtm                                   1/1     Running   0          70m<br>cilium-operator-7b464bdc4b-kw2sx               1/1     Running   0          70m<br>cilium-operator-7b464bdc4b-lmpgc               1/1     Running   0          70m<br>cilium-qhxwr <br><br># Download the Cilium CLI based on the cilium verson and the OS platform. Visit the below URL <br><br>&gt; url:- https://github.com/cilium/cilium-cli/releases/tag/v0.xx.x  # modify the url as per the cilium version<br><br>&gt; wget https://github.com/cilium/cilium-cli/releases/download/v0.xx.x/cilium-linux-arm64.tar.gz<br><br>&gt; tar -zxvf cilium-linux-amd64.tar.gz<br>cilium<br><br>&gt; mv cilium /usr/local/bin<br><br># validating the Cilium Cluster Status using Cilium CLI<br><br>&gt; cilium status<br>    /¯¯\<br> /¯¯\__/¯¯\    Cilium:             OK<br> \__/¯¯\__/    Operator:           OK<br> /¯¯\__/¯¯\    Envoy DaemonSet:    OK<br> \__/¯¯\__/    Hubble Relay:       OK<br>    \__/       ClusterMesh:        disabled<br><br>DaemonSet              cilium                   Desired: 2, Ready: 2/2, Available: 2/2<br>DaemonSet              cilium-envoy             Desired: 2, Ready: 2/2, Available: 2/2<br>Deployment             cilium-operator          Desired: 2, Ready: 2/2, Available: 2/2<br>Deployment             hubble-relay             Desired: 1, Ready: 1/1, Available: 1/1<br>Deployment             hubble-ui                Desired: 1, Ready: 1/1, Available: 1/1<br>Containers:            cilium                   Running: 2<br>                       cilium-envoy             Running: 2<br>                       cilium-operator          Running: 2<br>                       clustermesh-apiserver<br>                       hubble-relay             Running: 1<br>                       hubble-ui                Running: 1<br>Cluster Pods:          8/8 managed by Cilium<br>Helm chart version:<br>Image versions         cilium             projects.packages.broadcom.com/vsphere/supervisor/vks-standard-packages/3.6.0-20260320/vks-standard-packages@sha256:3a6b48ec1479923688b6113841db971b8abdb4f62cdf8b45a7a4042e8e334da8: 2<br>                       cilium-envoy       projects.packages.broadcom.com/vsphere/supervisor/vks-standard-packages/3.6.0-20260320/vks-standard-packages@sha256:6a9633c26c5421542ff227ed191d48c9b4c45daf3fed4996a80bab44c60c1062: 2<br>                       cilium-operator    projects.packages.broadcom.com/vsphere/supervisor/vks-standard-packages/3.6.0-20260320/vks-standard-packages@sha256:b5de35f456a64a6dc56c3aea30061f4c50517b87ae5e0a67d09edbe4209e8cde: 2<br>                       hubble-relay       projects.packages.broadcom.com/vsphere/supervisor/vks-standard-packages/3.6.0-20260320/vks-standard-packages@sha256:6c5ce6a4f8d466e012d88c7840cc556abb05376c3aa7870bb7a76a68c43ef280: 1<br>                       hubble-ui          projects.packages.broadcom.com/vsphere/supervisor/vks-standard-packages/3.6.0-20260320/vks-standard-packages@sha256:305c1ffba18237031051634da3304ca167b58dc719e594b0ba2b3a8be48f9aab: 1<br>                       hubble-ui          projects.packages.broadcom.com/vsphere/supervisor/vks-standard-packages/3.6.0-20260320/vks-standard-packages@sha256:5577af41b78aaff9fc0b5a4d878359a3a2f10ba3f056cba19870581dd0520274: 1</pre><h4>Sample Application Deployment</h4><p>Github repo:- <a href="https://github.com/GoogleCloudPlatform/microservices-demo">https://github.com/GoogleCloudPlatform/microservices-demo</a></p><pre>#kubectl create ns webapps<br>namespace/webapps created<br><br># kubectl label --overwrite ns webapps pod-security.kubernetes.io/enforce=privileged<br>namespace/webapps labeled<br><br># kubectl apply -k . -n webapps<br><br>serviceaccount/adservice created<br>serviceaccount/cartservice created<br>serviceaccount/checkoutservice created<br>serviceaccount/currencyservice created<br>serviceaccount/emailservice created<br>serviceaccount/frontend created<br>serviceaccount/paymentservice created<br>serviceaccount/productcatalogservice created<br>serviceaccount/recommendationservice created<br>serviceaccount/shippingservice created<br>service/adservice created<br>service/cartservice created<br>service/checkoutservice created<br>service/currencyservice created<br>service/emailservice created<br>service/frontend created<br>service/frontend-external created<br>service/paymentservice created<br>service/productcatalogservice created<br>service/recommendationservice created<br>service/redis-cart created<br>service/shippingservice created<br>deployment.apps/adservice created<br>deployment.apps/cartservice created<br>deployment.apps/checkoutservice created<br>deployment.apps/currencyservice created<br>deployment.apps/emailservice created<br>deployment.apps/frontend created<br>deployment.apps/paymentservice created<br>deployment.apps/productcatalogservice created<br>deployment.apps/recommendationservice created<br>deployment.apps/redis-cart created<br>deployment.apps/shippingservice created<br><br># kubectl get pods -n webapps<br><br>NAME                                    READY   STATUS    RESTARTS   AGE<br>adservice-64dd5464b8-d794w              1/1     Running   0          2m22s<br>cartservice-7956c8c845-7b7sq            1/1     Running   0          2m22s<br>checkoutservice-dcf4c5c7b-lgqxt         1/1     Running   0          2m22s<br>currencyservice-8fdf6cf9d-bxn9j         1/1     Running   0          2m21s<br>emailservice-588bb96b8-z6fhl            1/1     Running   0          2m21s<br>frontend-759775d795-dhnfj               1/1     Running   0          2m21s<br>paymentservice-66c65775b-8hmgt          1/1     Running   0          2m21s<br>productcatalogservice-c4cfd98fb-9h22n   1/1     Running   0          2m21s<br>recommendationservice-b5b5bfc56-lrfk7   1/1     Running   0          2m21s<br>redis-cart-5f6944799d-bxkdx             1/1     Running   0          2m21s<br>shippingservice-5dcc4d7bd-tv24c         1/1     Running   0          2m21s</pre><p><strong>Application is accessible</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkKBRpPv1g-etGNQIyz9hQ.png" /></figure><h4>Network Observability with Hubble</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8CzWA85sVq2kPgU-pujaA.png" /></figure><h4>Conclusion &amp; Final Thoughts</h4><p>Integrating Cilium with VKS goes beyond just adding another networking layer; it introduces a smarter, more efficient way to manage cluster traffic. With eBPF at its core, Cilium brings enhanced visibility, fine-grained security policies, and improved performance without added complexity. This combination not only enhances VKS&#39;s networking capabilities but also lays the foundation for building more scalable, observable, and secure Kubernetes environments.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and do not constitute professional advice. No warranty implied or given, and the user accepts that all information, contents, and opinions are my own and do not reflect the opinions of my employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34aefa2972e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From L3/L4 to L7 Security: How Cilium Reinvents Kubernetes Network Policies]]></title>
            <link>https://medium.com/@saurabhtandon13/from-l3-l4-to-l7-security-how-cilium-reinvents-kubernetes-network-policies-ed1e44bab595?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed1e44bab595</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Mon, 16 Mar 2026 07:49:08 GMT</pubDate>
            <atom:updated>2026-03-16T07:49:08.741Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hHDJDMIfFrwhWtqf86nHJA.png" /></figure><p>Most Kubernetes engineers believe that enabling Network Policies automatically secures their cluster. But here’s the uncomfortable truth:<br> <strong>Native Kubernetes Network Policies only control traffic at the IP and port level.</strong></p><ul><li>They cannot inspect HTTP requests.</li><li>They cannot enforce DNS-based policies.</li><li>They offer very little visibility into what is actually happening inside your cluster network, so troubleshooting becomes difficult.</li></ul><p>As microservice architectures grow more complex, these limitations become increasingly problematic. This is exactly where <strong>Cilium</strong> shines.</p><p>Built on <strong>eBPF</strong>, Cilium introduces a powerful model of <strong>identity-based, application-aware network security for Kubernetes, transforming how network policies are enforced in</strong> modern cloud-native environments.</p><p>Before we dive deeper into why Cilium Network Policies are considered a game-changer for Kubernetes networking, let’s first take a look at how native Kubernetes Network Policies work.</p><h4>Kubernetes Native Network Policy</h4><p>Kubernetes Network Policies provide a mechanism to control traffic flow between pods and pods to external endpoints within a cluster. They are primarily designed to implement <strong>basic network segmentation</strong> and enhance security by restricting unwanted communication between workloads.</p><p><strong>Key Capabilities of Kubernetes Native Network Policies:-</strong></p><ol><li><strong>Pod-to-Pod Traffic Control: </strong>Network Policies control how pods communicate within the cluster. Using label selectors, administrators can define which pods are allowed to send or receive traffic, thereby enforcing microservice isolation and securing service-to-service communication.</li><li><strong>Namespace-Based Traffic Restrictions: </strong>Network Policies can restrict communication between namespaces, ensuring workloads in one namespace cannot access services in another unless explicitly allowed. This helps enforce security in<strong> multi-tenant Kubernetes clusters.</strong></li><li><strong>Control Over Ingress and Egress Traffic: </strong>Kubernetes Network Policies support two main traffic directions:</li></ol><p><strong>Ingress policies:- </strong>Control incoming traffic to a pod.</p><p><strong>Egress policies:- </strong>Control outgoing traffic from a pod to other services or external endpoints.</p><p>This enables administrators to define <strong>fine-grained traffic flow rules</strong> within the cluster.</p><p>4. <strong>IP Block-Based Access Control: </strong>Network Policies can use IP blocks to allow or deny traffic from specific external IP ranges. This is useful when pods need to communicate with external services such as APIs, databases, or on-premise systems.</p><p><strong>Limitations of Native Kubernetes Network Policies:-</strong></p><ol><li><strong>Policies Are Namespace Scoped:- </strong>Native Network Policies are namespace-scoped, making it difficult to enforce consistent security policies across the entire cluster and manage access between multiple namespaces.</li><li><strong>No FQDN or DNS-Based Policies:- </strong>Kubernetes Network Policies cannot define rules based on <strong>domain names</strong>. For example, we cannot write policies like:</li></ol><pre>Allow access to api.github.com</pre><p>Instead, you must rely on <strong>static IP ranges</strong>, which can frequently change for external services.</p><p>3. <strong>No Application-Aware Security:- </strong>Native Network Policies cannot understand application protocols like <strong>HTTP, gRPC, Kafka, or DNS</strong>. They only filter traffic based on <strong>IP addresses and ports</strong>, without visibility into the actual application requests between services.</p><p>Kubernetes Network Policies provide essential traffic control but remain limited to Layer 3 and Layer 4 filtering. As microservice architectures become more complex, these limitations make it difficult to implement fine-grained security policies, which is why many organizations adopt advanced networking solutions like <strong>Cilium.</strong></p><h4>Cilium Network Policy CRDs</h4><p>Cilium introduces its own policy model using <strong>Custom Resource Definitions (CRDs)</strong> that extend Kubernetes networking capabilities. These CRDs allow administrators to define <strong>fine-grained security rules</strong> that go beyond the limitations of native Kubernetes Network Policies.</p><p>The two main policy types are:</p><ul><li><strong>CiliumNetworkPolicy (CNP)</strong> — Namespace scoped</li><li><strong>CiliumClusterwideNetworkPolicy (CCNP)</strong> — Cluster scoped</li></ul><p>Both policies support advanced features such as <strong>Layer 7 filtering, identity-based security, and DNS-aware rules</strong>, which are not available in native Kubernetes policies.</p><ol><li><strong>CiliumNetworkPolicy (CNP)</strong></li></ol><p>This is a <strong>namespace-scoped policy</strong> that controls traffic for workloads within a specific namespace.</p><p>It works similarly to Kubernetes native Network Policies, but provides additional capabilities such as:</p><ul><li>Layer 7 (application layer) filtering</li><li>DNS-based policies</li><li>Identity-based workload security</li><li>HTTP, gRPC, and Kafka protocol awareness</li></ul><p><strong>Example: Allow Only HTTP GET Requests Within Namespace</strong></p><pre>apiVersion: cilium.io/v2<br>kind: CiliumNetworkPolicy<br>metadata:<br>  name: allow-http-get<br>  namespace: prod<br>spec:<br>  endpointSelector:<br>    matchLabels:<br>      app: web<br>  ingress:<br>  - fromEndpoints:<br>    - matchLabels:<br>        app: frontend<br>    toPorts:<br>    - ports:<br>      - port: &quot;80&quot;<br>        protocol: TCP<br>      rules:<br>        http:<br>        - method: GET<br>          path: &quot;/&quot;</pre><p><strong>Example: Allow Only HTTP GET Requests In Another Namespace</strong></p><pre>apiVersion: cilium.io/v2<br>kind: CiliumNetworkPolicy<br>metadata:<br>  name: allow-http-get<br>  namespace: production<br>spec:<br>  endpointSelector:<br>    matchLabels:<br>      app: web<br>  ingress:<br>  - fromEndpoints:<br>    - matchLabels:<br>        app: manage<br>        k8s:io.kubernetes.pod.namespace: finance<br>    toPorts:<br>    - ports:<br>      - port: &quot;80&quot;<br>        protocol: TCP<br>      rules:<br>        http:<br>        - method: GET<br>          path: &quot;/payout&quot;</pre><p><strong>Example: FQDN-Based Cilium Network Policy</strong></p><pre>apiVersion: cilium.io/v2<br>kind: CiliumNetworkPolicy<br>metadata:<br>  name: allow-external-api<br>  namespace: production<br>spec:<br>  endpointSelector:<br>    matchLabels:<br>      app: frontend<br>  egress:<br>  - toFQDNs:<br>    - matchName: api.github.com<br>    toPorts:<br>    - ports:<br>      - port: &quot;443&quot;<br>        protocol: TCP</pre><p>2. <strong>CiliumClusterwideNetworkPolicy</strong></p><p>This policy works the same way as CiliumNetworkPolicy but is applied <strong>across the entire cluster</strong>, not limited to a single namespace. This is particularly useful for platform teams who want to enforce <strong>organisation-wide security rules</strong>.</p><p>Typical use cases include:</p><ul><li>Enforcing global security policies</li><li>Restricting access to sensitive services</li><li>Blocking external traffic to specific endpoints</li><li>Implementing cluster-wide zero-trust networking</li></ul><p>In many Kubernetes clusters, DNS communication must remain accessible for workloads to resolve service names and external domains. By using a <strong>cluster-wide policy</strong>, platform teams can ensure that DNS access to <strong>kube-dns</strong> is consistently allowed across the entire cluster while still maintaining strict network security controls.</p><p><strong>Example: Kube-DNS Cluster-Wide Policy</strong></p><pre>apiVersion: cilium.io/v2<br>kind: CiliumClusterwideNetworkPolicy<br>metadata:<br>  name: allow-dns-access<br>spec:<br>  endpointSelector: {}<br>  egress:<br>  - toEndpoints:<br>    - matchLabels:<br>        k8s:io.kubernetes.pod.namespace: kube-system<br>        k8s:k8s-app: kube-dns<br>    toPorts:<br>    - ports:<br>      - port: &quot;53&quot;<br>        protocol: ANY<br>      rules:<br>        dns:<br>        - matchPattern: &quot;*&quot;</pre><h4><strong>Conclusion</strong></h4><p>Native Kubernetes Network Policies provide a strong starting point for controlling traffic, but they are limited to basic IP- and port-based filtering. In modern microservices environments, these limitations make it difficult to enforce fine-grained, application-aware security. Cilium overcomes these gaps with capabilities like Layer 7 policies, DNS-aware rules, identity-based security, and deep observability. By leveraging eBPF, Cilium delivers a more scalable, secure, and intelligent approach to Kubernetes networking, making it a clear step forward from native policies.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and do not constitute professional advice. No warranty implied or given, and the user accepts that all information, contents, and opinions are my own and do not reflect the opinions of my employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed1e44bab595" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intent Over Control: Creating VKS Clusters Through GitHub Actions]]></title>
            <link>https://medium.com/@saurabhtandon13/intent-over-control-creating-vks-clusters-through-github-actions-69efb8a6797a?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/69efb8a6797a</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[vmware-vsphere]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 14:14:56 GMT</pubDate>
            <atom:updated>2026-02-09T14:14:56.541Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDR9ZGGmlcFrJYpT6gdRoA.png" /></figure><h3>Provisioning VMware Kubernetes Service (VKS) Clusters Using GitHub Actions</h3><p>Modern deployment strategies go beyond just using CI/CD for application releases — they also treat infrastructure creation with the same automated, code‑driven approach.</p><p>In this post, I’ll walk through a real-world workflow where <strong>GitHub Actions runners run inside Kubernetes</strong>, but <strong>do not own infrastructure creation</strong>. Instead, they act as orchestration clients that forward workload cluster requests to the <strong>Supervisor Cluster</strong>, which remains the single authority for cluster lifecycle management.</p><p>The system operates on a three-tiered Kubernetes structure:</p><ol><li><strong>Host Cluster</strong>: An existing Kubernetes cluster where the Actions Runner Controller (ARC) is installed. This cluster hosts the ephemeral runner pods.</li><li><strong>Supervisor Cluster: </strong>It is a management cluster that runs the ClusterAPI controllers, which are responsible for creating and managing the lifecycle of the workload cluster.</li><li><strong>Workload Cluster</strong>: A new VKS cluster that is dynamically created and configured by the GitHub Actions workflow managed by the Supervisor Cluster.</li></ol><h3>Advantages of Hosting GitHub Runners on a Kubernetes Cluster</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TiQ72qa2qdZuYazrXhnZLw.png" /></figure><h3>Setting Up Self-Hosted Runners with ARC</h3><h4>Prerequisites</h4><p>Before you begin, ensure you have the following:</p><ul><li>An existing Kubernetes cluster to host the GitHub Actions runners.</li><li>helm (v3+) installed on your local machine.</li><li>kubectl configured to access your host Kubernetes cluster.</li><li>A GitHub Personal Access Token (PAT) with repo scope to allow ARC to register runners.</li><li>Credentials for the VKS Supervisor Cluster (VCF_CLI_VSPHERE_PASSWORD stored as a GitHub secret).</li><li>We need to define the environment named <strong>failed-approval</strong>, as this is the main job that will execute in case of job failure.</li><li>vSphere Namespace is already provisioned</li><li>VKS Service 3.5+</li><li>git is already configured</li></ul><p>To run the workflows in this repository, you must first set up the Actions Runner Controller (ARC) and a runner scale set in your host Kubernetes cluster.</p><h4>1. Install Actions Runner Controller</h4><p>ARC is a Kubernetes controller that automates the management of self-hosted runner pods.</p><pre># Define the namespace for the controller<br>NAMESPACE=&quot;arc-systems&quot;<br><br># 1. Install ARC using the official Helm chart<br>helm install arc \<br>  --namespace &quot;${NAMESPACE}&quot; \<br>  --create-namespace \<br>  oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller<br><br># 2. Verify that the controller pods are running<br>kubectl get pods -n &quot;${NAMESPACE}&quot;<br># NAME                                                              READY   STATUS    RESTARTS   AGE<br># arc-gha-runner-scale-set-controller-64cc9f45f9-z8h2b   1/1     Running   0          60s</pre><h4>2. Install the Runner Scale Set</h4><p>The runner scale set defines how runner pods are created and scaled. It connects to your GitHub repository and listens for new jobs.</p><pre># 1. Define your configuration<br>INSTALLATION_NAME=&quot;arc-runner-vks&quot;<br>NAMESPACE=&quot;arc-runners&quot;<br>GITHUB_CONFIG_URL=&quot;https://github.com/&lt;username&gt;/&lt;repository-name&gt;&quot;<br>GITHUB_PAT=&quot;&lt;YOUR_GITHUB_PAT&gt;&quot; # Replace with your GitHub Personal Access Token<br><br># 2. Install the runner scale set using Helm<br>helm install &quot;${INSTALLATION_NAME}&quot; \<br>  --namespace &quot;${NAMESPACE}&quot; \<br>  --create-namespace \<br>  --set githubConfigUrl=&quot;${GITHUB_CONFIG_URL}&quot; \<br>  --set githubConfigSecret.github_token=&quot;${GITHUB_PAT}&quot; \<br>  oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set</pre><p>This creates a runner scale set named arc-runner-vks. When a job in this repository requires a runner with the label arc-runner-vksARC will automatically create a pod in the arc-runners namespace to execute it.</p><h3>GitHub Actions Workflow Details</h3><p>This architecture clearly separates automation from ownership. In this GitHub Actions workflow, execution is triggered either by commits to the main branch or by a manual run initiated from the GitHub console.</p><p>If the cluster creation job fails, a deletion job will be triggered and will wait for manual approval before running. To support this, we have created a failed-approval environment in the GitHub repository.</p><p><strong>Github Link:-</strong><a href="https://github.com/saurabhtandon13/vks-github-actions.git"> https://github.com/saurabhtandon13/vks-github-actions.git</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4gOER8R6Ax0dNof_xerecg.png" /></figure><h4>Workflow Jobs Description (.github/workflows/main.yaml)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*IGOgK2NriBSwX88be0PpeQ.png" /></figure><h4>Cluster and Addon Manifests</h4><p>There are three primary addon manifests used here, each playing a critical role, and they can be customised as needed.</p><p>After the cluster has been created, we automatically install <strong>Cert-Manager </strong>and <strong>Contour </strong>using the VKS Addon functionality, which is available starting from version 3.5.</p><p><strong>clustercreate.yaml</strong>: A Cluster API manifest that defines the VKS workload cluster. It specifies the Kubernetes version, control plane and worker node configurations, CNI/CSI settings, and VM classes. The workflow dynamically replaces WORKLOAD_CLUSTER_NAME and VSPHERE_NAMESPACE placeholders in this file.</p><p><strong>addons/cert-manager/addon-cert-manager.yaml</strong>: Manifest to install the cert-manager addon on the newly created workload cluster.</p><p><strong>addons/contour/addon-contour.yaml</strong>: Manifests to install the contour addon and configure its Envoy service as type LoadBalancer.</p><h4>Helper Scripts</h4><p>This workflow uses two helper scripts that perform the following operations.</p><p><strong>scripts/machine-status.sh</strong>: A robust shell script that polls the status of Machine objects in the specified namespace. It waits until all machines prefixed with the workload cluster name report a Ready condition or until a timeout is reached. This ensures the workflow proceeds only after the cluster infrastructure is fully provisioned.</p><p><strong>scripts/pod-status-check.sh</strong>: A script that polls all pods in a given namespace until they reach the Running state. It&#39;s used after addon installations to confirm that the components are healthy before the workflow continues.</p><h3>Workflow Execution</h3><p>To execute the workflow, ensure the prerequisites mentioned above are met:-</p><ol><li><strong>Fork the repository / Clone a repository.</strong></li></ol><pre>$ git clone https://github.com/saurabhtandon13/vks-github-actions.git</pre><p><strong>2. Include the environment variable details at the workflow or job level.</strong></p><p>These environment variables must be defined at the global level of the workflow, as they will be used by the downstream jobs.</p><pre>env:<br>  SUPERVISOR_IP: &quot;xxx.xxx.xxx.xxx&quot;  # Supervisor IP <br>  VCF_CLI_VSPHERE_USERNAME: &quot;sample@example.com&quot; # username<br>  VCF_CLI_VSPHERE_PASSWORD: ${{ secrets.VCF_CLI_VSPHERE_PASSWORD }}<br>  WORKLOAD_CLUSTER_NAME: &quot;sample&quot;  # Workload cluster name <br>  VSPHERE_NAMESPACE: &quot;example&quot;     # vSphere Namespace<br><br>jobs:<br>  Downloading-Plugin:                       # name of the job<br>    runs-on: arc-runner-vks                 # Runer location<br>    env:<br>      KUBECTL_VERSION: &quot;v1.34.0&quot;            # local Environment variable <br>      VCF_CLI_VERSION: &quot;v9.0.1&quot;             # VCF CLI version</pre><p>3. Run the below command to commit the change to git and push the code to GitHub</p><pre>$ git add .<br><br>$ git commit -m &quot;Executing the Workflow&quot;<br><br>$ git push origin</pre><p>4. This will automatically trigger the workflow when code is pushed to the main branch. You can view the job execution under the <strong>Actions tab</strong> in the repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0q7Am8cfBCb9ynUtQNidtg.png" /></figure><h3>Conclusion</h3><p>Running GitHub Actions runners inside Kubernetes is powerful on its own.<br> Combining that with <strong>VKS Supervisor–controlled cluster lifecycle</strong> is what makes the platform truly enterprise-ready.</p><p>If you’re building a platform where <strong>security, governance, and automation must coexist</strong>, this model is worth serious consideration.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and do not constitute professional advice. No warranty implied or given, and the user accepts that all information, contents, and opinions are my own and do not reflect the opinions of my employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69efb8a6797a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Policy Automation Made Easy: Installing Kyverno on Conformant Kubernetes Clusters (VKS)]]></title>
            <link>https://medium.com/@saurabhtandon13/policy-automation-made-easy-installing-kyverno-on-conformant-kubernetes-clusters-vks-f1e4ca2e0670?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1e4ca2e0670</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[vmware]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Fri, 28 Nov 2025 12:47:50 GMT</pubDate>
            <atom:updated>2025-11-28T12:47:50.688Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aio4NPA--oYHRr3-jVq0Ag.png" /></figure><h3>What is Policy as Code</h3><p>In a Kubernetes environment, things move fast. Developers / SREs / Infrastructure Admins are constantly deploying new clusters/workloads, modifying configurations, and scaling applications. With so much automation and so many moving parts in Kubernetes, it&#39;s difficult to manually ensure that everything in the cluster adheres to your organisation’s rules, security standards, and best practices. That’s where <strong>Policy as Code</strong> comes in.</p><p>Policy as Code simply means writing the cluster rules and security checks in the form of code, usually in <strong>YAML</strong>, so that they can be automatically applied, tested, and enforced across the entire Kubernetes environment. By defining these rules as policies, Kubernetes will automatically validate or block any workload that doesn’t follow them.</p><h3>Kyverno as a Game Changer for Kubernetes Policies</h3><p>As of today, it is an <strong>incubating project in the CNCF landscape</strong>, yet its adoption has surged recently because it has fundamentally changed how teams approach <strong>Policy as Code in Kubernetes</strong>. While other tools in the market follow a similar strategy, they often face adoption challenges, as enforcing policies using them in Kubernetes typically requires learning complex policy languages or using tools that don’t align naturally with the Kubernetes way of working.</p><p>Kyverno flips the experience by making policy enforcement simple, intuitive, and completely Kubernetes-native. Kyverno uses familiar YAML definitions, the same ones used for Deployments, Pods, and ConfigMaps, making it accessible to both developers and cluster operators. Its simplicity, power, and native design make it one of the most impactful tools in the Kubernetes policy landscape today.</p><h3>Inside Kyverno: Core Architecture and Components</h3><p>A <strong>Webhook </strong>in Kubernetes is an HTTP callback that lets the API server talk to an external service whenever certain API events happen, so that the service can inspect or even influence the request before Kubernetes accepts it. These are part of Kubernetes <strong>admission and authorisation plumbing</strong>: they are used to extend built‑in behaviour with custom logic without having to fork or modify Kubernetes itself.</p><p>In Kubernetes, there are two most important webhooks:-</p><ol><li><strong>Mutating webhook:- </strong>It is like an auto‑formatter for the cluster. It looks at the incoming object, and it can modify the request, such as by adding labels, injecting sidecars, setting default resource limits, or tweaking security settings before it is finally implemented on the cluster.</li><li><strong>Validating webhook:- </strong>It is more of a gatekeeper that receives the final version of the object (after all mutations) and decides whether it should be allowed or rejected. If the webhook says no, the request is denied, and nothing changes in the cluster.</li></ol><h4><strong>Request Workflow with Kyverno</strong></h4><p>The architecture might look complex at first, but once you break it down, it becomes clear how Kyverno enforces policies smoothly and automatically.</p><p>Kyverno plugs itself directly into this admission workflow by acting as both a <strong>mutating</strong> and <strong>validating</strong> admission controller. It can intercept requests before they are applied to the cluster, and it can either modify them, validate them, or reject them based on the policies defined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B1CwoBJxlM-t1BlbXXjqsQ.png" /></figure><p>Inside Kyverno, several controllers work together to ensure the policies are implemented successfully and quickly without delays.</p><ol><li><strong>Admission Controller:- </strong>It is an enforcement engine that receives admission review requests from the Kubernetes API server during both the mutating and validating phases. The controller checks the incoming resource against Kyverno policies and determines whether to mutate it, allow it, or block it.</li><li><strong>Webhook Controller:- </strong>The webhook controller keeps the admission webhooks in sync with the policies so that the API server sends only the right requests to Kyverno. It watches the policies we have defined and, based on what kinds, namespaces, and operations they target, it programs the Kubernetes API server’s MutatingWebhookConfiguration and ValidatingWebhookConfiguration objects accordingly.​</li><li><strong>Cert Renewer</strong>:- Since admission webhooks require TLS certificates, Kyverno includes a cert-manager-like controller that automatically generates and renews the internal certificates needed for secure communication between the API server and Kyverno’s admission components. This ensures uninterrupted policy enforcement.</li><li><strong>Cleanup Controller</strong>:- It includes a Cleanup Policy feature that allows the automatic deletion of resources based on rules. The cleanup controller monitors these rules and ensures resources matching the cleanup criteria are removed.</li><li><strong>Report Controllers:- </strong>These controllers are responsible for generating policy and ephemeral reports. Instead of only validating resources during admission, it also scans existing resources in the background and produces reports that show which objects comply and which do not. These reports are essential for audits, compliance checks, and cluster visibility.</li><li><strong>Background Controller:- </strong>While the admission controller handles real-time checks, the background controller continuously evaluates existing resources in the cluster. This ensures that Kyverno applies policies not only when resources are created or modified, but also retroactively to objects already running. This is very useful for cluster-wide governance.</li><li><strong>Engine:</strong>- At the core of Kyverno is the Engine, this component evaluates all policies and executes the appropriate action (validate, mutate, generate, verify image, or clean up). Every controller within Kyverno depends on the Engine to process the logic defined in policies.</li></ol><h3>Prerequisites for Installing Kyverno</h3><ol><li>The workload cluster should be up and running</li><li>Helm package manager should be installed on Jumphost</li><li>Kubectl CLI to access the cluster</li></ol><h3>Installation using Helm Package</h3><pre># Checking the nodes status <br><br>~ &gt; kubectl get nodes                                                                                                                                                                                                                                              kube atom-login:atom-wl/atom root@globalmachine 12:18:51<br>NAME                                     STATUS   ROLES           AGE    VERSION<br>atom-wl-node-pool-01-k6xgx-bvgpf-8rnnn   Ready    &lt;none&gt;          3d2h   v1.34.1+vmware.1<br>atom-wl-node-pool-01-k6xgx-bvgpf-wj9md   Ready    &lt;none&gt;          3d2h   v1.34.1+vmware.1<br>atom-wl-sf8jf-2jk5r                      Ready    control-plane   3d2h   v1.34.1+vmware.1<br>atom-wl-sf8jf-cszn4                      Ready    control-plane   3d2h   v1.34.1+vmware.1<br>atom-wl-sf8jf-dqggk                      Ready    control-plane   3d2h   v1.34.1+vmware.1<br><br># Adding the Helm Repository<br><br>~ &gt; helm repo add kyverno https://kyverno.github.io/kyverno/                                                                                                                                                                                                       kube atom-login:atom-wl/atom root@globalmachine 12:20:27<br>&quot;kyverno&quot; has been added to your repositories<br><br># Updating the Helm Repo<br><br>~ &gt; helm repo update                                                                                                                                                                                                                                               kube atom-login:atom-wl/atom root@globalmachine 12:21:08<br>Hang tight while we grab the latest from your chart repositories...<br>...Successfully got an update from the &quot;kyverno&quot; chart repository<br>...Successfully got an update from the &quot;nvidia&quot; chart repository<br>Update Complete. ⎈Happy Helming!⎈<br><br># Listing the  Helm Repo<br>~ &gt; helm repo list                                                                                                                                                                                                                                                 kube atom-login:atom-wl/atom root@globalmachine 12:21:54<br>NAME    URL<br>nvidia  https://helm.ngc.nvidia.com/nvidia<br>kyverno https://kyverno.github.io/kyverno/</pre><pre># Kyverno Installation <br><br>~ &gt; helm install kyverno kyverno/kyverno -n kyverno --create-namespace <br>                                                                                                                                                                                            kube atom-login:atom-wl/atom root@globalmachine 12:22:04<br>level=WARN msg=&quot;unable to find exact version; falling back to closest available version&quot; chart=kyverno requested=&quot;&quot; selected=3.6.0<br>NAME: kyverno<br>LAST DEPLOYED: Fri Nov 28 12:23:58 2025<br>NAMESPACE: kyverno<br>STATUS: deployed<br>REVISION: 1<br>DESCRIPTION: Install complete<br>NOTES:<br>Chart version: 3.6.0<br>Kyverno version: v1.16.0<br><br>Thank you for installing kyverno! Your release is named kyverno.<br><br>The following components have been installed in your cluster:<br>- CRDs<br>- Admission controller<br>- Reports controller<br>- Cleanup controller<br>- Background controller<br><br><br>⚠️  WARNING: Setting the admission controller replica count below 2 means Kyverno is not running in high availability mode.<br><br><br>⚠️  WARNING: PolicyExceptions are disabled by default. To enable them, set &#39;--enablePolicyException&#39; to true.<br><br>💡 Note: There is a trade-off when deciding which approach to take regarding Namespace exclusions. Please see the documentation at https://kyverno.io/docs/installation/#security-vs-operability to understand the risks.<br><br># Validating the Installation<br><br>~ &gt; kubectl get pods -n kyverno      <br>                                                                                                                                                                                                                              kube atom-login:atom-wl/atom root@globalmachine 12:25:17<br>NAME                                             READY   STATUS    RESTARTS   AGE<br>kyverno-admission-controller-5d444679f-5rhq8     1/1     Running   0          80s<br>kyverno-background-controller-674697f678-jvlwv   1/1     Running   0          80s<br>kyverno-cleanup-controller-6c85dc7dc-6mcfc       1/1     Running   0          80s<br>kyverno-reports-controller-54d6666dc7-p5txw      1/1     Running   0          80s<br>                                                                                                                                                                                                                                                                                     7s root@globalmachine 12:24:04<br><br>**** All the Pods should be up and running ******</pre><h3>Conclusion</h3><p>In this blog, we highlighted how Kyverno stands out as one of the simplest yet most powerful tools for securing and governing Kubernetes clusters. Its Kubernetes-native approach, ease of use, and rich feature set make it an excellent choice for enterprises looking to ensure their clusters are not just operational, but secure, automated, and truly production-ready.</p><p>In the next blogs, we will talk about the ease of creation of Kyverno policies such as Enforce Resource Limits, Verify Signed Images, Enforce Network Policies and other use cases.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and do not constitute professional advice. No warranty implied or given, and the user accepts that all information, contents, and opinions are my own and do not reflect the opinions of my employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1e4ca2e0670" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Migrate Stateless Applications in a CNCF-Conformant Kubernetes Environment ( TKGm → VKS on…]]></title>
            <link>https://medium.com/@saurabhtandon13/how-to-migrate-stateless-applications-in-a-cncf-conformant-kubernetes-environment-tkgm-vks-on-de96e7df846b?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/de96e7df846b</guid>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[velero]]></category>
            <category><![CDATA[backup]]></category>
            <category><![CDATA[vcf]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 18:55:32 GMT</pubDate>
            <atom:updated>2025-11-17T07:26:00.722Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Migrate Stateless Applications in a CNCF-Conformant Kubernetes Environment <strong>( TKGm → VKS on VCF 9.0)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KRGe9GZWjaeQ6rD1RO3aQA.png" /></figure><h4>Demystifying Applications in Kubernetes</h4><p>In Kubernetes, an <strong>application</strong> refers to a collection of one or more containers that work together to deliver a specific business function or service. These containers are organised, managed, and scaled by Kubernetes using its various resources such as <strong>Pods</strong>, <strong>Deployments</strong>, <strong>Services</strong>, and <strong>Ingress</strong>. An application in Kubernetes isn’t just a single container or microservice; it’s the combination of all the components (like backend APIs, databases, frontend services, and networking policies) that together make the app function as a cohesive unit.</p><h4>Different Types of Applications in Kubernetes</h4><p>Kubernetes provides a flexible platform to run a wide range of applications, such as frontend web, AI/ML, and data-intensive applications and many more. These applications are generally categorised based on how they <strong>manage data, state, and dependencies.</strong> The main types of applications we encounter during our discussion with clients are:-</p><ol><li><strong>Stateless Applications:</strong>- These applications don’t store any data or any information within the pod itself.</li><li><strong>Stateful Applications:- </strong>These applications maintain data or session state across requests. They often require persistent storage and careful scaling strategies to ensure data integrity.</li><li><strong>Batch or Job-Based Applications:- </strong>These are temporary or time-bound workload activities that run specific tasks and exit when complete. They’re used for processing data, running scheduled jobs.</li><li><strong>Daemon-Based Applications:- </strong>These applications run one instance of a pod on every node in the cluster. They’re typically used for infrastructure-level operations such as logging, monitoring, or networking.</li></ol><h4>Ways to Do Stateless Application Migration in Kubernetes</h4><p>Application migration in a cloud native landscape is not a straightforward decision, as it really depends on many factors such as <strong>existing infrastructure, application architecture, Kubernetes version, CustomResourceDefinition, and modernisation goals.</strong> Each stateless application migration comes with its own level of complexity, benefits, and effort.</p><p>Here we will discuss the common migration strategy where the application is already running on a conformant Kubernetes platform:-</p><ol><li><strong>Manual Migration:- </strong>This is the most basic approach, where teams manually deploy the application on the target Kubernetes clusters using their existing YAML files. However, this method comes with its own challenges. For example, if any changes were made directly to the running application, those modifications might not be reflected in the YAML files, leading to <strong>inconsistencies during application restoration.</strong></li></ol><p>Additionally, suppose any parameters — such as the image registry or storage class need to be updated for the destination environment. In that case, those changes must be made manually before deploying the application on the target cluster.</p><p><strong>2. Using Migration Tools: </strong>Several tools can simplify and automate parts of the migration process, reducing manual effort. Commonly used tools are:-</p><ul><li><strong>Velero:</strong> This is the most commonly used open-source tool to back up and restore Kubernetes workloads between clusters. In this blog post, we will use Velero to take the namespace-level backup and restore on the destination cluster.</li><li><strong>Veeam Kastan:-</strong> This is an enterprise-grade solution that provides comprehensive backup and restore capabilities, along with advanced features such as snapshot consistency and granular recovery. To install Veeam on a Kubernetes cluster, refer to the following link.</li></ul><p><a href="https://medium.com/@saurabhtandon13/kasten-k10-by-veeam-installation-on-vks-vmware-kubernetes-service-3becbb6e0e4a">Installation &amp; Configuration of Veeam Kasten on VMware Kubernetes Service(VKS)</a></p><p><strong>3. Using CI/CD Pipelines:- </strong>In this approach, migration is integrated into a <strong>DevOps pipeline</strong>. The process of building, testing, and deploying applications into Kubernetes is automated using tools like <strong>Jenkins</strong>, <strong>GitLab CI</strong>, <strong>and Argo CD.</strong></p><h4><strong>Why Velero</strong>?</h4><p>Velero stands out as a <strong>comprehensive, Kubernetes-native backup and recovery solution</strong> that integrates seamlessly with modern, cloud-native environments. Its flexibility, multi-cloud support, and ease of use make it the preferred choice for platform engineers who need reliable <strong>backup, restore, and migration</strong> capabilities — all while maintaining the declarative, automated nature of Kubernetes itself.</p><p>Velero is purpose-built for Kubernetes — it understands Kubernetes objects, namespaces, Custom Resource Definitions (CRDs), and storage classes. Instead of treating the cluster as a black box, it backs up <strong>both cluster metadata (like deployments, services, and roles)</strong> and <strong>persistent volume data</strong>, ensuring a full and consistent restore.</p><h4>Kubernetes Application Migration: Preparation Steps and Common Scenarios</h4><p>In this migration blog, a few assumptions have been made regarding the existing setup. Please review the prerequisites and requirements thoroughly to ensure a smooth and successful application migration.</p><ol><li>Both the source and destination clusters are running the same Kubernetes version. Any API version mismatch between clusters can cause the application migration to fail. For this demonstration, <strong>Kubernetes version 1.33 </strong>and <strong>Velero Version 1.16.2 </strong>are being used.</li><li>All application-related <strong>Custom Resource Definitions (CRDs)</strong> must be pre-installed on the destination Kubernetes cluster. For instance, if the application uses <strong>cert-manager</strong> for certificate issuance, ensure that cert-manager is already deployed and configured before restoring the application.</li><li>Since <strong>Velero</strong> requires an <strong>S3-compatible object storage</strong> for backups and restores, ensure that the storage is already set up and accessible from both the source and destination clusters. This shared accessibility is essential for a seamless migration process. In this demo, we will use MinIO as an S3-compatible object storage.</li><li>In this scenario, we’ve assumed that the <strong>Harbor container registries</strong> for the source and destination clusters are <strong>different.</strong> However, it’s also possible to use the <strong>same registry</strong> for both environments, depending on your deployment setup and access policies.</li><li>In this example, we’ll be using <strong>conformant Kubernetes clusters</strong>, specifically <strong>TKGm (version 2.5.4)</strong>, which runs <strong>Kubernetes version 1.33</strong>, where the <strong>Online Boutique</strong> application is currently deployed. The goal is to migrate this application to a <strong>VKS (VMware Kubernetes Service)</strong> cluster, which is also running <strong>Kubernetes version 1.33</strong>.</li><li>Ensure that <strong>cluster resource utilisation</strong> is within optimal limits before starting the migration. If utilisation is high and <strong>Machine Health Check (MHC)</strong> is enabled on the clusters, it could trigger automatic node recreation during the backup or restore process, potentially disrupting the migration workflow.</li><li>In our example, the source cluster runs the <strong>AKO Ingress Controller</strong>, and the destination cluster is configured with the <strong>Contour Ingress Controller.</strong></li></ol><h4>Velero Setup and Configuration on Kubernetes</h4><p>Ensure that the <strong>cluster is in a healthy state</strong> and that all nodes are in the <strong>Ready</strong> status before proceeding. Additionally, review the <strong>Velero version compatibility matrix</strong> to verify that the Velero release you plan to install is supported for your Kubernetes version.</p><p><a href="https://github.com/vmware-tanzu/velero#velero-compatibility-matrix">https://github.com/vmware-tanzu/velero#velero-compatibility-matrix</a></p><pre># kubectl get nodes<br>NAME                                    STATUS   ROLES           AGE   VERSION<br>tkg-workload-controlplane-62srj-92fws   Ready    control-plane   8h    v1.33.1+vmware.1<br>tkg-workload-md-0-vwbjj-vcrxd-bff6l     Ready    &lt;none&gt;          8h    v1.33.1+vmware.1<br>tkg-workload-md-0-vwbjj-vcrxd-p2r5n     Ready    &lt;none&gt;          8h    v1.33.1+vmware.1<br></pre><p>Both <strong>TKGm</strong> and <strong>VKS</strong> include <strong>Velero binaries</strong> as part of their standard supported packages. In this setup, we’ll be leveraging the built-in Velero package provided by these platforms.</p><p><strong>Velero Version:- 1.16.2</strong></p><pre># wget https://packages.broadcom.com/artifactory/vsphere-distro/vsphere/supervisor/packages/2025.8.19/velero-linux-v1.16.2+vmware.1.gz<br><br># ls -alrt<br>total 28952<br>-rw-r--r-- 1 root root 29635072 Aug 21 08:49 velero-linux-v1.16.2+vmware.1.gz<br><br># gunzip velero-linux-v1.16.2+vmware.1.gz<br><br># chmod +x velero-linux-v1.16.2+vmware.1<br><br># cp velero-linux-v1.16.2+vmware.1 /usr/local/bin/velero<br><br># velero version<br>Client:<br>        Version: v1.16.2_vmware.1<br>        Git commit: a60808256d36a77a42e1ebc160ee8117477a83fa-modified</pre><pre># tanzu package repository add standard-repo --url projects.packages.broadcom.com/vsphere/supervisor/packages/2025.8.19/vks-standard-packages:v2025.8.19 -n tkg-system<br><br>Waiting for package repository to be added<br><br>11:36:09AM: Waiting for package repository reconciliation for &#39;standard-repo&#39;<br>11:36:16AM: Fetch started<br>11:36:17AM: Fetching<br>            | apiVersion: vendir.k14s.io/v1alpha1<br>            | directories:<br>            | - contents:<br>            |   - imgpkgBundle:<br>            |       image: projects.packages.broadcom.com/vsphere/supervisor/packages/2025.8.19/vks-standard-packages@sha256:ff040d08cbb5aebaee145329979ff14699ffb1496d78a8cedb0b7e9b3d04683f<br>            |       tag: v2025.8.19<br>            |     path: .<br>            |   path: &quot;0&quot;<br>            | kind: LockConfig<br><br># tanzu package repository list -A<br><br>  NAMESPACE   NAME           SOURCE                                                                                                 STATUS<br>  tkg-system  standard-repo  (imgpkg)                                                                                               Reconcile succeeded<br>                             projects.packages.broadcom.com/vsphere/supervisor/packages/2025.8.19/vks-standard-packages:v2025.8.19<br><br># tanzu package available list -n tkg-system<br><br>  NAME                                            DISPLAY-NAME<br>  autoscaler.kubernetes.vmware.com                autoscaler<br>  cert-manager.kubernetes.vmware.com              cert-manager<br>  cert-manager.tanzu.vmware.com                   cert-manager<br>  cluster-autoscaler.tanzu.vmware.com             autoscaler<br>  contour.kubernetes.vmware.com                   contour<br>  contour.tanzu.vmware.com                        contour<br>  external-csi-snapshot-webhook.tanzu.vmware.com  external-csi-snapshot-webhook<br>  external-dns.kubernetes.vmware.com              external-dns<br>  external-dns.tanzu.vmware.com                   external-dns<br>  fluent-bit.kubernetes.vmware.com                fluent-bit<br>  fluent-bit.tanzu.vmware.com                     fluent-bit<br>  harbor.kubernetes.vmware.com                    harbor<br>  harbor.tanzu.vmware.com                         harbor<br>  istio.kubernetes.vmware.com                     istio<br>  prometheus.kubernetes.vmware.com                prometheus<br>  prometheus.tanzu.vmware.com                     prometheus<br>  telegraf.kubernetes.vmware.com                  telegraf<br>  telegraf.tanzu.vmware.com                       telegraf<br>  velero.kubernetes.vmware.com                    velero<br><br># tanzu package available list velero.kubernetes.vmware.com<br><br>  NAME                          VERSION                RELEASED-AT<br>  velero.kubernetes.vmware.com  1.16.1+vmware.1-vks.1  2025-05-19 12:30:00 +0000 UTC<br>  velero.kubernetes.vmware.com  1.16.2+vmware.1-vks.1  2025-08-05 12:30:00 +0000 UTC</pre><p>Generating the default data-values file for the Velero</p><pre># tanzu package available get velero.kubernetes.vmware.com/1.16.2+vmware.1-vks.1 --default-values-file-output velero-data-values.yaml</pre><p>Default value file for Velero Package</p><pre># annotations:<br># backupRepository:<br>#   config:<br>#     cacheLimitMB: 5000<br>#     fullMaintenanceInterval: normalGC<br>#   defaultMaintenanceFrequency: 1h<br>#   maintenanceJobConfig:<br>#     globalConfig:<br>#       loadAffinity: []<br>#       podResources:<br>#         cpuLimit: &quot;0&quot;<br>#         cpuRequest: &quot;0&quot;<br>#         memoryLimit: &quot;0&quot;<br>#         memoryRequest: &quot;0&quot;<br># backupStorageLocation:<br>#   bucket: &quot;&quot;<br>#   caCert: &quot;&quot;<br>#   config:<br>#     region: minio<br>#     s3ForcePathStyle: &quot;true&quot;<br>#     s3Url: http://127.0.0.1:9000<br>#   credential: &quot;&quot;<br>#   prefix: &quot;&quot;<br>#   provider: aws<br># features:<br>#   - EnableCSI<br># labels:<br># logLevel: info<br># namespace: velero<br># nodeAgent:<br>#   config:<br>#     backupPVC: []<br>#     loadAffinity: []<br>#     loadConcurrency:<br>#       globalConfig: 1<br>#       perNodeConfig: []<br>#     podResources:<br>#       cpuLimit: &quot;0&quot;<br>#       cpuRequest: &quot;0&quot;<br>#       memoryLimit: &quot;0&quot;<br>#       memoryRequest: &quot;0&quot;<br>#     restorePVC:<br>#       ignoreDelayBinding: false<br>#   dataMoverPrepareTimeout: 30m<br>#   enableOnLinux: true<br>#   enableOnWindows: false<br>#   privileged: false<br>#   resources:<br>#     cpuLimit: &quot;0&quot;<br>#     cpuRequest: &quot;0&quot;<br>#     memoryLimit: &quot;0&quot;<br>#     memoryRequest: &quot;0&quot;<br># priorityClassName: &quot;&quot;<br># serviceAccount:<br>#   annotations:<br>#   name: &quot;&quot;<br># velero:<br>#   garbageCollectionFrequency: 1h<br>#   itemBlockWorkerCount: 1<br>#   plugins: []<br>#   podVolumeOperationTimeout: 4h<br>#   resources:<br>#     cpuLimit: 1000m<br>#     cpuRequest: 500m<br>#     memoryLimit: 512Mi<br>#     memoryRequest: 128Mi<br>~</pre><p>Modified the default-values file as per the environment</p><pre># cat velero-data-values.yaml<br><br># annotations:<br># backupRepository:<br>#   config:<br>#     cacheLimitMB: 5000<br>#     fullMaintenanceInterval: normalGC<br>#   defaultMaintenanceFrequency: 1h<br>#   maintenanceJobConfig:<br>#     globalConfig:<br>#       loadAffinity: []<br>#       podResources:<br>#         cpuLimit: &quot;0&quot;<br>#         cpuRequest: &quot;0&quot;<br>#         memoryLimit: &quot;0&quot;<br>#         memoryRequest: &quot;0&quot;<br>backupStorageLocation:<br>  bucket: &quot;online-boutique-backup&quot;<br>  caCert: |<br>    -----BEGIN CERTIFICATE-----<br>    MIIF2zCCA8OgAwIBAgIUQYdWExcm7tniVblDugVq89hhkzcwDQYJKoZIhvcNAQEN<br>    BQAwYjELMAkGA1UEBhMCQ04xDjAMBgNVBAgMBUluZGlhMQ4wDAYDVQQHDAVJbmRp<br>    YTEQMA4GA1UECgwHZXhhbXBsZTERMA8GA1UECwwIUGVyc29uYWwxDjAMBgNVBAMM<br>    BW1pbmlvMB4XDTI1MTExMDA5NTQzNFoXDTM1MTEwODA5NTQzNFowYjELMAkGA1UE<br>    BhMCQ04xDjAMBgNVBAgMBUluZGlhMQ4wDAYDVQQHDAVJbmRpYTEQMA4GA1UECgwH<br>    ZXhhbXBsZTERMA8GA1UECwwIUGVyc29uYWwxDjAMBgNVBAMMBW1pbmlvMIICIjAN<br>    BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtMv5m2BPrmdx5LCsyAzbfP3usipP<br>    sgd4jebAqa8CcVki1u+/31CfYwzCLhF5vRsYEO6K3FTb3H5hs92sQ0d/2I3uvpfN<br>    sSPhOYGuVWO0x1XBlvMh2YGl9TXE/s7zAQuxhgWg7PjC+finz3WTGJKz+OnJcjHh<br>    J097OizxVlDLWlD5Kd11cqep4Name4uOARNvhIrRu/BVzvxOCHCwBKog8Y+plYOi<br>    Hz6rHWLDP/mcG8+AAAysP7DK47vgun4Pw7VK+4967i3FKvnsxx/LBGL6xV6HYJ5T<br>    +TdqgW4R6MW/JxBfgvLuFq0nc7FyqjSHwtJWyrA3/v90J9sM2IULszqzaQH88cbE<br>    c+zTbfA0RzASxO58zTrLkS4bHPY75XdJe2M+Hvw8iChbvl/4P2bW+qZ14tY7PhOY<br>    60SQyZRMPAG89rnuLuSahMaRXvQjiYqCCUy5ZBAP5qSWF5Gcc996XQiT3BxmvUva<br>    UJEwrC0iU5pMkxyAPlAodgG2lWZe3/FUOqwFHUYlie7rkDmiJd/wyO2FGyB2iZHe<br>    I1PZTOJ2dI0Mcn1uAn56IMUNPuqrkhWTSoMhwbARlP3RVxOh9DEqEcswc3q6780R<br>    nnKqVGwmbBfoe7MaD+aIukuY9gmKlD8RvxGvohGHYCqenY2UJQ9oV5HhlmhOnOco<br>    Pm/BVx6cMC+QlqMCAwEAAaOBiDCBhTAfBgNVHSMEGDAWgBSPSV0qGCJk507S1Mk4<br>    zp6hr70rVzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE8DATBgNVHSUEDDAKBggrBgEF<br>    BQcDATAWBgNVHREEDzANggVtaW5pb4cECp6APjAdBgNVHQ4EFgQUFim04oz9BuXJ<br>    3VfrRv6WkHdLKp0wDQYJKoZIhvcNAQENBQADggIBAIl5KNEF5reUOJkVmY2LvSR/<br>    wzja+nts/PInPoDY2xZ6myM1yt9JwqL3ILDQLSSn6lRUxpicQRHfxjg23d3NoLm8<br>    si7D6QJEznlw2hGTIociuPsVb/Q5Exzm1sHJ2/RtCcHXoHfszE2IIEEJ8e+O2q79<br>    PUhqnTNtkUsbhgz6CxsvCC71g27YonNkcTVsLVY0QaUInGFHedomejH+pvpQskK1<br>    bh+69snYRiCyd2canPhCRL8xzEi8PcaYrAerNw/4k4sIahCrjtedsacdBdebRcQ8<br>    7wLxraDzCgHe8PUZ/NlfKimQXerEUtN9Xb0WPDLQWleRpVniZK2/DTtJky9fPvmi<br>    PVkQ67Ow8gE5PNl/OnS6DFQuqOnR8rxFcT9FgeoVaMTvoDQ3IhtyIR5yZ7WShtlO<br>    h9ADtxT05ONaUrCCVXfliMDmp0xsTtskW4dCjSuP6RPssumIGx4arhBoLIfp5D/X<br>    60hZShYE+UTniegfJMeuvjc5tIVIX8omQwme6uBdUGTbT50aocsad4gut1i8PT+0<br>    WzRetbPvUiHgf5zTUNr6Cq5Eje7h3PFbhphnIjeeiOPFEjdVGICloL75tbrxRxDs<br>    /c85IAJ4zF1BWQ6ZeTkKRAl4l+nM6HrrQYoVA54JOaAfKxzVpr4SWYr4yZMvNnzS<br>    s3nbnnH6aV/1k6qBAwP9<br>    -----END CERTIFICATE-----<br>  config:<br>    region: minio<br>    s3ForcePathStyle: &quot;true&quot;<br>    s3Url: https://&lt;xxxxxx&gt;:9000 # minio <br>    credential: |<br>      [default]<br>      aws_access_key_id=&lt;xxxxxx&gt;<br>      aws_secret_access_key=&lt;xxxxxx&gt;<br>#   prefix: &quot;&quot;<br>  provider: aws<br>features:<br>  - EnableCSI<br># labels:<br># logLevel: info<br>namespace: velero<br># nodeAgent:<br>#   config:<br>#     backupPVC: []<br>#     loadAffinity: []<br>#     loadConcurrency:<br>#       globalConfig: 1<br>#       perNodeConfig: []<br>#     podResources:<br>#       cpuLimit: &quot;0&quot;<br>#       cpuRequest: &quot;0&quot;<br>#       memoryLimit: &quot;0&quot;<br>#       memoryRequest: &quot;0&quot;<br>#     restorePVC:<br>#       ignoreDelayBinding: false<br>#   dataMoverPrepareTimeout: 30m<br>#   enableOnLinux: true<br>#   enableOnWindows: false<br>#   privileged: false<br>#   resources:<br>#     cpuLimit: &quot;0&quot;<br>#     cpuRequest: &quot;0&quot;<br>#     memoryLimit: &quot;0&quot;<br>#     memoryRequest: &quot;0&quot;<br># priorityClassName: &quot;&quot;<br># serviceAccount:<br>#   annotations:<br>#   name: &quot;&quot;<br># velero:<br>#   garbageCollectionFrequency: 1h<br>#   itemBlockWorkerCount: 1<br>#   plugins: []<br>#   podVolumeOperationTimeout: 4h<br>#   resources:<br>#     cpuLimit: 1000m<br>#     cpuRequest: 500m<br>#     memoryLimit: 512Mi<br>#     memoryRequest: 128Mi</pre><p>Installation of the Velero package</p><pre># kubectl create namespace velero-package<br><br># tanzu package install velero --namespace velero-package --package velero.kubernetes.vmware.com --version 1.16.2+vmware.1-vks.1 --values-file velero-data-values.yaml<br><br>12:21:32PM: Creating service account &#39;velero-velero-package-sa&#39;<br>12:21:32PM: Creating cluster admin role &#39;velero-velero-package-cluster-role&#39;<br>12:21:32PM: Creating cluster role binding &#39;velero-velero-package-cluster-rolebinding&#39;<br>12:21:32PM: Creating secret &#39;velero-velero-package-values&#39;<br>12:21:33PM: Creating overlay secrets<br>12:21:33PM: Creating package install resource<br>12:21:33PM: Waiting for PackageInstall reconciliation for &#39;velero&#39;<br>12:21:40PM: Fetch started<br>12:21:41PM: Fetching<br>            | apiVersion: vendir.k14s.io/v1alpha1<br>            | directories:<br>            | - contents:<br>            |   - imgpkgBundle:<br>            |       image: projects.packages.broadcom.com/vsphere/supervisor/packages/2025.8.19/vks-standard-packages@sha256:a11c01f421599d50df6ecaae7c05ee454314e955a48fbf33f3da3b614822dbb4<br>            |     path: .<br>            |   path: &quot;0&quot;<br>            | kind: LockConfig<br>            |<br>12:21:41PM: Fetch succeeded<br>12:21:41PM: Template succeeded<br><br># kubectl get pods -n velero<br><br>NAME                     READY   STATUS    RESTARTS   AGE<br>node-agent-4q99b         1/1     Running   0          17m<br>node-agent-v98j7         1/1     Running   0          17m<br>velero-958687b4c-ckqjh   1/1     Running   0          17m<br><br># kubectl get backupstoragelocation -n velero<br>NAME      PHASE       LAST VALIDATED   AGE   DEFAULT<br>default   Available   52s              48m   true</pre><p>As the migration targets VKS clusters deployed on VCF 9.0, the Tanzu CLI is not utilised for Velero installation. The installation and configuration of Velero are performed using the VCF CLI on the target cluster.</p><p>Copy the same <strong>velero-data-values.yaml</strong> file to the destination environment and execute the command shown below.</p><pre><br>~&gt; vcf package available get velero.kubernetes.vmware.com -n vmware-system-tkg                                                                                                                                                                                                 root@globalmachine 13:56:58<br><br>  NAME:                   velero.kubernetes.vmware.com<br>  DISPLAY-NAME:           velero<br>  CATEGORIES:             - data protection<br>  SHORT-DESCRIPTION:      Velero is an open source tool to safely backup and restore, perform disaster<br>recovery, and migrate Kubernetes cluster resources and persistent volumes.<br>  LONG-DESCRIPTION:       Velero is an open source tool to safely backup and restore, perform disaster<br>recovery, and migrate Kubernetes cluster resources and persistent volumes.<br>  PROVIDER:               VMware<br>  MAINTAINERS:            - name: Wenkai Yin<br>  SUPPORT-DESCRIPTION:    https://github.com/vmware-tanzu/velero<br><br>  VERSION                RELEASED-AT<br>  1.16.1+vmware.1-vks.1  2025-05-19 12:30:00 +0000 UTC<br>  1.16.2+vmware.1-vks.1  2025-08-05 12:30:00 +0000 UTC<br>  1.17.0+vmware.1-vks.1  2025-09-16 11:30:00 +0000 UTC<br><br><br>~&gt;   vcf package install velero -p velero.kubernetes.vmware.com --version 1.16.2+vmware.1-vks.1 --values-file velero-data-values.yaml -n vmware-system-tkg<br><br># verifying the backup storage location<br><br>~&gt; kubectl get bsl -A                                                                                                                                                                                                                       kube hydro-login-wl:hydro-wl/hydro root@globalmachine 17:21:08<br>NAMESPACE   NAME      PHASE       LAST VALIDATED   AGE   DEFAULT<br>velero      default   Available   40s              59m   true                                                                                                                                                                                                                                                        root@globalmachine 13:</pre><p>The Velero CLI has now been installed on both the source and destination environments, and all Velero-related pods are up and running successfully.</p><h4>Application Backup on Source Kubernetes Cluster</h4><p>In this scenario, we assume that the application is already running on the source <strong>Kubernetes cluster (TKGm)</strong>, and its container images are stored in Harbor — an image registry deployed within the on-premises data centre.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLQbCmZkRbGJw1LaEDoKcQ.png" /></figure><p>We’ll use the following sample application to demonstrate the process.</p><p><a href="https://github.com/GoogleCloudPlatform/microservices-demo">https://github.com/GoogleCloudPlatform/microservices-demo</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4w2REtZpKoAQFyVGYgOHFg.png" /></figure><p>This step is optional. If you’d like to check the current application bindings along with the Custom Resource Definitions (CRDs) associated with the application namespace, you can run the following command.</p><pre>#!/bin/bash<br># ------------------------------------------------------------------------------<br># Script: namespace-resource-mapper.sh<br># Description:<br>#   Maps all Kubernetes objects (built-in + CRDs) within a given namespace,<br>#   and identifies cluster-scoped objects linked to that namespace.<br># Output:<br>#   Prints detailed resource mapping for the namespace.<br># Usage:<br>#   ./namespace-resource-mapper.sh &lt;namespace&gt;<br># ------------------------------------------------------------------------------<br><br>set -euo pipefail<br><br>NAMESPACE=$1<br><br>if [ -z &quot;$NAMESPACE&quot; ]; then<br>  echo &quot;Usage: $0 &lt;namespace&gt;&quot;<br>  exit 1<br>fi<br><br>echo &quot;Collecting all namespaced resources in namespace: $NAMESPACE&quot;<br>echo &quot;------------------------------------------------------------&quot;<br><br># Step 1: List all namespaced resources<br>kubectl api-resources --namespaced=true -o name | while read -r RESOURCE; do<br>  COUNT=$(kubectl get &quot;$RESOURCE&quot; -n &quot;$NAMESPACE&quot; --no-headers 2&gt;/dev/null | wc -l || true)<br>  if [ &quot;$COUNT&quot; -gt 0 ]; then<br>    echo &quot;$RESOURCE ($COUNT)&quot;<br>    kubectl get &quot;$RESOURCE&quot; -n &quot;$NAMESPACE&quot; -o custom-columns=&quot;NAME:.metadata.name,KIND:.kind,API:.apiVersion&quot; --no-headers 2&gt;/dev/null<br>    echo<br>  fi<br>done<br><br>echo &quot;------------------------------------------------------------&quot;<br>echo &quot;Checking Custom Resource Definitions (CRDs) in use...&quot;<br>echo<br><br># Step 2: Identify CRDs that have instances in this namespace<br><br>for CRD in $(kubectl get crds -o jsonpath=&#39;{.items[*].metadata.name}&#39;); do<br>  RESOURCE=$(kubectl get crd &quot;$CRD&quot; -o jsonpath=&#39;{.spec.names.plural}&#39; 2&gt;/dev/null)<br>  KIND=$(kubectl get crd &quot;$CRD&quot; -o jsonpath=&#39;{.spec.names.kind}&#39; 2&gt;/dev/null)<br>  COUNT=$(kubectl get &quot;$RESOURCE&quot; -n &quot;$NAMESPACE&quot; --no-headers 2&gt;/dev/null | wc -l || true)<br>  if [ &quot;$COUNT&quot; -gt 0 ]; then<br>    echo &quot;CRD: $CRD&quot;<br>    echo &quot;   Kind: $KIND&quot;<br>    echo &quot;   Instances:&quot;<br>    kubectl get &quot;$RESOURCE&quot; -n &quot;$NAMESPACE&quot; -o custom-columns=&quot;NAME:.metadata.name,API:.apiVersion&quot; --no-headers 2&gt;/dev/null<br>    echo<br>  fi<br>done<br><br>echo &quot;------------------------------------------------------------&quot;<br>echo &quot;Checking cluster-scoped resources mapped to namespace...&quot;<br>echo<br><br># Step 3: Cluster-scoped resources that might reference namespaces<br># Note: these are cluster objects that may link via labels, subjects, or annotations.<br><br># ClusterRoleBindings referencing ServiceAccounts in the namespace<br><br>echo &quot;ClusterRoleBindings referencing ServiceAccounts in namespace $NAMESPACE:&quot;<br>kubectl get clusterrolebindings -o json | jq -r --arg ns &quot;$NAMESPACE&quot; &#39;<br>.items[]<br>| select(.subjects[]? | (.namespace == $ns))<br>| &quot;\(.metadata.name) → Role: \(.roleRef.name) (kind: \(.roleRef.kind))&quot;<br>&#39; 2&gt;/dev/null || echo &quot;   None found.&quot;<br>echo<br><br># ClusterIssuers referencing secrets in namespace (cert-manager)<br><br>echo &quot;ClusterIssuers possibly linked via secrets in namespace $NAMESPACE:&quot;<br>for ISSUER in $(kubectl get clusterissuers -o name 2&gt;/dev/null || true); do<br>  SECRET_REF=$(kubectl get &quot;$ISSUER&quot; -o jsonpath=&#39;{.spec.acme.*.email}&#39; 2&gt;/dev/null || true)<br>  if [[ -n &quot;$SECRET_REF&quot; ]]; then<br>    echo &quot;   $ISSUER (check if secret or reference exists in $NAMESPACE)&quot;<br>  fi<br>done<br>echo<br><br># NetworkPolicies referencing cluster resources<br><br>echo &quot;ClusterNetworkPolicies (if using Calico/Cilium/Antrea):&quot;<br>kubectl get clusternetworkpolicies -o name 2&gt;/dev/null || echo &quot;   None found.&quot;<br>echo<br><br># StorageClasses used by PVCs in the namespace<br><br>echo &quot;StorageClasses referenced by PVCs in namespace $NAMESPACE:&quot;<br>STORAGE_CLASSES=$(kubectl get pvc -n &quot;$NAMESPACE&quot; -o jsonpath=&#39;{.items[*].spec.storageClassName}&#39; 2&gt;/dev/null | tr &#39; &#39; &#39;\n&#39; | sort -u)<br>if [ -n &quot;$STORAGE_CLASSES&quot; ]; then<br>  echo &quot;$STORAGE_CLASSES&quot; | while read -r SC; do<br>    echo &quot;   $SC&quot;<br>  done<br>else<br>  echo &quot;   None found.&quot;<br>fi<br>echo<br><br># Cluster-wide RBAC mapping<br><br>echo &quot;ClusterRoles referenced by RoleBindings in $NAMESPACE:&quot;<br>kubectl get rolebindings -n &quot;$NAMESPACE&quot; -o json | jq -r &#39;<br>.items[]<br>| select(.roleRef.kind==&quot;ClusterRole&quot;)<br>| &quot;\(.metadata.name) → ClusterRole: \(.roleRef.name)&quot;<br>&#39; 2&gt;/dev/null || echo &quot;   None found.&quot;<br>echo<br><br>echo &quot;Completed mapping for namespace: $NAMESPACE&quot;</pre><pre>## Run the command to take the backup of the namespace here in this example our namespace is online-boutique<br><br>$ velero backup create &lt;online-boutique-01&gt; --include-cluster-scoped-resources=validatingwebhookconfigurations.admissionregistration.k8s.io,mutatingwebhookconfigurations.admissionregistration.k8s.io --include-namespaces=&lt;online-boutique&gt; --snapshot-move-data --wait ; date<br><br>Backup request &quot;online-boutique-01&quot; submitted successfully.<br>Waiting for backup to complete. You may safely press ctrl-c to stop waiting - your backup will continue in the background.<br>..<br>Backup completed with status: Completed. You may check for more information using the commands `velero backup describe online-boutique-01` and `velero backup logs online-boutique-01`.<br><br>## To check the application backup status<br><br># velero backup get<br>NAME                 STATUS      ERRORS   WARNINGS   CREATED                         EXPIRES   STORAGE LOCATION   SELECTOR<br>online-boutique-01   Completed   0        0          2025-11-12 09:37:07 +0000 UTC   29d       default            &lt;none&gt;<br></pre><p>At this stage, the backup of the application on the source TKGm cluster has been completed.</p><h4>Application Restore on Destination Cluster</h4><p>Before beginning the application restoration process, a few scenarios must be taken into consideration:-</p><ol><li>If there is no change in the container registry, we can directly proceed with the restoration of the backup.</li><li>In case the source and destination container registry are different than we first need to create a Kubernetes ConfigMap on the destination cluster and do the mapping as shown below.</li></ol><pre># ConfigMap for Registry Mapping<br><br>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  labels:<br>    velero.io/change-image-name: RestoreItemAction<br>    velero.io/plugin-config: &quot;&quot;<br>  name: change-image-name-config-modifier # Dont change this name<br>  namespace: velero<br>data:<br>  case1: &lt;old-registry&gt;,&lt;new-registry&gt;<br><br>~&gt; kubectl apply -f image-config-map-binding.yaml                                                                                                                                                                                           kube hydro-login-wl:hydro-wl/hydro root@globalmachine 11:47:03<br>configmap/change-registry-habor created </pre><p>3. It is important to verify that the images have been successfully copied from the source registry to the destination registry. This process assumes that the repository names are identical on the destination.</p><p>4. If you’re using Harbor as the destination registry, you can take advantage of its built-in replication feature to automatically sync images from the source registry.</p><p>Click on the <strong>Registry → New EndPoint</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*akiS0JA-7h32aGDcL8XjJw.png" /></figure><p>Replication -&gt; New Replication Rule</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*8LR0VOAkDxIUC9tY_WuyEw.png" /></figure><p>All images will be synced automatically from the source registry to the destination Harbor registry.</p><p>4. Make sure the backup storage location is accessible and the destination cluster can access the existing backup bucket.</p><pre>~&gt; velero backup get                                                                                                                                                                                                                                                          root@globalmachine 14:40:31<br>NAME                 STATUS      ERRORS   WARNINGS   CREATED                         EXPIRES   STORAGE LOCATION   SELECTOR<br>online-boutique-01   Completed   0        0          2025-11-12 09:37:07 +0000 UTC   29d       default            &lt;none&gt;<br><br>~/ &gt; kubectl get bsl -A                                                                                                                                                                                                                       kube hydro-login-wl:hydro-wl/hydro root@globalmachine 14:40:37<br>NAMESPACE   NAME      PHASE       LAST VALIDATED   AGE   DEFAULT<br>velero      default   Available   45s              46h   true<br>  </pre><p>**<strong>If both clusters use the same ingress controller, the restore process becomes straightforward — you can simply restore the backup by running the commands below **</strong></p><pre>~&gt; velero restore create online-boutique-restore-01 --from-backup online-boutique-01                                                                                                                                                                                           root@globalmachine 18:11:37<br>Restore request &quot;online-boutique-restore-01&quot; submitted successfully.<br>Run `velero restore describe online-boutique-restore-01` or `velero restore logs online-boutique-restore-01` for more details.<br><br>~&gt; velero restore get                                                                                                                                                                                                                                                          root@globalmachine 18:11:46<br>NAME                         BACKUP               STATUS       STARTED                         COMPLETED   ERRORS   WARNINGS   CREATED                         SELECTOR<br>online-boutique-restore-01   online-boutique-01   InProgress   2025-11-13 18:13:25 +0000 UTC   &lt;nil&gt;       0        0          2025-11-13 18:13:25 +0000 UTC   &lt;none&gt;<br><br>~&gt; velero restore get                                                                                                                                                                                                                                                          root@globalmachine 18:11:55<br>NAME                         BACKUP               STATUS      STARTED                         COMPLETED                       ERRORS   WARNINGS   CREATED                         SELECTOR<br>online-boutique-restore-01   online-boutique-01   Completed   2025-11-13 18:13:25 +0000 UTC   2025-11-13 18:13:38 +0000 UTC   0        8          2025-11-13 18:13:25 +0000 UTC   &lt;none&gt;</pre><ul><li><strong>* If your source cluster is running AKO and the destination cluster is using Contour, you’ll need to create a ConfigMap that updates </strong><strong>ingressClassName Once the restore is complete.</strong></li></ul><pre># Create the rules.yaml file <br><br>~&gt; cat rules.yaml                                                                                                                                                                                                                                                  49s root@globalmachine 18:20:39<br>version: v1<br>resourceModifierRules:<br>  - conditions:<br>      groupResource: ingresses.networking.k8s.io<br>      namespaces:<br>        - online-boutique<br>    patches:<br>      - operation: replace<br>        path: &quot;/spec/ingressClassName&quot;<br>        value: &quot;contour&quot;<br><br># Create the ConfigMap<br><br>~&gt; kubectl create configmap ingress-modifier --from-file=rules.yaml -n velero                                                                                                                                                       kube hydro-login-wl:hydro-wl/hydro root@globalmachine 18:20:41<br>configmap/ingress-modifier created<br><br># Backup restore on destination cluster<br><br>~&gt; velero restore create online-boutique-restore-01 --from-backup online-boutique-01 --resource-modifier-configmap ingress-modifier                                                                                                                                    root@globalmachine 18:21:25<br>Restore request &quot;online-boutique-restore-01&quot; submitted successfully.<br>Run `velero restore describe online-boutique-restore-01` or `velero restore logs online-boutique-restore-01` for more details.<br><br>~ &gt; velero restore get                                                                                                                                                                                                                                                  root@globalmachine 18:22:12<br>NAME                         BACKUP               STATUS       STARTED                         COMPLETED   ERRORS   WARNINGS   CREATED                         SELECTOR<br>online-boutique-restore-01   online-boutique-01   InProgress   2025-11-13 18:23:51 +0000 UTC   &lt;nil&gt;       0        0          2025-11-13 18:23:51 +0000 UTC   &lt;none&gt;<br><br># Backup Restoration Successful <br><br>~&gt; velero restore get                                                                                                                                                                                                                                                  root@globalmachine 18:22:24<br>NAME                         BACKUP               STATUS      STARTED                         COMPLETED                       ERRORS   WARNINGS   CREATED                         SELECTOR<br>online-boutique-restore-01   online-boutique-01   Completed   2025-11-13 18:23:51 +0000 UTC   2025-11-13 18:24:05 +0000 UTC   0        8          2025-11-13 18:23:51 +0000 UTC   &lt;none&gt;<br><br># Checking the Ingress Class after the restore <br><br>~&gt; kubectl get ingress -A                                                                                                                                                                                                           kube hydro-login-wl:hydro-wl/hydro root@globalmachine 18:22:27<br>NAMESPACE         NAME                      CLASS     HOSTS                           ADDRESS         PORTS     AGE<br>online-boutique   online-boutique-ingress   contour   happyshopping.vkslab.internal   192.168.80.10   80, 443   14s<br>              <br></pre><h4>Application Validation</h4><p>Now that the application has been restored on the destination cluster, let’s take a look at the pods in the online-boutique namespace and confirm that they’re running properly.</p><pre># Checking the pod status <br><br>~&gt; kubectl get pods -n online-boutique                                            kube hydro-login-wl:hydro-wl/hydro root@globalmachine 19:43:06<br>NAME                                     READY   STATUS     RESTARTS   AGE<br>adservice-5df9748b59-c8hlm               1/1     Running    0          6m36s<br>cartservice-794b87ddc8-mbmtj             1/1     Running    0          6m36s<br>checkoutservice-7fb94fdcc-ch928          1/1     Running    0          6m36s<br>currencyservice-65b5bff9f5-2gg6f         1/1     Running    0          6m36s<br>emailservice-5c5467dfb9-rlsgs            1/1     Running    0          6m36s<br>frontend-8674674476-8pkrq                1/1     Running    0          6m36s<br>paymentservice-848d86cfd5-pjn2z          1/1     Running    0          6m35s<br>productcatalogservice-7c67b54867-dxsqc   1/1     Running    0          6m35s<br>recommendationservice-59c95c585-dlb9n    1/1     Running    0          6m35s<br>redis-cart-564f7954f6-bmwk4              1/1     Running    0          6m35s<br>shippingservice-f94c9cb5f-r2gst          1/1     Running    0          6m35s</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4w2REtZpKoAQFyVGYgOHFg.png" /></figure><h4>Conclusion</h4><p>In this walkthrough, we demonstrated how Velero simplifies migrating applications across CNCF Kubernetes clusters — even when the two clusters don’t share the same ingress controller. By preparing the environment, syncing images, applying the necessary transformations, and restoring the workload, we achieved a clean migration from an AKO-based source cluster to a Contour-based destination cluster. With this approach, teams can confidently move workloads across environments while preserving application behaviour and consistency.</p><p>As application migration can involve a variety of real-world scenarios, it’s important to understand the different challenges that may arise:-</p><ol><li>We may encounter situations where the application’s IP address must remain unchanged due to dependencies on existing firewall rules.</li><li>While stateless workloads are typically straightforward to migrate, stateful applications require careful planning to prevent data inconsistency.</li><li>In some cases, we may need to deal with different storage classes across clusters, which introduces additional considerations during the migration process.</li><li>How to plan the application migration from OpenShift to CNCF-conformant Kubernetes clusters, the migration workflow introduces its own set of nuances.</li></ol><p>To address these topics in depth, we will be publishing a series of blog posts that walk through each of these scenarios, explain best practices, and provide practical guidance for performing seamless application migrations across diverse Kubernetes environments.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and does not constitute professional advice. No warranty implied or given and user excepts All information, contents, opinions are my own and do not reflect the opinions of my employer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de96e7df846b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disconnected But Ready: VCF 9.0 Supervisor Upgrade Guide for Air-Gapped Sites]]></title>
            <link>https://medium.com/@saurabhtandon13/disconnected-but-ready-vcf-9-0-supervisor-upgrade-guide-for-air-gapped-sites-23503ac9b897?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/23503ac9b897</guid>
            <category><![CDATA[vsphere]]></category>
            <category><![CDATA[vcf]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[upgrade]]></category>
            <category><![CDATA[vmware]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 11:34:16 GMT</pubDate>
            <atom:updated>2025-12-04T09:06:57.016Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In the <a href="https://medium.com/@saurabhtandon13/supervisor-independent-upgrade-in-vcf-9-0-breaking-the-lifecycle-lock-in-4af6031bf1f3">last blog</a>, we discussed the <strong>asynchronous upgrade of the Supervisor</strong>. This new capability is introduced with <strong>VCF 9.0</strong>, which significantly simplifies lifecycle operations by decoupling Supervisor upgrades from the traditional vCenter workflows. That approach is particularly beneficial in <strong>internet-connected environments</strong>, where pulling metadata and packages directly from VMware repositories is straightforward.</p><p>However, in <strong>air-gapped setups</strong> — such as those commonly found in <strong>defence, banking, or other high-security sectors</strong> — direct internet access is not permitted. This poses unique challenges when trying to stay up to date with the latest Supervisor features and security fixes. In this blog, we will walk through how to perform a <strong>Supervisor upgrade in air-gapped or dark sites</strong>, enabling such environments to leverage the <strong>latest innovations of the VKS (VMware Kubernetes Service) </strong>platform while maintaining strict network isolation.</p><h3>Architecture Design &amp; Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*DoPiPVKYrBm6202pUlZOyQ.png" /></figure><p>As part of this process, we will <strong>download all the required packages</strong>, including the <strong>Spherelet VIBs</strong>, from the <a href="https://wp-content-pstg.broadcom.com/supervisor/v1/latest/">Broadcom Supervisor repository</a> using a <strong>bastion host</strong> that has internet connectivity. Additionally, we will download the necessary <strong>RPM packages for setting up a local web server</strong> on the Jumphost. These components will then be transferred securely to the <strong>air-gapped environment.</strong></p><p>Within the <strong>air-gapped setup</strong>, we will set up a <strong>local web server</strong> that will serve as the <strong>offline Supervisor repository</strong>. This repository will host all the necessary upgrade files previously downloaded from the internet-connected bastion host. Next, we’ll create a <strong>subscribed content library</strong> in the air-gapped environment, pointing it to the local web server. This content library will then be <strong>assigned to the Supervisor</strong>, enabling the upgrade process to proceed smoothly — <strong>without any need for direct internet access</strong>.</p><h3>Supervisor Cluster Upgrade — Pre-requisites in VCF 9.0</h3><p>Before you update vCenter, make sure that the Kubernetes version of all Supervisors is of the minimum supported version, and that the vSphere Kubernetes release version of the VKS clusters is of the minimum supported version. View the <a href="https://docs.vmware.com/en/VMware-Tanzu-Kubernetes-releases/services/rn/vmware-tanzu-kubernetes-releases-release-notes/index.html#Release-Note-Section-2001">compatibility matrix</a> for more details.</p><h4>Environment Details: Pre-Upgrade State</h4><ol><li>vSphere Client version 9.0.0.0</li><li>Supervisor Kubernetes Version: v1.30.5+vmware.4-fips-vsc9.0.0.0–24686447</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnVB4F-nGkjdEfRa15SpeA.png" /></figure><p><strong>Download and Prepare: Packages for Air-Gapped Upgrade</strong></p><p>To streamline the process, we’ve <strong>automated the package download using a custom Bash script</strong>. In the first phase, the script downloads all required packages from the internet into the <strong>current working directory</strong> — the location from which the script is executed. This eliminates manual steps and ensures consistency when collecting the necessary Supervisor upgrade files and web server dependencies.</p><p><strong>Step 1:- Downloading the supervisor packages, save the script as </strong>download_supervisor_latest.sh</p><pre>#!/bin/bash<br><br>set -euo pipefail<br><br># Remote base URL<br>BASE_URL=&quot;https://wp-content.broadcom.com/supervisor/v1/latest/&quot;<br><br># Local directory where all files will be downloaded<br>DEST_DIR=&quot;./supervisor-content-library&quot;<br><br># Create the destination directory if not exists<br>mkdir -p &quot;$DEST_DIR&quot;<br><br># Function to recursively crawl and download files<br>download_recursive() {<br>  local current_url=&quot;$1&quot;<br>  local current_path=&quot;$2&quot;<br><br>  echo &quot;Scanning: $current_url&quot;<br><br>  # Fetch the directory listing<br>  html=$(curl -s &quot;$current_url&quot;)<br><br>  # Extract href links from anchor tags<br>  links=$(echo &quot;$html&quot; | grep -oP &#39;(?&lt;=href=&quot;)[^&quot;]+&#39; | grep -vE &#39;^\?|^\#|^\.\.&#39; )<br><br>  # Loop over each link<br>  while IFS= read -r link; do<br>    # Full URL to the resource<br>    full_url=&quot;${current_url}${link}&quot;<br><br>    # Local path for storing the file<br>    local_path=&quot;${current_path}${link}&quot;<br><br>    # If it ends with a slash, it&#39;s a directory - recurse into it<br>    if [[ &quot;$link&quot; == */ ]]; then<br>      mkdir -p &quot;$DEST_DIR/$local_path&quot;<br>      download_recursive &quot;$full_url&quot; &quot;$local_path&quot;<br>    else<br>      echo &quot;Downloading: $full_url → $DEST_DIR/$local_path&quot;<br>      curl -sSL &quot;$full_url&quot; -o &quot;$DEST_DIR/$local_path&quot;<br>    fi<br>  done &lt;&lt;&lt; &quot;$links&quot;<br>}<br><br># Start recursive download<br>download_recursive &quot;$BASE_URL&quot; &quot;&quot;</pre><ul><li>Make it executable and run it</li></ul><pre>$ chmod +x download_supervisor_latest.sh<br><br>$ ./download_supervisor_latest.sh</pre><p>The script stores all downloaded content in a folder named su<strong>pervisor_content_library</strong> in the current directory</p><pre># ls -alrt<br>total 16<br>drwxr-xr-x 3 root root 4096 Jul 27 06:31 ..<br>-rwxr-xr-x 1 root root 1226 Jul 27 08:22 download_supervisor_packages.sh<br>drwxr-xr-x 3 root root 4096 Jul 27 08:25 .<br>drwxr-xr-x 6 root root 4096 Jul 27 08:26 supervisor-content-library<br><br># tree supervisor-content-library/<br>supervisor-content-library/<br>├── items.json<br>├── lib.json<br>├── spherelet-v1.28<br>│   ├── item.json<br>│   ├── spherelet-depot-9.0.1.28.2.0-24522473.zip<br>│   └── spherelet-solution-9.0.1.28.2.0-24522473.json<br>├── spherelet-v1.29<br>│   ├── item.json<br>│   ├── spherelet-depot-9.0.1.29.3.0-24522471.zip<br>│   └── spherelet-solution-9.0.1.29.3.0-24522471.json<br>├── spherelet-v1.30<br>│   ├── item.json<br>│   ├── spherelet-depot-9.0.1.30.5.0-24526496.zip<br>│   └── spherelet-solution-9.0.1.30.5.0-24526496.json<br>└── supervisor-9.0.0.0100-24845085<br>    ├── item.json<br>    ├── photon-ova.cert<br>    ├── photon-ova.mf<br>    ├── photon-ova.ovf<br>    └── photon-ova.vmdk<br><br>5 directories, 16 files</pre><p><strong>Step 2:- </strong>Now we are downloading the web server rpm packages. Save the script as download_webserver_packages.sh</p><pre>#!/bin/bash<br><br>set -euo pipefail<br><br># Directory to store downloaded packages<br>DOWNLOAD_DIR=&quot;./apache-webserver-packages&quot;<br>mkdir -p &quot;$DOWNLOAD_DIR&quot;<br><br>echo &quot;Saving packages to: $DOWNLOAD_DIR&quot;<br><br># Function to quietly download with apt<br>quiet_apt_download() {<br>    pkg=&quot;$1&quot;<br>    # Suppress _apt sandbox warnings and permission denied, but not real errors<br>    apt download &quot;$pkg&quot; 2&gt;&amp;1 | grep -vE &quot;Permission denied|unsandboxed as root&quot; || true<br>}<br><br># Detect OS<br>if [ -f /etc/debian_version ]; then<br>    echo &quot;Detected Debian/Ubuntu system&quot;<br><br>    apt update -qq<br><br>    echo &quot;Downloading apache2 and dependencies...&quot;<br><br>    cd &quot;$DOWNLOAD_DIR&quot;<br><br>    quiet_apt_download apache2<br><br>    # Download immediate dependencies<br>    DEPS=$(apt-cache depends apache2 | grep Depends | awk &#39;{print $2}&#39;)<br>    for pkg in $DEPS; do<br>        echo &quot;Downloading: $pkg&quot;<br>        quiet_apt_download &quot;$pkg&quot;<br>    done<br><br>    echo &quot;.deb packages saved in $DOWNLOAD_DIR&quot;<br><br>elif [ -f /etc/redhat-release ]; then<br>    echo &quot;Detected RHEL-based system&quot;<br><br>    if ! command -v yumdownloader &gt;/dev/null; then<br>        echo &quot;Installing yum-utils...&quot;<br>        yum install -y yum-utils<br>    fi<br><br>    echo &quot;Downloading httpd and dependencies...&quot;<br>    yumdownloader --resolve --destdir=&quot;$DOWNLOAD_DIR&quot; httpd &gt;/dev/null 2&gt;&amp;1 || true<br><br>    echo &quot;.rpm packages saved in $DOWNLOAD_DIR&quot;<br><br>else<br>    echo &quot;Unsupported OS.&quot;<br>    exit 1<br>fi</pre><ul><li>Make it executable and run it</li></ul><pre>$ chmod +x download_webserver_packages.sh<br><br>$ ./download_webserver_packages.sh</pre><p>The script stores all downloaded content in a folder named <strong>apache-webserver-packages </strong>in the current directory</p><pre># ls -alrt<br>total 24<br>drwxr-xr-x 3 root root 4096 Jul 27 06:31 ..<br>-rwxr-xr-x 1 root root 1348 Jul 27 10:15 download_webserver_packages.sh<br>-rwxr-xr-x 1 root root 1242 Jul 27 10:16 download_supervisor_packages.sh<br>drwxr-xr-x 6 root root 4096 Jul 27 10:17 supervisor-content-library<br>drwxr-xr-x 4 root root 4096 Jul 27 10:21 .<br>drwxr-xr-x 2 root root 4096 Jul 27 10:21 apache-webserver-packages<br><br># tree apache-webserver-packages<br>apache-webserver-packages<br>├── apache2_2.4.58-1ubuntu8.7_amd64.deb<br>├── apache2-bin_2.4.58-1ubuntu8.7_amd64.deb<br>├── apache2-data_2.4.58-1ubuntu8.7_all.deb<br>├── apache2-utils_2.4.58-1ubuntu8.7_amd64.deb<br>├── init-system-helpers_1.66ubuntu1_all.deb<br>├── media-types_10.1.0_all.deb<br>└── procps_2%3a4.0.4-4ubuntu3.2_amd64.deb<br><br>1 directory, 7 files</pre><p><strong>Step 3:- </strong>Copy the a<strong>pache-webserver-packages &amp; supervisor-content-library </strong>to the jumphost in the airgapped setup using scp or any tool.</p><p><strong>Step 4:- </strong>Next, we proceed with installing the <strong>web server on the JumpHost</strong>. Save the installation script as <strong>webserver-install-airgapped.sh</strong>, and ensure it is placed in the <strong>same directory where the downloaded files were transferred.</strong></p><pre>#!/bin/bash<br><br>set -euo pipefail<br><br># Path where the downloaded packages are placed<br>PKG_DIR=&quot;./apache-webserver-packages&quot;<br><br>if [ ! -d &quot;$PKG_DIR&quot; ]; then<br>    echo &quot;Error: Package directory &#39;$PKG_DIR&#39; not found.&quot;<br>    exit 1<br>fi<br><br>echo &quot;Installing Apache Web Server from local packages in: $PKG_DIR&quot;<br><br>if [ -f /etc/debian_version ]; then<br>    echo &quot;Debian/Ubuntu system detected.&quot;<br><br>    echo &quot;Installing .deb packages...&quot;<br>    sudo dpkg -i &quot;$PKG_DIR&quot;/*.deb || sudo apt --fix-broken install -y<br><br>    echo &quot;Copying the content library file to webserver&quot;<br>    cp -rf supervisor-content-library /var/www/html/supervisor<br><br>    echo &quot;Enabling and starting apache2 service...&quot;<br>    sudo systemctl enable apache2<br>    sudo systemctl start apache2<br><br>    echo &quot;Apache2 installed and running.&quot;<br><br>elif [ -f /etc/redhat-release ]; then<br>    echo &quot;RHEL-based system detected.&quot;<br><br>    echo &quot;Installing .rpm packages...&quot;<br>    sudo rpm -Uvh &quot;$PKG_DIR&quot;/*.rpm<br><br>    echo &quot;Copying the content library file to webserver&quot;<br>    cp -rf supervisor-content-library /var/www/html/supervisor<br><br>    echo &quot;Enabling and starting httpd service...&quot;<br>    sudo systemctl enable httpd<br>    sudo systemctl start httpd<br><br>    echo &quot;httpd installed and running.&quot;<br><br>else<br>    echo &quot;Unsupported OS. Only Debian/Ubuntu or RHEL-based systems are supported.&quot;<br>    exit 1<br>fi<br><br>echo &quot;Applying the SSL Certificate&quot;<br><br># Configuration<br>CERT_DIR=&quot;/etc/ssl/apache&quot;<br>IP_ADDRESS=$(hostname -I | awk &#39;{print $1}&#39;)<br>DAYS_VALID=365<br><br>echo &quot;Using IP Address: $IP_ADDRESS for certificate SAN&quot;<br><br># Step 1: Create directory for certs<br><br>sudo mkdir -p &quot;$CERT_DIR&quot;<br><br># Step 2: Generate OpenSSL config with SAN (IP)<br>OPENSSL_CONFIG=&quot;$CERT_DIR/openssl_ip.cnf&quot;<br>cat &lt;&lt;EOF | sudo tee &quot;$OPENSSL_CONFIG&quot; &gt; /dev/null<br>[ req ]<br>default_bits       = 2048<br>prompt             = no<br>default_md         = sha256<br>distinguished_name = dn<br>req_extensions     = req_ext<br><br>[ dn ]<br>C = IN<br>ST = NA<br>L = NA<br>O = NA<br>OU = IT<br>CN = $IP_ADDRESS<br><br>[ req_ext ]<br>subjectAltName = @alt_names<br><br>[ alt_names ]<br>IP.1 = $IP_ADDRESS<br>EOF<br><br># Step 3: Generate the certificate<br>sudo openssl req -x509 -nodes -days $DAYS_VALID -newkey rsa:2048 \<br>  -keyout &quot;$CERT_DIR/apache-selfsigned.key&quot; \<br>  -out &quot;$CERT_DIR/apache-selfsigned.crt&quot; \<br>  -config &quot;$OPENSSL_CONFIG&quot; \<br>  -extensions req_ext<br><br>echo &quot;Certificate with IP SAN generated.&quot;<br><br># Step 4: Configure Apache<br>if [ -f /etc/debian_version ]; then<br>    echo &quot;Detected Debian/Ubuntu.&quot;<br><br>    SSL_CONF=&quot;/etc/apache2/sites-available/default-ssl.conf&quot;<br><br>    sudo a2enmod ssl<br>    sudo a2ensite default-ssl<br><br>    sudo sed -i &quot;s|SSLCertificateFile.*|SSLCertificateFile $CERT_DIR/apache-selfsigned.crt|&quot; &quot;$SSL_CONF&quot;<br>    sudo sed -i &quot;s|SSLCertificateKeyFile.*|SSLCertificateKeyFile $CERT_DIR/apache-selfsigned.key|&quot; &quot;$SSL_CONF&quot;<br><br>    echo &quot;Restarting apache2...&quot;<br>    sudo systemctl restart apache2<br><br>elif [ -f /etc/redhat-release ]; then<br>    echo &quot;Detected RHEL-based system.&quot;<br><br>    CONF_FILE=&quot;/etc/httpd/conf.d/ssl.conf&quot;<br><br>    sudo yum install -y mod_ssl || sudo dnf install -y mod_ssl<br><br>    sudo sed -i &quot;s|^SSLCertificateFile .*|SSLCertificateFile $CERT_DIR/apache-selfsigned.crt|&quot; &quot;$CONF_FILE&quot;<br>    sudo sed -i &quot;s|^SSLCertificateKeyFile .*|SSLCertificateKeyFile $CERT_DIR/apache-selfsigned.key|&quot; &quot;$CONF_FILE&quot;<br><br>    echo &quot;Restarting httpd...&quot;<br>    sudo systemctl restart httpd<br><br>else<br>    echo &quot;Unsupported OS.&quot;<br>    exit 1<br>fi</pre><p><strong>Step 5:-</strong> Run the curl command to validate the webserver</p><pre><br># curl -kv https://10.0.0.199/supervisor/lib.json<br><br>*   Trying 10.0.0.199:443...<br>* Connected to 10.0.0.199 (10.0.0.199) port 443<br>* ALPN: curl offers h2,http/1.1<br>* TLSv1.3 (OUT), TLS handshake, Client hello (1):<br>* TLSv1.3 (IN), TLS handshake, Server hello (2):<br>* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):<br>* TLSv1.3 (IN), TLS handshake, Certificate (11):<br>* TLSv1.3 (IN), TLS handshake, CERT verify (15):<br>* TLSv1.3 (IN), TLS handshake, Finished (20):<br>* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):<br>* TLSv1.3 (OUT), TLS handshake, Finished (20):<br>* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS<br>* ALPN: server accepted http/1.1<br>* Server certificate:<br>*  subject: C=IN; ST=NA; L=NA; O=NA; OU=IT; CN=10.0.0.199<br>*  start date: Jul 27 10:57:28 2025 GMT<br>*  expire date: Jul 27 10:57:28 2026 GMT<br>*  issuer: C=IN; ST=NA; L=NA; O=NA; OU=IT; CN=10.0.0.199<br>*  SSL certificate verify result: self-signed certificate (18), continuing anyway.<br>*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption<br>* using HTTP/1.x<br>&gt; GET /supervisor/lib.json HTTP/1.1<br>&gt; Host: 10.0.0.199<br>&gt; User-Agent: curl/8.5.0<br>&gt; Accept: */*<br>&gt;<br>* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):<br>* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):<br>* old SSL session ID is stale, removing<br>&lt; HTTP/1.1 200 OK<br>&lt; Date: Sun, 27 Jul 2025 10:59:20 GMT<br>&lt; Server: Apache/2.4.58 (Ubuntu)<br>&lt; Last-Modified: Sun, 27 Jul 2025 10:35:08 GMT<br>&lt; ETag: &quot;14a-63ae6baa44d30&quot;<br>&lt; Accept-Ranges: bytes<br>&lt; Content-Length: 330<br>&lt; Content-Type: application/json<br>&lt;<br>{<br>  &quot;vcspVersion&quot;: &quot;2&quot;,<br>  &quot;contentVersion&quot;: &quot;1&quot;,<br>  &quot;version&quot;: &quot;1&quot;,<br>  &quot;name&quot;: &quot;supervisor-library&quot;,<br>  &quot;created&quot;: &quot;2025-07-10T10:45Z&quot;,<br>  &quot;itemsHref&quot;: &quot;items.json&quot;,<br>  &quot;id&quot;: &quot;urn:uuid:e0688e00-fa10-4905-8f5c-84bd93f871f7&quot;,<br>  &quot;capabilities&quot;: {<br>    &quot;transferIn&quot;: [<br>      &quot;httpGet&quot;<br>    ],<br>    &quot;transferOut&quot;: [<br>      &quot;httpGet&quot;<br>    ]<br>  }<br>* Connection #0 to host 10.0.0.199 left intact<br>}root@globalmachine:~/software/content-library#</pre><h4>Creating and Linking the Content Library to the Supervisor in an Airgapped Environment</h4><p>In the second phase, we’ll <strong>create a subscribed content library</strong> and <strong>point it to the web server</strong> hosted on the <strong>JumpHost</strong>. Once configured, this content library will be <strong>assigned to the Supervisor</strong>, enabling it to access the necessary upgrade files in the air-gapped environment.</p><p><strong>Step 1:</strong> Log in to the vCenter as a vSphere administrator.</p><p><strong>Step 2: </strong>Content library creation in an Airgapped setup</p><p>Enter the details below and click <strong>Next</strong></p><p><strong>Name:-</strong> &lt; content library name&gt;</p><p><strong>vCenter Server:- </strong>&lt;select the vCenter on which the Supervisor is enabled&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*NnPsm8L4pSewFsvijwrLxg.png" /></figure><p>3. Select the subscribed content library and attach the Subscription URL</p><p><strong>Subscription URL:- https://&lt;jumphost-IP&gt;/supervisor/lib.json</strong></p><p>and select <strong>“when needed / immediately”</strong> in the <strong>Download Content</strong>, and click <strong>Next</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*t5Ujrrwj-BqfSyAB32Go0Q.png" /></figure><p>Select the License and click <strong>“Yes”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*1LHx_h6yq1d7NIdeAZdTRA.png" /></figure><p>Select the <strong>DataStore</strong> and click <strong>Next</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*0-hDp-QoTCH88f5M.png" /></figure><p>Click on finish</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*o5-p5zzgqSpKq5MvfoTeZQ.png" /></figure><p><strong>Step 3:- </strong>Assign the content library to the vSphere Supervisor platform.</p><p>Click on <strong>Main Menu → Supervisor Management → Content Distribution</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*kDCHq4xcLfs_MWq5.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lWl4bR9UpzXX3ZbYt_zd1w.png" /></figure><p>The library will be assigned successfully to the Supervisor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8KGoh5r83vIUv1uwKoNiw.png" /></figure><p><strong>Step 4:-</strong> Upgrade the Supervisor</p><p>Click on <strong>Main Menu → Supervisor Management → Updates</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*vnd94AfdrpfjBeE_.png" /></figure><p>Select the Version and apply the updates. This will show a message that, during the upgrade, Supervisor nodes will undergo a rolling upgrade. Click <strong>Proceed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*adRHC3DxX1Ubsikj.png" /></figure><p><strong>Step 5:-</strong> The Supervisor will undergo a Pre-Checks validation. If the checks are successful, click on Next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*6rjm62DuCryA6lCXUAx7bg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*ygjpyPr2XPrrGFis.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*1oMIvPd_DPySmCOj.png" /></figure><h3>Validation</h3><p><strong>Step 1: </strong>This will trigger a rolling upgrade of the supervisor nodes, and you will see a new supervisor node added in the cluster</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*tmhPRq5w52DrqjGBk0U2nQ.png" /></figure><p><strong>Step 2:</strong> After all the nodes are upgraded successfully, you will notice that the Supervisor version will change to version <strong>v1.30.10+vmware.1-fips-vsc9.0.0.0100–24845085</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*UXlVG7uxIXYHfoQa.png" /></figure><h3>Conclusion</h3><p><strong>Supervisor Decoupling in VCF 9.0</strong> is a major step forward in VMware’s hybrid cloud and Kubernetes strategy — especially for <strong>air-gapped and offline environments</strong>. By <strong>separating the Supervisor lifecycle from SDDC Manager</strong>, VMware enables platform and infrastructure teams to perform <strong>independent upgrades</strong>, even in <strong>disconnected setups</strong> where internet access is restricted. This decoupled model brings much-needed <strong>agility and control</strong> to environments such as <strong>defence, finance, and other security-sensitive sectors</strong>, while still aligning with <strong>modern DevOps workflows</strong> and <strong>Kubernetes-native practices</strong>. It ensures that even in offline scenarios, organisations can keep their platforms <strong>up to date and future-ready</strong>.</p><p><strong><em>Disclaimer:</em></strong> All posts, contents and examples are for educational purposes in lab environments only and do not constitute professional advice. No warranty, implied or otherwise, is given, and the user accepts that all information, content, and opinions are my own and d<strong>o not reflect the opinions of my employer.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23503ac9b897" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitOps-Driven Management of VKS Clusters: Enabling GitOps on VCF 9.0 (Part 03)]]></title>
            <link>https://medium.com/@saurabhtandon13/gitops-driven-management-of-vks-clusters-enabling-gitops-on-vcf-9-0-part-03-aaa9a0a73fd0?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaa9a0a73fd0</guid>
            <category><![CDATA[gitops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[vcf]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Sun, 20 Jul 2025 19:39:32 GMT</pubDate>
            <atom:updated>2026-03-27T13:54:14.564Z</atom:updated>
            <content:encoded><![CDATA[<p>In the Part-02 blog, we walked through the process of deploying an Argo CD instance within a vSphere Namespace on <strong>VMware Cloud Foundation (VCF) 9.0</strong>, enabling a GitOps-based approach to manage Kubernetes workloads in a vSphere environment. With Argo CD successfully installed, we now have a powerful toolset to drive declarative infrastructure and application delivery.</p><p>In this blog post, we’ll take the next step by demonstrating how to <strong>provision and manage VKS clusters</strong> directly through the Argo CD <strong>UI and CLI</strong>. This allows us to fully operationalise GitOps within the private cloud, delivering consistency, scalability, and automation across the Kubernetes lifecycle.</p><h4>Importance of Managing the Kubernetes Cluster with a Gitops Approach</h4><p>Adopting a GitOps-based approach for managing Kubernetes clusters enables declarative, version-controlled, and automated operations by leveraging Git as the source of truth for the desired cluster state.</p><p>All Kubernetes manifests — including deployments, services, and configuration — are stored and versioned in a Git repository, allowing <strong>infrastructure</strong> changes to follow the same review, approval, and rollback processes as application code. By decoupling deployments from imperative cluster creation and manual interventions, GitOps delivers a scalable, consistent, and repeatable operational model for Kubernetes across development, staging, and production environments.</p><p><strong>Foundational Guide to Deploying and Operating VKS via Argo CD</strong></p><ul><li><strong>Supervisor Cluster:- </strong>Ensure the vSphere Supervisor Cluster is enabled and in a healthy state.</li><li><strong>Argo CD Operator + Argo CD instance:- </strong>Argo CD Operator and instance must be active and in a healthy state within the Supervisor Cluster.</li><li><strong>CLI:- </strong>Ensure the Argo CD CLI and the kubectl / VCF are installed on the bootstrap node.</li><li><strong>Git Repository Access:- </strong>Make sure a Git repository is available to store the configuration YAML files and is accessible from the Supervisor Cluster. This repository will serve as the source of truth for all your GitOps-driven deployments.</li></ul><p><strong>Here we will cover two key scenarios</strong> to showcase the full potential of Argo CD in managing <strong>VMware Kubernetes Clusters (VKS)</strong></p><ol><li><strong>Provisioning a new VKS cluster</strong> using the Argo CD <strong>CLI</strong>.</li><li><strong>Creating a new VKS cluster</strong> through the Argo CD <strong>UI</strong> for a more visual and user-friendly approach.</li></ol><h4><strong>Attaching vSphere Namespace on Supervisor to ArgoCD</strong></h4><p>As the Supervisor Cluster serves as the management plane for overseeing the lifecycle of workload clusters, we will now attach all relevant vSphere namespaces that need to be managed by the Argo CD instance.</p><pre><br> ****** Login to the Supervisor Cluster *********<br><br># kubectl vsphere login --server xx.xx.xx.xx --vsphere-username administrator@vsphere.local --insecure-skip-tls-verify<br><br>Password:<br>Logged in successfully.<br><br>You have access to the following contexts:<br>   carbon<br>   svc-argocd-service-domain-c10<br><br>*** Login to the Argo CD CLI ******<br><br># argocd login 192.168.30.10 --insecure<br>Username: admin<br>Password:<br><br>&#39;admin: login&#39; logged in successfully<br><br><br>****** Attach the vSphere Namespace on the Supervisor to the ArgoCD Instance ****<br><br># argocd cluster add &lt;&lt;cluster-context-name&gt;&gt; --namespace &lt;namespace&gt; <br><br>WARNING: This will create a service account `argocd-manager` on the cluster referenced by context `xx.xx.xx.xx` with full namespace-level privileges. Do you want to continue [y/N]? y<br>supervisor cluster<br>--system-namespace is not supported when it is Supervisor Cluster, we will create serviceaccount argocd-manager in ArgoCD namespace kubernetes resource management<br>Start permission checking for managing namespace of Supervisor Cluster<br>INFO[0009] ServiceAccount &quot;argocd-manager&quot; created in namespace &quot;xxxxx&quot;<br>INFO[0009] RoleBinding &quot;xxxx/xxxx-argocd-manager-role-binding&quot; created<br>INFO[0009] Created bearer token secret for ServiceAccount &quot;argocd-manager&quot;<br>Namespace &lt;xxxxxxx&gt;from Cluster &#39;https://xx.xx.xx.xx:443&#39; added</pre><h4><strong>Provisioning VKS Clusters via Argo CD CLI</strong></h4><p>To streamline and automate cluster lifecycle operations, we can create <strong>VKS (VMware Kubernetes Service) </strong>clusters directly using the Argo CD CLI. This approach enables declarative management of cluster resources, making it easier to integrate cluster creation into GitOps workflows. By leveraging Argo CD’s CLI capabilities, we can define and deploy cluster configurations stored in Git repositories, ensuring consistent and repeatable cluster provisioning.</p><p>To create a workload cluster YAML file, refer to the <a href="https://navneet-verma.medium.com/a-comprehensive-enumeration-of-the-available-options-for-deploying-a-vks-cluster-40203c2df085">Workload Cluster Creation YAML</a> guide. This resource provides detailed information on the required parameters and associated options, which can be used to define and customise your workload cluster configuration effectively.</p><p>In this example, I’ve created a sample workload cluster YAML file and uploaded it to <a href="https://github.com/saurabhtandon13/vks-argocd-cluster">GitHub</a>. This file will be used to demonstrate the creation of clusters using both the Argo CD CLI and UI.</p><pre><br>*** Argo CD command line to create the application using CLI *******<br><br># argocd app create vks-cli --repo https://github.com/xxxxxx/vks-argocd-cluster.git --path create-tkg-cluster-yaml-files --dest-server https://&lt;supervisor-ip&gt;:443 --dest-namespace carbon --sync-policy automated<br><br>application &#39;vks-cli&#39; created<br><br><br>**** Verifying the application status ********<br><br><br># argocd app list<br>NAME            CLUSTER                   NAMESPACE  PROJECT  STATUS  HEALTH   SYNCPOLICY  CONDITIONS  REPO                                                       PATH                           TARGET<br>carbon/vks-cli  https://xx.xx.xx.xx:443  carbon      default  Synced  Healthy  Auto        &lt;none&gt;      https://github.com/xxxxxx/vks-argocd-cluster.git  create-tkg-cluster-yaml-files<br></pre><p>The Application will start to create on the UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qa0EKNUDtcvBJAiKsqoTaA.png" /></figure><p><strong>VKS clusters provisioned successfully.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*co2h6NRw_xGc58H0Q4h5Dg.png" /><figcaption>Kubernetes Clusters created successfully &amp; managed by the ArgoCD instance</figcaption></figure><h4>Provisioning VKS Clusters via Argo CD UI</h4><p>Argo CD’s intuitive web-based UI makes it simple to provision VKS (VMware Kubernetes Service) clusters with minimal manual effort. By linking your Git repository that contains the workload cluster YAML definitions, you can visually manage and deploy clusters directly from the Argo CD dashboard. The UI allows you to select the appropriate project, set synchronization policies, and monitor the deployment status in real time. This user-friendly interface is ideal for teams who prefer a visual approach to GitOps while still benefiting from automated, declarative cluster management.</p><ul><li>Log in to Argo CD UI</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R7l3PJO7-ZDIu1iVkFx2nA.png" /></figure><ul><li>Click on “<strong>Settings”</strong> → “ <strong>Repositories</strong>” → “<strong>Connect Repo</strong>”. Enter the details and click Connect, and then click “ Create”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IC_jgnR-kiJ07A0ZoP8itg.png" /><figcaption>Connecting the repository to the ArgoCD instance</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zxT-lUR1cP69dW-u0gNIGw.png" /><figcaption>Github repo successfully connected</figcaption></figure><ul><li>Click on “<strong>Application</strong>” → “<strong>New App</strong>” &amp; Enter the details as shown below</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M1Q0nTtGeFg5A2r318sxoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQCic9h5dWtgmgrdjpmmjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICXCsyxSZiKb0H5Iyb2eqg.png" /><figcaption>Application created successfully and synced</figcaption></figure><p><strong>VKS clusters provisioned successfully.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*co2h6NRw_xGc58H0Q4h5Dg.png" /><figcaption>VKS Clusters created successfully &amp; managed by the ArgoCD instance</figcaption></figure><h3>Conclusion</h3><p>In this blog, we explored how integrating Argo CD with VMware Kubernetes Service (VKS) enables a robust and flexible GitOps workflow for managing both cluster lifecycles and application deployments. Whether you prefer the automation of the CLI or the visual simplicity of the UI, Argo CD ensures consistent, repeatable, and version-controlled operations throughout your vSphere environment.</p><p>In the next blog, we’ll dive into more advanced topics, including integrating Argo CD with an OIDC provider for authentication and configuring Argo CD to use a custom certificate for secure access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaa9a0a73fd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Argo CD Instance on vSphere Namespace: Enabling GitOps on VCF 9.0 (Part 02)]]></title>
            <link>https://medium.com/@saurabhtandon13/installing-argo-cd-instance-on-vsphere-namespace-enabling-gitops-on-vcf-9-0-part-2-1e7bc37179bb?source=rss-684b98715ed9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e7bc37179bb</guid>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[vcf]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[argo-cd]]></category>
            <category><![CDATA[gitops]]></category>
            <dc:creator><![CDATA[Saurabh Tandon]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 12:37:25 GMT</pubDate>
            <atom:updated>2026-03-27T13:42:48.127Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/@saurabhtandon13/argo-cd-support-in-vcf-9-0-enabling-gitops-for-your-modern-infrastructure-part-1-60b0fbb22d9b"><strong>Part 01</strong></a> of this blog series, we explored how to deploy the Argo CD Operator on the Supervisor Cluster. In this post, we’ll take the next step by creating an Argo CD instance within a vSphere Namespace. This instance will demonstrate how to create and then manage VMware Kubernetes Clusters (VKS) using a GitOps-based approach.</p><h4>Why Deploy Argo CD via the Operator in VCF 9.0?</h4><p>Enabling the Argo CD instance through the Argo CD Operator in VCF 9.0 ensures a fully integrated, lifecycle-managed GitOps solution, leveraging the native Supervisor Services framework. The Argo CD Operator simplifies deployment and ongoing management by abstracting complex configurations and ensuring seamless upgrades within the VCF platform.</p><p>Running Argo CD as a Supervisor Service provides tighter integration with vSphere Namespaces, enhanced multi-tenancy support, and secure, policy-driven access controls. This operator-based deployment model aligns with VCF 9.0’s declarative infrastructure principles, enabling GitOps capabilities to extend into<strong> VKS(VMware Kubernetes Service), vSphere PODS and VM, </strong>ensuring the ease of lifecycle management.</p><h4><strong>Foundational Setup for Enabling Argo CD in a vSphere Namespace</strong></h4><ol><li><strong>Supervisor Cluster:- </strong>Ensure the vSphere Supervisor Cluster is enabled and in a healthy state.</li><li><strong>Argo CD Operator:- </strong>The Argo CD Operator must be installed and enabled on the Supervisor Cluster</li><li><strong>vSphere Namespace</strong>:- A vSphere Namespace must be created on the Cluster, and appropriate resource limits, VM classes, and storage policies assigned.</li><li><strong>CLI:- </strong>Ensure the Argo CD CLI and the kubectl / VCF are installed on the bootstrap node.. We can download the CLI from the <a href="https://support.broadcom.com/">Broadcom support portal</a></li></ol><h4><strong>Deploying &amp; Accessing an Argo CD instance in a vSphere Namespace</strong></h4><p>When deploying Argo CD in a vSphere Namespace, the platform offers flexibility to run it in either <strong>High Availability (HA)</strong> or <strong>non-HA</strong> mode. This behaviour is controlled by the <strong>replica count</strong> defined for the core Argo CD components, such as the application controller, repo server, and API server. By default, Argo CD is deployed in a non-HA configuration with a single replica of each component, suitable for development or low-scale environments. For production-grade or mission-critical use cases, increasing the replica count enables HA mode, ensuring redundancy, scalability, and resilience across multiple pods. Also, we can customise the resources and limits of each argocd service pod.</p><p><strong>Sample (Non-HA) Argo CD instance </strong>(argocd-instance.yaml)</p><pre>apiVersion: argocd-service.vsphere.vmware.com/v1alpha1<br>kind: ArgoCD<br>metadata:<br>  name: &lt;argocd-instance-name&gt;<br>  namespace: &lt;vsphere-namedpace&gt;<br>spec:<br>  version: &lt;2.14.13+vmware.1-vks.1&gt;  #kubectl explain argocd.spec.version<br>  url: https://&lt;argocdapps-name&gt;.&lt;domain-name&gt;<br>  applicationSet:<br>    enabled: true           # this is an optional service<br>    replicas: 1<br>  controller:<br>     replicas: 1<br>  enableLoadBalancer: true # L4 IP will be assigned for UI access<br>  notification:<br>    enabled: true           # this is an optional service<br>    replicas: 1<br>  repo:<br>    replicas: 1<br>  server:<br>    replicas: 1</pre><ul><li>Log in to the supervisor and execute the <strong>argocd-instance.yaml</strong> file</li></ul><pre># kubectl vsphere login --server &lt;supervisor-ip&gt; --vsphere-username &lt;username&gt; --insecure-skip-tls-verify<br><br>Password:<br>Logged in successfully.<br><br>You have access to the following contexts:<br>   carbon<br>   svc-argocd-service-domain-c10<br>   svc-cci-ns-domain-c10<br>   svc-harbor-domain-c10<br>   svc-tkg-domain-c10<br>   svc-velero-domain-c10<br><br>**** Supervisor Context verfication ****<br><br># kubectl config get-contexts   <br><br># kubectl apply -f argocd-instance.yaml<br>argocd.argocd-service.vsphere.vmware.com/argocd-carbon created<br><br># kubectl get pods -n &lt;namespace&gt;  # checking the POD status<br><br>NAME                                                READY   STATUS      RESTARTS   AGE<br>argocd-application-controller-0                     1/1     Running     0          3m23s<br>argocd-applicationset-controller-667b9b4696-qh6zw   1/1     Running     0          3m22s<br>argocd-notifications-controller-678dc5f47d-6wnvk    1/1     Running     0          3m22s<br>argocd-redis-8bfc9d85f-8wm2x                        1/1     Running     0          3m22s<br>argocd-redis-secret-init-xlq89                      0/1     Completed   0          3m55s<br>argocd-repo-server-76cbcc8574-fx6r9                 1/1     Running     0          3m22s<br>argocd-server-7659587546-lzsvx                      1/1     Running     0          3m22s</pre><ul><li>Accessing the Argo CD Instance via CLI</li></ul><pre><br>***** Execute the command to get the external IP to access Argo CD instance *****<br><br># kubectl get svc -n carbon -o jsonpath=&#39;{range .items[?(@.status.loadBalancer.ingress)]}{.metadata.name}{&quot;\t&quot;}{.status.loadBalancer.ingress[0].ip}{&quot;\n&quot;}{end}&#39;<br>  <br>  argocd-server   &lt;xx.xx.xx.xx&gt;<br><br>   <br>**** Getting the Initial Admin Password to login ********<br><br># kubectl get secret -n &lt;namespace&gt; argocd-initial-admin-secret -o jsonpath=&#39;{.data.password}&#39; | base64 -d ; echo<br>  <br>  &lt;initial-login-password&gt;<br><br><br>**** Login to the Argo CD instance via the CLI ****<br><br># argocd login &lt;argocd-instance-ip&gt; --insecure <br><br>  Username: admin<br>  Password:<br>  &#39;admin:login&#39; logged in successfully<br>  Context &#39;xx.xx.xx.xx&#39; updated<br><br>**** Updating the Default Password for &quot;admin&quot; account *******<br><br># argocd account update-password<br><br>  *** Enter password of currently logged in user (admin):<br>  *** Enter new password for user admin:<br>  *** Confirm new password for user admin:<br>  Password updated<br>  Context &#39;xx.xx.xx.xx&#39; updated<br><br>***** password verification after updating *****<br><br># argocd login &lt;xx.xx.xx.xx&gt; --insecure<br><br>  Username: admin<br>  Password:<br>  &#39;admin:login&#39; logged in successfully<br>  Context &#39;xx.xx.xx.xx&#39; updated<br><br><br>*** Login is Successful from the CLI, and password change is also successful ***<br></pre><ul><li>Accessing the Argo CD Instance via UI</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLFfm2DdujgSgzbjAacIUQ.png" /></figure><h3>Conclusion</h3><p>In this blog, we demonstrated how to deploy an Argo CD instance within a vSphere Namespace on a VMware Kubernetes Cluster (VKS), laying the foundation for GitOps-driven cluster and application management. With the Argo CD Operator enabled and the instance successfully deployed, we are now equipped to manage Kubernetes resources declaratively and at scale within the private cloud.</p><p>In the next part of this series, we will take it a step further by showcasing how to automate the creation of new VKS clusters using GitOps workflows and managing the clusters, bringing consistency, repeatability, and full lifecycle control to your infrastructure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e7bc37179bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>