_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Kubernetes Deployment strategie

10. 06. 2025 1 min read intermediate

Cloud Intermediate

Kubernetes Deployment strategie

KubernetesDeploymentRolling Update 3 min read

RollingUpdate, Recreate, Blue-Green a Canary v Kubernetes.

RollingUpdate

apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  replicas: 4
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1        # Max pods navíc
      maxUnavailable: 0   # Zero downtime
  template:
    spec:
      containers:
        - name: app
          image: myapp:v2

Recreate

Smaže všechny pody a vytvoří nové. Má downtime, ale jednoduché pro stateful apps.

Canary s Argo Rollouts

apiVersion: argoproj.io/v1alpha1
kind: Rollout
spec:
  strategy:
    canary:
      steps:
        - setWeight: 5
        - pause: {duration: 5m}
        - setWeight: 25
        - pause: {duration: 10m}
        - setWeight: 75
        - pause: {duration: 5m}

Summary

RollingUpdate je default a stačí většinou. Pro sofistikovanější strategie použijte Argo Rollouts.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.