<?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 Edwin Chofong on Medium]]></title>
        <description><![CDATA[Stories by Edwin Chofong on Medium]]></description>
        <link>https://medium.com/@edwinchofong?source=rss-82874bd12b0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Edwin Chofong on Medium</title>
            <link>https://medium.com/@edwinchofong?source=rss-82874bd12b0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 10:17:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@edwinchofong/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[Setting up a federated Kubernetes cluster across multiple cloud providers like Amazon EKS, Google…]]></title>
            <link>https://medium.com/@edwinchofong/setting-up-a-federated-kubernetes-cluster-across-multiple-cloud-providers-like-amazon-eks-google-0c0cb1cc165f?source=rss-82874bd12b0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c0cb1cc165f</guid>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Edwin Chofong]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 01:46:58 GMT</pubDate>
            <atom:updated>2025-02-19T01:46:58.952Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setting up a federated Kubernetes cluster across multiple cloud providers like Amazon EKS, Google GKE, and Azure AKS</h3><p>Setting up a federated Kubernetes cluster across multiple cloud providers like Amazon EKS, Google GKE, and Azure AKS involves several steps. Here’s a high-level guide on how to approach this:</p><h3>Prerequisites:</h3><ul><li><strong>Accounts</strong>: Active accounts with AWS, Google Cloud, and Azure, with appropriate permissions.</li><li><strong>Tools</strong>:</li><li>kubectl</li><li>Cloud-specific CLIs: aws, gcloud, az</li><li>kubefedctl for Kubernetes Federation</li></ul><h3>Step-by-Step Setup:</h3><h4>1. Set up Clusters in Each Cloud:</h4><ul><li><strong>Amazon EKS:</strong></li><li>Use eksctl or AWS Management Console to create an EKS cluster. Here’s a command-line example:</li><li>eksctl create cluster --name eks-cluster --region us-west-2 --nodegroup-name standard-workers --node-type t3.medium --nodes 3 --nodes-min 1 --nodes-max 4 --managed</li><li><strong>Google GKE:</strong></li><li>Use Google Cloud Console or gcloud:</li><li>gcloud container clusters create gke-cluster --zone us-west1-a --num-nodes=3 --enable-autoupgrade --enable-autorepair</li><li><strong>Azure AKS:</strong></li><li>Use Azure CLI or Azure Portal:</li><li>az group create --name myResourceGroup --location eastus az aks create --resource-group myResourceGroup --name aks-cluster --node-count 3 --enable-addons monitoring --generate-ssh-keys</li></ul><h4>2. Install and Configure kubefedctl:</h4><ul><li>Download kubefedctl from the Kubernetes Federation project or use Helm to install:</li><li>helm install kubefed kubefed/kubefed --namespace kube-federation-system --create-namespace</li></ul><p>3. Create a Host Cluster:</p><ul><li>Choose one of your clusters to act as the host for your federation. This will manage your federated control plane:</li><li>For simplicity, let’s assume GKE is the host:</li><li>export KUBECONFIG=~/.kube/gke-cluster-config kubefedctl join gke-cluster --host-cluster-context gke-cluster --v=2</li></ul><h4>4. Add Member Clusters:</h4><ul><li>Join EKS and AKS clusters to the federation:</li><li>For EKS:</li><li>export KUBECONFIG=~/.kube/eks-cluster-config kubefedctl join eks-cluster --host-cluster-context gke-cluster --v=2</li><li>For AKS:</li><li>export KUBECONFIG=~/.kube/aks-cluster-config kubefedctl join aks-cluster --host-cluster-context gke-cluster --v=2</li></ul><h4>5. Configure DNS for Cross-Cluster Services:</h4><ul><li>You’ll need to set up a DNS service that can route across clouds. Consider using an external DNS provider or a service like AWS Route53, Google Cloud DNS, or Azure DNS, configured with federation in mind.</li></ul><h4>6. Deploy Applications:</h4><ul><li>Now, you can deploy applications using federated resources:</li><li>Create a federated deployment:</li><li>yaml</li></ul><p>apiVersion: federation.k8s.io/v1beta1<br>kind: FederatedDeployment<br>metadata:<br> name: myapp<br>spec:<br> template:<br> spec:<br> replicas: 3<br> selector:<br> matchLabels:<br> app: myapp<br> template:<br> metadata:<br> labels:<br> app: myapp<br> spec:<br> containers:<br> — name: myapp-container<br> image: myapp-image:latest</p><ul><li>Apply this to your federation:</li><li>kubectl --context=gke-cluster apply -f federated-deployment.yaml</li></ul><h4>7. Manage and Scale:</h4><ul><li>Use kubefedctl to manage placement policies, scale resources, and monitor your multi-cluster environment. For instance, to scale:</li><li>kubefedctl scale federateddeployment myapp --replicas=5</li></ul><h3>Challenges and Considerations:</h3><ul><li><strong>Networking</strong>: Ensure secure, reliable networking between clusters. VPC peering or similar solutions might be necessary.</li><li><strong>Data Consistency</strong>: Data management across clouds can be complex, especially for stateful applications.</li><li><strong>Security</strong>: Implement consistent security policies across clusters.</li><li><strong>Cost</strong>: Monitor costs as you are now using multiple cloud services.</li><li><strong>Monitoring and Logging</strong>: Unified monitoring might require additional setup.</li></ul><h3>Conclusion:</h3><p>This setup gives you a basic federated Kubernetes environment. Remember, Kubernetes Federation (KubeFed) has been archived in favor of newer methods like Karmada or Open Cluster Management, so you might want to look into these alternatives for more active development and support. Each step can involve much more detailed configuration, especially around networking and security, which should be tailored to your specific application requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c0cb1cc165f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>