SlideShare a Scribd company logo
Multi-Cluster Load Balancing in Kubernetes:
Strategies and Considerations
Tamil Vanan
Tech Lead, Arcesium
Self Introduction
● I'm Tamil Vanan, with over 11 years of
experience in networking, automation,
development, and cloud-native technologies.
● My current role is as a Tech Lead at Arcesium.
● I have a keen interest in exploring and solving
cloud-native use cases.
● In my spare time, I enjoy playing badminton.
● You can reach out to me(@tamilhce) on
Twitter/Linkedin
Introduction
● What is Multi cluster Load balancing in Kubernetes?
● Use cases
● Importance of effective multi-cluster load balancing
Key Networking Constructs
1. Pods-to-pods communication without the need for proxies or
translations using IP addresses.
1. The service abstraction, which groups pods under a common
access policy, creating a virtual IP for transparently proxying
client requests to the pods.
1. Exposing services to the external world using Ingress, Gateway,
or services of type LoadBalancer.
Enabling External Access for Your Kubernetes
Application
How to make your application accessible outside the
kubernetes cluster
● Service of Type LB
● Ingress
● Gateway
Service Based Routing
Ingress Routing
Gateway Routing
Multi-Cluster Load Balancing Strategies
● GSLB (DNS-based Global Server Load Balancing)
● Service Mesh-based Multi-Cluster Load Balancing
● CNI-based Multi-Cluster Load Balancing
GSLB (DNS-based Global Server Load Balancing)
● Load balancing is based on timeproof
DNS protocol which is perfect for
global scope and extremely reliable
● No dedicated management cluster and
no single point of failure
● Reference: K8gb
GSLB (DNS-based Global Server Load Balancing)
● Pros
○ External Client Traffic
■ Ideal for applications with significant external traffic
○ Geographic Distribution
■ directing traffic to the nearest cluster or region based on the client’s location
■ minimizing latency
○ No Dependency
■ It doesn’t have any dependency on the vendor specific CNI, service mesh. Ingress
controller
■ Works with any existing clusters
● Cons
○ enabling fine-grained control over traffic patterns(traffic splitting, circuit breaking, retries, and
fault tolerance) is not applicable
○ DNS TTL
Service Mesh-based Multi-Cluster Load Balancing
● Service Mesh excels provides load balancing
services across multiple clusters, offering
precise control over traffic routing, load
balancing, and service discovery.
● References: Linkerd, Istio
Service Mesh-based Multi-Cluster Load Balancing
● Pros
○ East-West Traffic Handling
■ It’s perfect for east-west traffic, managing communication within and across clusters.
○ Advanced Traffic Management
■ Service Mesh offers advanced traffic management capabilities like traffic splitting, circuit breaking,
retries, and fault tolerance, enabling fine-grained control over traffic patterns
● Cons
○ Vendor Lock-in
■ Implies being tied to a specific service mesh provider, limiting flexibility
○ Scalability Challenges
■ As the number of clusters increases, inter-cluster service becomes more complex and has limitations
on scaling.
○ Increased Complexity and Overhead
■ Introduces additional complexity and overhead for routing external traffic.
CNI-based Multi-Cluster Load Balancing
● Multi-cluster load balancing based on CNI
leverages the underlying CNI for load distribution.
● Pod-to-Pod Communication
● Service Discovery
CNI-based Multi-Cluster Load Balancing
Requirements
● Ensure each Kubernetes worker node has a unique IP address and IP connectivity between all
worker nodes
● Achieve this through VPN tunneling for cross-region clusters or direct physical network connections
for clusters within the same region/DC.
● Assign unique PodCIDR ranges to all clusters.
CNI-based Multi-Cluster Load Balancing
Pros
● Ensure each Kubernetes worker node has a unique IP address and IP connectivity between all worker nodes
● Achieve this through VPN tunneling for cross-region clusters or direct physical network connections for clusters
within the same region/DC.
● Assign unique PodCIDR ranges to all clusters.
Cons
● Vendor Lock-in
○ Involves dependency on a particular CNI provider
● Adds extra overhead and cost implications: overlay networking via VPN, potentially resulting in added expenses and
latency
Selecting the Right Multi-Cluster Load Balancing
Strategy
● Why do you require multi-cluster load balancing?
● is it solely for achieving application high availability and disaster recovery?
● Is your application stateless?
● Does your application need service-to-service communications across clusters? why?
● Are you primarily dealing with HTTP-based applications, or do you also support UDP/TCP-based
services?
● Does your use case necessitate pod-to-pod service connectivity across clusters?
Conclusion
In summary, choosing the right multi-cluster load balancing strategy depends on
your specific requirements:
● DNS-based GSLB - For load balancing external traffic across clusters
spanning multiple regions.
● Service Mesh-based multi-cluster load balancing - When scaling services
across clusters and facilitating east-west communication.
● If your needs revolve around direct pod-to-pod communication across
clusters, opt for the CNI-based approach.
Q&A
● References
○ https://linkerd.io/2.14/features/multicluster
○ https://istio.io/latest/docs/setup/install/multicluster
○ https://cilium.io/blog/2019/03/12/clustermesh
○ https://github.com/k8gb-io/k8gb
● Contact: @tamilhce
Thank You !

More Related Content

Similar to Multi-Cluster Load Balancing in Kubernetes_ Strategies and Considerations.pptx

Control Plane for High Capacity Networks Public
Control Plane for High Capacity Networks PublicControl Plane for High Capacity Networks Public
Control Plane for High Capacity Networks Public
CPqD
 
Software-Defined Systems for Network-Aware Service Composition and Workflow P...
Software-Defined Systems for Network-Aware Service Composition and Workflow P...Software-Defined Systems for Network-Aware Service Composition and Workflow P...
Software-Defined Systems for Network-Aware Service Composition and Workflow P...
Pradeeban Kathiravelu, Ph.D.
 
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
JSFestUA
 
NGN BASICS
NGN BASICSNGN BASICS
NGN BASICS
Niranjan Poojary
 
Microservices with NGINX pdf
Microservices with NGINX pdfMicroservices with NGINX pdf
Microservices with NGINX pdf
Katherine Bagood
 
RethinkConn 2022!
RethinkConn 2022!RethinkConn 2022!
RethinkConn 2022!
NATS
 
Software Defined Networking
Software Defined NetworkingSoftware Defined Networking
Software Defined Networking
Abhijeet Singh Panwar
 
The Show Must Go On! Using Kafka to Assure TV Signals Reach the Transmitters
The Show Must Go On! Using Kafka to Assure TV Signals Reach the TransmittersThe Show Must Go On! Using Kafka to Assure TV Signals Reach the Transmitters
The Show Must Go On! Using Kafka to Assure TV Signals Reach the Transmitters
HostedbyConfluent
 
BT Group: Use of Graph in VENA (a smart broadcast network)
BT Group: Use of Graph in VENA (a smart broadcast network)BT Group: Use of Graph in VENA (a smart broadcast network)
BT Group: Use of Graph in VENA (a smart broadcast network)
Neo4j
 
My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...
My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...
My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...
Pradeeban Kathiravelu, Ph.D.
 
UCL Ph.D. Confirmation 2018
UCL Ph.D. Confirmation 2018UCL Ph.D. Confirmation 2018
UCL Ph.D. Confirmation 2018
Pradeeban Kathiravelu, Ph.D.
 
QoS.pptx
QoS.pptxQoS.pptx
QoS.pptx
NourhanTarek23
 
Using an API Gateway for Microservices (APAC Webinar)
Using an API Gateway for Microservices (APAC Webinar)Using an API Gateway for Microservices (APAC Webinar)
Using an API Gateway for Microservices (APAC Webinar)
NGINX, Inc.
 
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEANGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
NGINX, Inc.
 
linkerd.pdf
linkerd.pdflinkerd.pdf
linkerd.pdf
Vishwas N
 
Istio Triangle Kubernetes Meetup Aug 2019
Istio Triangle Kubernetes Meetup Aug 2019Istio Triangle Kubernetes Meetup Aug 2019
Istio Triangle Kubernetes Meetup Aug 2019
Ram Vennam
 
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
CodeOps Technologies LLP
 
Deep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingDeep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
Sreenivas Makam
 
WINS: Peering and IXPs
WINS: Peering and IXPsWINS: Peering and IXPs
WINS: Peering and IXPs
APNIC
 
Carrier-grade-virtual-platform-use-case
Carrier-grade-virtual-platform-use-caseCarrier-grade-virtual-platform-use-case
Carrier-grade-virtual-platform-use-case
Sheryl Zhang
 

Similar to Multi-Cluster Load Balancing in Kubernetes_ Strategies and Considerations.pptx (20)

Control Plane for High Capacity Networks Public
Control Plane for High Capacity Networks PublicControl Plane for High Capacity Networks Public
Control Plane for High Capacity Networks Public
 
Software-Defined Systems for Network-Aware Service Composition and Workflow P...
Software-Defined Systems for Network-Aware Service Composition and Workflow P...Software-Defined Systems for Network-Aware Service Composition and Workflow P...
Software-Defined Systems for Network-Aware Service Composition and Workflow P...
 
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
 
NGN BASICS
NGN BASICSNGN BASICS
NGN BASICS
 
Microservices with NGINX pdf
Microservices with NGINX pdfMicroservices with NGINX pdf
Microservices with NGINX pdf
 
RethinkConn 2022!
RethinkConn 2022!RethinkConn 2022!
RethinkConn 2022!
 
Software Defined Networking
Software Defined NetworkingSoftware Defined Networking
Software Defined Networking
 
The Show Must Go On! Using Kafka to Assure TV Signals Reach the Transmitters
The Show Must Go On! Using Kafka to Assure TV Signals Reach the TransmittersThe Show Must Go On! Using Kafka to Assure TV Signals Reach the Transmitters
The Show Must Go On! Using Kafka to Assure TV Signals Reach the Transmitters
 
BT Group: Use of Graph in VENA (a smart broadcast network)
BT Group: Use of Graph in VENA (a smart broadcast network)BT Group: Use of Graph in VENA (a smart broadcast network)
BT Group: Use of Graph in VENA (a smart broadcast network)
 
My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...
My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...
My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composi...
 
UCL Ph.D. Confirmation 2018
UCL Ph.D. Confirmation 2018UCL Ph.D. Confirmation 2018
UCL Ph.D. Confirmation 2018
 
QoS.pptx
QoS.pptxQoS.pptx
QoS.pptx
 
Using an API Gateway for Microservices (APAC Webinar)
Using an API Gateway for Microservices (APAC Webinar)Using an API Gateway for Microservices (APAC Webinar)
Using an API Gateway for Microservices (APAC Webinar)
 
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEANGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
NGINX Microservices Reference Architecture: What’s in Store for 2019 – EMEA
 
linkerd.pdf
linkerd.pdflinkerd.pdf
linkerd.pdf
 
Istio Triangle Kubernetes Meetup Aug 2019
Istio Triangle Kubernetes Meetup Aug 2019Istio Triangle Kubernetes Meetup Aug 2019
Istio Triangle Kubernetes Meetup Aug 2019
 
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
 
Deep dive into Kubernetes Networking
Deep dive into Kubernetes NetworkingDeep dive into Kubernetes Networking
Deep dive into Kubernetes Networking
 
WINS: Peering and IXPs
WINS: Peering and IXPsWINS: Peering and IXPs
WINS: Peering and IXPs
 
Carrier-grade-virtual-platform-use-case
Carrier-grade-virtual-platform-use-caseCarrier-grade-virtual-platform-use-case
Carrier-grade-virtual-platform-use-case
 

Recently uploaded

Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
DanBrown980551
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeckPoznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
FilipTomaszewski5
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
Fwdays
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Neo4j
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
LizaNolte
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
UiPathCommunity
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
Fwdays
 

Recently uploaded (20)

Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeckPoznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and BioinformaticiansBiomedical Knowledge Graphs for Data Scientists and Bioinformaticians
Biomedical Knowledge Graphs for Data Scientists and Bioinformaticians
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
 

Multi-Cluster Load Balancing in Kubernetes_ Strategies and Considerations.pptx

  • 1. Multi-Cluster Load Balancing in Kubernetes: Strategies and Considerations Tamil Vanan Tech Lead, Arcesium
  • 2. Self Introduction ● I'm Tamil Vanan, with over 11 years of experience in networking, automation, development, and cloud-native technologies. ● My current role is as a Tech Lead at Arcesium. ● I have a keen interest in exploring and solving cloud-native use cases. ● In my spare time, I enjoy playing badminton. ● You can reach out to me(@tamilhce) on Twitter/Linkedin
  • 3. Introduction ● What is Multi cluster Load balancing in Kubernetes? ● Use cases ● Importance of effective multi-cluster load balancing
  • 4. Key Networking Constructs 1. Pods-to-pods communication without the need for proxies or translations using IP addresses. 1. The service abstraction, which groups pods under a common access policy, creating a virtual IP for transparently proxying client requests to the pods. 1. Exposing services to the external world using Ingress, Gateway, or services of type LoadBalancer.
  • 5. Enabling External Access for Your Kubernetes Application How to make your application accessible outside the kubernetes cluster ● Service of Type LB ● Ingress ● Gateway Service Based Routing
  • 8. Multi-Cluster Load Balancing Strategies ● GSLB (DNS-based Global Server Load Balancing) ● Service Mesh-based Multi-Cluster Load Balancing ● CNI-based Multi-Cluster Load Balancing
  • 9. GSLB (DNS-based Global Server Load Balancing) ● Load balancing is based on timeproof DNS protocol which is perfect for global scope and extremely reliable ● No dedicated management cluster and no single point of failure ● Reference: K8gb
  • 10. GSLB (DNS-based Global Server Load Balancing) ● Pros ○ External Client Traffic ■ Ideal for applications with significant external traffic ○ Geographic Distribution ■ directing traffic to the nearest cluster or region based on the client’s location ■ minimizing latency ○ No Dependency ■ It doesn’t have any dependency on the vendor specific CNI, service mesh. Ingress controller ■ Works with any existing clusters ● Cons ○ enabling fine-grained control over traffic patterns(traffic splitting, circuit breaking, retries, and fault tolerance) is not applicable ○ DNS TTL
  • 11. Service Mesh-based Multi-Cluster Load Balancing ● Service Mesh excels provides load balancing services across multiple clusters, offering precise control over traffic routing, load balancing, and service discovery. ● References: Linkerd, Istio
  • 12. Service Mesh-based Multi-Cluster Load Balancing ● Pros ○ East-West Traffic Handling ■ It’s perfect for east-west traffic, managing communication within and across clusters. ○ Advanced Traffic Management ■ Service Mesh offers advanced traffic management capabilities like traffic splitting, circuit breaking, retries, and fault tolerance, enabling fine-grained control over traffic patterns ● Cons ○ Vendor Lock-in ■ Implies being tied to a specific service mesh provider, limiting flexibility ○ Scalability Challenges ■ As the number of clusters increases, inter-cluster service becomes more complex and has limitations on scaling. ○ Increased Complexity and Overhead ■ Introduces additional complexity and overhead for routing external traffic.
  • 13. CNI-based Multi-Cluster Load Balancing ● Multi-cluster load balancing based on CNI leverages the underlying CNI for load distribution. ● Pod-to-Pod Communication ● Service Discovery
  • 14. CNI-based Multi-Cluster Load Balancing Requirements ● Ensure each Kubernetes worker node has a unique IP address and IP connectivity between all worker nodes ● Achieve this through VPN tunneling for cross-region clusters or direct physical network connections for clusters within the same region/DC. ● Assign unique PodCIDR ranges to all clusters.
  • 15. CNI-based Multi-Cluster Load Balancing Pros ● Ensure each Kubernetes worker node has a unique IP address and IP connectivity between all worker nodes ● Achieve this through VPN tunneling for cross-region clusters or direct physical network connections for clusters within the same region/DC. ● Assign unique PodCIDR ranges to all clusters. Cons ● Vendor Lock-in ○ Involves dependency on a particular CNI provider ● Adds extra overhead and cost implications: overlay networking via VPN, potentially resulting in added expenses and latency
  • 16. Selecting the Right Multi-Cluster Load Balancing Strategy ● Why do you require multi-cluster load balancing? ● is it solely for achieving application high availability and disaster recovery? ● Is your application stateless? ● Does your application need service-to-service communications across clusters? why? ● Are you primarily dealing with HTTP-based applications, or do you also support UDP/TCP-based services? ● Does your use case necessitate pod-to-pod service connectivity across clusters?
  • 17. Conclusion In summary, choosing the right multi-cluster load balancing strategy depends on your specific requirements: ● DNS-based GSLB - For load balancing external traffic across clusters spanning multiple regions. ● Service Mesh-based multi-cluster load balancing - When scaling services across clusters and facilitating east-west communication. ● If your needs revolve around direct pod-to-pod communication across clusters, opt for the CNI-based approach.
  • 18. Q&A ● References ○ https://linkerd.io/2.14/features/multicluster ○ https://istio.io/latest/docs/setup/install/multicluster ○ https://cilium.io/blog/2019/03/12/clustermesh ○ https://github.com/k8gb-io/k8gb ● Contact: @tamilhce