Kubernetes - Production Best Practices
You applied this Pod Disruption Budget:
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: pdb-db
spec:
maxUnavailable: 2
selector:
matchLabels:
app: database
But Kubernetes reports an error: "spec.maxUnavailable: Invalid value: "2": must be less than the number of pods selected by the label selector". What is the likely cause?