Microservices - Orchestration with KubernetesTo update a microservice with zero downtime, which Kubernetes Deployment update strategy should be configured?ARecreate strategy to delete all old Pods before creating new onesBRollingUpdate strategy with maxUnavailable set to 0CBlue/Green deployment using manual Pod scalingDOnDelete strategy requiring manual Pod replacementCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand update strategiesRollingUpdate allows gradual replacement of Pods, maintaining availability during updates.Step 2: Configure maxUnavailableSetting maxUnavailable to 0 ensures no Pods are taken down before replacements are ready, enabling zero downtime.Step 3: Evaluate other optionsRecreate causes downtime; Blue/Green and OnDelete require manual intervention and are not native Deployment strategies.Final Answer:RollingUpdate strategy with maxUnavailable set to 0 -> Option BQuick Check:RollingUpdate with zero maxUnavailable ensures zero downtime [OK]Quick Trick: Use RollingUpdate with maxUnavailable=0 for zero downtime [OK]Common Mistakes:MISTAKESChoosing Recreate which causes downtimeConfusing manual Blue/Green with Deployment strategiesIgnoring maxUnavailable setting
Master "Orchestration with Kubernetes" in Microservices9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More Microservices Quizzes Authentication and Authorization - Why security spans all services - Quiz 3easy Authentication and Authorization - Service-to-service authentication - Quiz 6medium Authentication and Authorization - Why security spans all services - Quiz 15hard Authentication and Authorization - JWT token propagation - Quiz 14medium Event-Driven Architecture - Event replay - Quiz 10hard Monitoring and Observability - Distributed tracing (Jaeger, Zipkin) - Quiz 10hard Monitoring and Observability - Dashboards (Grafana) - Quiz 4medium Orchestration with Kubernetes - Services and networking - Quiz 9hard Resilience Patterns - Bulkhead pattern - Quiz 10hard Service Mesh - Istio overview - Quiz 12easy