Skip to content

Commit

Permalink
add pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
lobiyedKarim1 committed Nov 28, 2023
1 parent e52d708 commit 2156de1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/kubernetes-apps/ansible/tasks/coredns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- { name: coredns, file: coredns-clusterrole.yml, type: clusterrole }
- { name: coredns, file: coredns-clusterrolebinding.yml, type: clusterrolebinding }
- { name: coredns, file: coredns-config.yml, type: configmap }
- { name: coredns, file: coredns-poddisruptionbudget.yml, type: poddisruptionbudget }
- { name: coredns, file: coredns-deployment.yml, type: deployment }
- { name: coredns, file: coredns-sa.yml, type: sa }
- { name: coredns, file: coredns-svc.yml, type: svc }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{%- if deployment.enabled and podDisruptionBudget -%}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: coredns{{ coredns_ordinal_suffix }}
spec:
maxUnavailable: {{ max_unavailable }}
selector:
matchLabels:
k8s-app: kube-dns{{ coredns_ordinal_suffix }}

0 comments on commit 2156de1

Please sign in to comment.