Skip to content

Commit

Permalink
use coredns_pod_disruption_budget_max_unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
lobiyedKarim1 committed Dec 7, 2023
1 parent dbedffb commit 664002a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions roles/kubernetes-apps/ansible/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ coredns_host_network: false
coredns_port: 53

coredns_pod_disruption_budget: false

# value for coredns pdb
# coredns_pod_disruption_budget_max_unavailable: 1
coredns_pod_disruption_budget_max_unavailable: 1

# coredns_additional_configs adds any extra configuration to coredns
# coredns_additional_configs: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: PodDisruptionBudget
metadata:
name: coredns{{ coredns_ordinal_suffix }}
spec:
maxUnavailable: {{ coredns_max_unavailable }}
maxUnavailable: {{ coredns_pod_disruption_budget_max_unavailable }}
selector:
matchLabels:
k8s-app: kube-dns{{ coredns_ordinal_suffix }}
Expand Down

0 comments on commit 664002a

Please sign in to comment.