medium10 pts · first answer countskubernetesreliability
Node drain hangs forever
During a node upgrade, kubectl drain keeps retrying with "Cannot evict pod as it would violate the pod's disruption budget." The Deployment has 2 replicas. What is the likely problem?
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: api
spec:
minAvailable: 2
selector:
matchLabels: { app: api }Discussion 0
Join free to post in the discussion.
Related questions
- Smallest unit in KubernetesDevOps Engineer
- Deployment and ReplicaSetDevOps Engineer
- Logs from a crashed containerDevOps Engineer
- Are Kubernetes Secrets encryptedDevOps Engineer
- What namespaces isolateDevOps Engineer
- Helm values precedenceDevOps Engineer
- Starting from default denyDevOps Engineer
- CMD vs ENTRYPOINTDevOps Engineer