diff --git a/roles/kubernetes-apps/ansible/defaults/main.yml b/roles/kubernetes-apps/ansible/defaults/main.yml index c42d2becf98..d9da8435c6d 100644 --- a/roles/kubernetes-apps/ansible/defaults/main.yml +++ b/roles/kubernetes-apps/ansible/defaults/main.yml @@ -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: | diff --git a/roles/kubernetes-apps/ansible/templates/coredns-poddisruptionbudget.yml.j2 b/roles/kubernetes-apps/ansible/templates/coredns-poddisruptionbudget.yml.j2 index 5990391e996..d8968089cf9 100644 --- a/roles/kubernetes-apps/ansible/templates/coredns-poddisruptionbudget.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/coredns-poddisruptionbudget.yml.j2 @@ -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 }}