Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Pod Disruption Budget for the CSI Controller #612

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add a pod disruption budget for the controller pods
  • Loading branch information
risinger committed Dec 12, 2020
commit f77bc197c631c77009447242ad321b799e924b9b
11 changes: 11 additions & 0 deletions aws-ebs-csi-driver/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: ebs-csi-controller
labels:
{{ include "aws-ebs-csi-driver.labels" . }}
spec:
minAvailable: 1
selector:
matchLabels:
{{ include "aws-ebs-csi-driver.selectorLabels" . }}
48 changes: 24 additions & 24 deletions deploy/kubernetes/overlays/alpha/snapshot_controller.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
---
# Source: aws-ebs-csi-driver/templates/statefulset.yaml
#Snapshot controller
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: ebs-snapshot-controller
namespace: kube-system
#Snapshot controller
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: ebs-snapshot-controller
namespace: kube-system
labels:
app.kubernetes.io/name: aws-ebs-csi-driver
spec:
serviceName: ebs-snapshot-controller
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: aws-ebs-csi-driver
spec:
serviceName: ebs-snapshot-controller
replicas: 1
selector:
matchLabels:
app: ebs-snapshot-controller
app.kubernetes.io/name: aws-ebs-csi-driver
template:
metadata:
labels:
app.kubernetes.io/name: aws-ebs-csi-driver
template:
metadata:
labels:
app: ebs-snapshot-controller
app.kubernetes.io/name: aws-ebs-csi-driver
spec:
serviceAccountName: ebs-snapshot-controller
containers:
- name: snapshot-controller
image: quay.io/k8scsi/snapshot-controller:v2.1.1
args:
- --v=5
app.kubernetes.io/name: aws-ebs-csi-driver
spec:
serviceAccountName: ebs-snapshot-controller
containers:
- name: snapshot-controller
image: quay.io/k8scsi/snapshot-controller:v2.1.1
args:
- --v=5
- --leader-election=false
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/auth0/go-jwt-middleware v0.0.0-20170425171159-5493cabe49f7/go.mod h1:LWMyo4iOLWXHGdBki7NIht1kHru/0wM179h+d3g8ATM=
github.com/aws/aws-k8s-tester v1.5.4-0.20201030232413-2fee81866ced h1:v+QooXoXXwChQPzJbbaN9Q40yzXgIS3KnTSeM7+q1k4=
github.com/aws/aws-k8s-tester/e2e/tester v0.0.0-20201030232413-2fee81866ced h1:P0B+rPbrG5dE7jkET11FVcFQiF4jITaC3xndU/f6EXc=
github.com/aws/aws-k8s-tester/e2e/tester v0.0.0-20201030232413-2fee81866ced/go.mod h1:DJkIJa8BA0LCJWjl01jsEl8vm/fjei0uWJFzZol0KUI=
github.com/aws/aws-sdk-go v1.16.26/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.35.37 h1:XA71k5PofXJ/eeXdWrTQiuWPEEyq8liguR+Y/QUELhI=
github.com/aws/aws-sdk-go v1.35.37/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
Expand Down