40 - Topology Spread Constraints. Launch Pods in a Highly Available Local Cluster using Kind

Опубликовано: 03 Апрель 2026
на канале: BAKAVETS
2,564
91

In this video, we'll explore #topologySpreadConstraints and how to run Highly Available applications in #Kubernetes. We'll also launch a local K8s cluster with multiple worker nodes using #Kind.

00:00 Introduction
00:53 Terraform Code
02:01 Example 1: Default Pod Distribution
03:13 Example-2: Pod Distribution Using podAntiAffinity (Hard)
04:35 Example-3: Pod Distribution Using podAntiAffinity (Soft)
09:28 Example-4: Pod Distribution Using topologySpreadConstraints
12:58 Known limitations for topologySpreadConstraints
14:37 whenUnsatisfiable: ScheduleAnyway (Soft)
15:29 maxSkew: 2
16:00 [Issue] Respect PodTopologySpread after rolling upgrades
20:15 matchLabelKeys for topologySpreadConstraints
21:30 kind is a tool for running local Kubernetes clusters. Installation and Usage
25:02 Testing matchLabelKeys
28:52 Cleanup

Link to the tutorial on creating an AWS account and configuring it after registration:    • Как создать AWS аккаунт и настроить его по...  
Link to the tutorial on the Terraform CI/CD Pipeline using Github Actions:    • Terraform CI/CD Pipeline, используя Github...  
Link to the tutorial on running Jenkins Slaves in Kubernetes:    • 6 - Запуск Jenkins Slaves в Kubernetes  
Link to the tutorial on Deployment in Kubernetes:    • 9 - Deployment в Kubernetes. Стратегии обн...  
Jenkins Pipeline. Docker build and push to Docker Hub. Jenkinsfile:    • 4 - Jenkins Pipeline. Docker build и push ...  

Pod Topology Spread Constraints: https://kubernetes.io/docs/concepts/s...

Code example from the video: https://github.com/bakavets/k8s-lesso...

You can buy me a coffee to say thank you! https://www.buymeacoffee.com/bakavets

Subscribe to the channel:    / bakavets  
Subscribe to the Telegram channel: https://t.me/bakavets
Follow on Twitter:   / bakavets