Skip to content

Commit

Permalink
fix: addon manager pod discruption budgets (Azure#266)
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
  • Loading branch information
sylr authored and acs-bot committed Jan 10, 2019
1 parent 0c10b1e commit e849506
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parts/k8s/addons/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ kind: PodDisruptionBudget
metadata:
name: coredns
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
spec:
minAvailable: 50%
selector:
Expand Down
4 changes: 4 additions & 0 deletions parts/k8s/addons/kubernetesmasteraddons-calico-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ kind: PodDisruptionBudget
metadata:
name: calico-typha
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
spec:
minAvailable: 0%
selector:
Expand Down Expand Up @@ -374,6 +376,8 @@ kind: PodDisruptionBudget
metadata:
name: calico-typha-horizontal-autoscaler
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: "EnsureExists"
spec:
minAvailable: 0%
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ kind: PodDisruptionBudget
metadata:
name: kubernetes-dashboard
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
spec:
minAvailable: 0%
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,19 @@ spec:
nodeSelector:
beta.kubernetes.io/os: linux
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: metrics-server
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
spec:
minAvailable: 0%
selector:
matchLabels:
k8s-app: metrics-server
---
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ kind: PodDisruptionBudget
metadata:
name: tiller
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
spec:
minAvailable: 0%
selector:
Expand Down

0 comments on commit e849506

Please sign in to comment.