Skip to content

Question: How do I setup PodDisruptionBudget for CA? #8158

Open
@yukha-dw

Description

@yukha-dw

Hello, how do I setup PodDisruptionBudget for CA?
I've setup CA 1.31.2 on kube-system namespace and minimal parameter for K8s on AWS deployment.

I've also created PDB using apiVersion policy/v1 (My intention is to temporary block any scale down activity on certain Nodes containing specified Pods):

apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: application-pdb-dev
  namespace: custom-namespace
spec:
  minAvailable: 999
  selector:
    matchLabels:
      app: application-dev

And based on CA's log, it seems acknowledge my PDB:

I0523 04:06:26.449751       1 reflector.go:871] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:243: Watch close - *v1.PodDisruptionBudget total 9 items received

However, when the load is low, it'll scale down application-dev Pods, ignoring my PDB. Is there any additional configuration that I should've add? Thank you in advance

Versions:
Provider: AWS
CA: 1.31.2
K8s: 1.31.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions