SlideShare a Scribd company logo
Setup Kubernetes Federation
Between Clusters
AWS User Group Taiwan
About Me
⽩白凱仁(Kyle Bai)
• Interested in emerging technologies.
• COSCUP, Kubernetes Day and OpenStack Day Speaker
• OpenStack and Kubernetes Projects Contributor(100+ PR)
• Certified Kubernetes Administrator
@kairen(k2r2.bai@gmail.com)
https://kairen.github.io/
Why Federation?
Multiple clusters
• Serving users from clusters closest to them.
• Avoiding provider lock-in: By making it easier to migrate applications
across clusters, federation prevents cluster provider lock-in.
• High availability: Ability to federate clusters across different regions/
cloud providers.
Federation
Federation makes it easy to manage
multiple clusters.
• Sync resources across clusters:
Federation provides the ability to keep
resources in multiple clusters in sync.
• Cross cluster discovery: Federation
provides the ability to auto-configure
DNS servers and load balancers with
backends from all clusters.
Federation pros
• Keep your app synced across clusters.
• Configure network resources (services, ingress) to route traffic across
clusters.
• Single place to apply policies.
• Policy-based Resource Placement(OPA).
Use cases for Federation
• Geographically Distributed Deployments: Spread Deployments across
clusters in different parts of the world.
• Hybrid Cloud: Extend Deployments from on-premise clusters to the cloud.
• Application Migration: Simplify the migration of applications from on-
premise to the cloud or between cloud providers.
Federation cons
• Increased network bandwidth and cost: The federation control plane
watches all clusters to ensure that the current state is as expected.
• Reduced cross cluster isolation: A bug in the federation control plane
can impact all clusters.
• Maturity: The federation project is relatively new and is not very mature.
• Not all resources are available and many are still alpha and beta.
Federation support API resources
• Cluster
• ConfigMap
• DaemonSets
• Deployment
• Events
• HPA
• Ingress
• Jobs
• Namespaces
• ReplicaSets
• Secrets
• Services
* Only support API version for extensions/v1beta1, v1
Federation Architecture
Overview
Federation Control Plane
Federated Resources
Federated Clusters
Federation API Server
The Kubernetes federation API server validates and configures data for the API
objects which include pods, services, replicationcontrollers, and others.
Federation Controller Manager
The federation controller manager is a daemon that embeds the core control loops
shipped with federation.
• Watches Federation API Server
• Clusters - federation/v1beta1/cluster
• API Resources - v1/foo
• Watches All Kubernetes Clusters
• API Resources - v1/foo
• Reconciles
• Compare and update
• Handles cascading deletion
How to place? • Placement can be controlled per-resource via
annotations.
• Annotations supported:
• federation.kubernetes.io/replica-set-preferences
• federation.kubernetes.io/deployment-preferences
• federation.alpha.kubernetes.io/cluster-selector
• federation-controller evaluates annotations to
produce final placement
How to setup Kubernetes
Federation on AWS
Architecture
Setup kubernetes federation between clusters
Prerequisites(1/2)
• In this lab, we will deploy clusters in different AWS regions:
• US West: Oregon (us-west-2)
• US East: Ohio (us-east-2)
• Asia: Tokyo(ap-northeast-1)
• Install the following tools on host:
• kubectl
• kubefed: if os is Mac OS X, you need build from Federation source code.
• kops
• AWS CLI
Prerequisites(2/2)
Amazon Web Services:
• IAM: Identity and Access Management.
• EC2: Kubernetes cluster.
• ELB: Kubernetes service load balancer.
• Route53: Public domain for Kubernetes API, Service, … etc
• S3: Store kops state.
• VPC: Cluster Network.
Godaddy:
• Buy your own domain name.
Live setup and demo!!!
(Boom!!!)
https://github.com/kairen/aws-k8s-federation
Thanks

More Related Content

What's hot (20)

PDF
Docker Container Introduction
Innfinision Cloud and BigData Solutions
 
PDF
MySQL InnoDB Cluster / ReplicaSet - Tutorial
Miguel Araújo
 
PPTX
Docker Kubernetes Istio
Araf Karsh Hamid
 
ODP
Kvm virtualization platform
Ahmad Hafeezi
 
PDF
Alphorm.com Formation KVM
Alphorm
 
PDF
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
Mihai Criveti
 
DOCX
Cloud notes 1
Prateek Soni
 
PPTX
Module 1- Introduction-CCA.pptx
SabaFatima350242
 
PPSX
Kubernetes in Action, Second Edition
Manning Publications
 
PPTX
Docker intro
Oleg Z
 
PDF
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
ssuserf8b8bd1
 
PPTX
Network Virtualization
InterVision Systems
 
PPTX
Hypervisors
Inzemamul Haque
 
PPTX
Docker Basics
DuckDuckGo
 
PDF
Karpenter
Knoldus Inc.
 
PDF
Openstack 101
Kamesh Pemmaraju
 
PPTX
OpenStack概要 ~仮想ネットワーク~
Masaya Aoyama
 
PDF
Cilium - Bringing the BPF Revolution to Kubernetes Networking and Security
Thomas Graf
 
PDF
Docker Introduction
MANAOUIL Karim
 
PDF
OpenStack Octavia入門
Takashi Kajinami
 
Docker Container Introduction
Innfinision Cloud and BigData Solutions
 
MySQL InnoDB Cluster / ReplicaSet - Tutorial
Miguel Araújo
 
Docker Kubernetes Istio
Araf Karsh Hamid
 
Kvm virtualization platform
Ahmad Hafeezi
 
Alphorm.com Formation KVM
Alphorm
 
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
Mihai Criveti
 
Cloud notes 1
Prateek Soni
 
Module 1- Introduction-CCA.pptx
SabaFatima350242
 
Kubernetes in Action, Second Edition
Manning Publications
 
Docker intro
Oleg Z
 
(발표자료) CentOS EOL에 따른 대응 OS 검토 및 적용 방안.pdf
ssuserf8b8bd1
 
Network Virtualization
InterVision Systems
 
Hypervisors
Inzemamul Haque
 
Docker Basics
DuckDuckGo
 
Karpenter
Knoldus Inc.
 
Openstack 101
Kamesh Pemmaraju
 
OpenStack概要 ~仮想ネットワーク~
Masaya Aoyama
 
Cilium - Bringing the BPF Revolution to Kubernetes Networking and Security
Thomas Graf
 
Docker Introduction
MANAOUIL Karim
 
OpenStack Octavia入門
Takashi Kajinami
 

Similar to Setup kubernetes federation between clusters (20)

PDF
Setup Hybrid Clusters Using Kubernetes Federation
inwin stack
 
PDF
Federated Kubernetes: As a Platform for Distributed Scientific Computing
Bob Killen
 
PPTX
DevOps Days Galway 2017
Miguel Castilho Dias
 
PDF
Kubernetes "Ubernetes" Cluster Federation by Quinton Hoole (Google, Inc) Huaw...
Quinton Hoole
 
PDF
Federation of Kubernetes Clusters (a.k.a. "Ubernetes") - KubeCon 2015 slides ...
Quinton Hoole
 
PDF
Federation of Kubernetes Clusters (Ubernetes) KubeCon 2015 slides - Quinton H...
Quinton Hoole
 
PDF
게임 고객사를 위한 ‘AWS 컨테이너 교육’ 자료 - 유재석 솔루션즈 아키텍트, AWS :: Gaming Immersion Day 201...
Amazon Web Services Korea
 
PDF
Kubernetes - how to orchestrate containers
inovex GmbH
 
PDF
Kubernetes/ EKS - 김광영 (AWS 솔루션즈 아키텍트)
Amazon Web Services Korea
 
PDF
DevOps in AWS with Kubernetes
Oleg Chunikhin
 
PDF
Kubernetes intro
Pravin Magdum
 
PPTX
Kubernetes fundamentals
Victor Morales
 
PPTX
DevOps with Kubernetes
EastBanc Tachnologies
 
PPTX
Aks: k8s e azure
Alessandro Melchiori
 
PPTX
Kubernetes Internals
Shimi Bandiel
 
PPTX
First steps with kubernetes
Vinícius Kroth
 
PPTX
KubernetSADASDASDASDSADASDASDASDASDes.pptx
MuhamedAhmed35
 
PDF
Openstack days sv building highly available services using kubernetes (preso)
Allan Naim
 
PDF
Getting Started with Kubernetes
VMware Tanzu
 
PDF
LISA2017 Kubernetes: Hit the Ground Running
Chris McEniry
 
Setup Hybrid Clusters Using Kubernetes Federation
inwin stack
 
Federated Kubernetes: As a Platform for Distributed Scientific Computing
Bob Killen
 
DevOps Days Galway 2017
Miguel Castilho Dias
 
Kubernetes "Ubernetes" Cluster Federation by Quinton Hoole (Google, Inc) Huaw...
Quinton Hoole
 
Federation of Kubernetes Clusters (a.k.a. "Ubernetes") - KubeCon 2015 slides ...
Quinton Hoole
 
Federation of Kubernetes Clusters (Ubernetes) KubeCon 2015 slides - Quinton H...
Quinton Hoole
 
게임 고객사를 위한 ‘AWS 컨테이너 교육’ 자료 - 유재석 솔루션즈 아키텍트, AWS :: Gaming Immersion Day 201...
Amazon Web Services Korea
 
Kubernetes - how to orchestrate containers
inovex GmbH
 
Kubernetes/ EKS - 김광영 (AWS 솔루션즈 아키텍트)
Amazon Web Services Korea
 
DevOps in AWS with Kubernetes
Oleg Chunikhin
 
Kubernetes intro
Pravin Magdum
 
Kubernetes fundamentals
Victor Morales
 
DevOps with Kubernetes
EastBanc Tachnologies
 
Aks: k8s e azure
Alessandro Melchiori
 
Kubernetes Internals
Shimi Bandiel
 
First steps with kubernetes
Vinícius Kroth
 
KubernetSADASDASDASDSADASDASDASDASDes.pptx
MuhamedAhmed35
 
Openstack days sv building highly available services using kubernetes (preso)
Allan Naim
 
Getting Started with Kubernetes
VMware Tanzu
 
LISA2017 Kubernetes: Hit the Ground Running
Chris McEniry
 
Ad

Recently uploaded (20)

PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
July Patch Tuesday
Ivanti
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Ad

Setup kubernetes federation between clusters

  • 1. Setup Kubernetes Federation Between Clusters AWS User Group Taiwan
  • 2. About Me ⽩白凱仁(Kyle Bai) • Interested in emerging technologies. • COSCUP, Kubernetes Day and OpenStack Day Speaker • OpenStack and Kubernetes Projects Contributor(100+ PR) • Certified Kubernetes Administrator @kairen([email protected]) https://kairen.github.io/
  • 4. Multiple clusters • Serving users from clusters closest to them. • Avoiding provider lock-in: By making it easier to migrate applications across clusters, federation prevents cluster provider lock-in. • High availability: Ability to federate clusters across different regions/ cloud providers.
  • 5. Federation Federation makes it easy to manage multiple clusters. • Sync resources across clusters: Federation provides the ability to keep resources in multiple clusters in sync. • Cross cluster discovery: Federation provides the ability to auto-configure DNS servers and load balancers with backends from all clusters.
  • 6. Federation pros • Keep your app synced across clusters. • Configure network resources (services, ingress) to route traffic across clusters. • Single place to apply policies. • Policy-based Resource Placement(OPA).
  • 7. Use cases for Federation • Geographically Distributed Deployments: Spread Deployments across clusters in different parts of the world. • Hybrid Cloud: Extend Deployments from on-premise clusters to the cloud. • Application Migration: Simplify the migration of applications from on- premise to the cloud or between cloud providers.
  • 8. Federation cons • Increased network bandwidth and cost: The federation control plane watches all clusters to ensure that the current state is as expected. • Reduced cross cluster isolation: A bug in the federation control plane can impact all clusters. • Maturity: The federation project is relatively new and is not very mature. • Not all resources are available and many are still alpha and beta.
  • 9. Federation support API resources • Cluster • ConfigMap • DaemonSets • Deployment • Events • HPA • Ingress • Jobs • Namespaces • ReplicaSets • Secrets • Services * Only support API version for extensions/v1beta1, v1
  • 11. Overview Federation Control Plane Federated Resources Federated Clusters
  • 12. Federation API Server The Kubernetes federation API server validates and configures data for the API objects which include pods, services, replicationcontrollers, and others.
  • 13. Federation Controller Manager The federation controller manager is a daemon that embeds the core control loops shipped with federation. • Watches Federation API Server • Clusters - federation/v1beta1/cluster • API Resources - v1/foo • Watches All Kubernetes Clusters • API Resources - v1/foo • Reconciles • Compare and update • Handles cascading deletion
  • 14. How to place? • Placement can be controlled per-resource via annotations. • Annotations supported: • federation.kubernetes.io/replica-set-preferences • federation.kubernetes.io/deployment-preferences • federation.alpha.kubernetes.io/cluster-selector • federation-controller evaluates annotations to produce final placement
  • 15. How to setup Kubernetes Federation on AWS
  • 18. Prerequisites(1/2) • In this lab, we will deploy clusters in different AWS regions: • US West: Oregon (us-west-2) • US East: Ohio (us-east-2) • Asia: Tokyo(ap-northeast-1) • Install the following tools on host: • kubectl • kubefed: if os is Mac OS X, you need build from Federation source code. • kops • AWS CLI
  • 19. Prerequisites(2/2) Amazon Web Services: • IAM: Identity and Access Management. • EC2: Kubernetes cluster. • ELB: Kubernetes service load balancer. • Route53: Public domain for Kubernetes API, Service, … etc • S3: Store kops state. • VPC: Cluster Network. Godaddy: • Buy your own domain name.
  • 20. Live setup and demo!!! (Boom!!!) https://github.com/kairen/aws-k8s-federation