File tree Expand file tree Collapse file tree 5 files changed +37
-5
lines changed
charts/aws-efs-csi-driver Expand file tree Collapse file tree 5 files changed +37
-5
lines changed Original file line number Diff line number Diff line change @@ -234,4 +234,4 @@ for Controller deployment and Node daemonset
234
234
* Fixing Controller deployment using `podAnnotations` and `tolerations` values from Node daemonset
235
235
* Let the user define the whole `tolerations` array, default to `- operator: Exists`
236
236
* Default `logLevel` lowered from `5` to `2`
237
- * Default `imagePullPolicy` everywhere set to `IfNotPresent`
237
+ * Default `imagePullPolicy` everywhere set to `IfNotPresent`
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ maintainers:
15
15
- name : leakingtapan
16
16
url : https://github.com/leakingtapan
17
17
- name : krmichel
18
- url : https://github.com/krmichel
18
+ url : https://github.com/krmichel
Original file line number Diff line number Diff line change 3
3
kind : Deployment
4
4
apiVersion : apps/v1
5
5
metadata :
6
- name : efs-csi- controller
6
+ name : {{ .Values. controller.name }}
7
7
labels :
8
8
app.kubernetes.io/name : {{ include "aws-efs-csi-driver.name" . }}
9
9
{{- with .Values.controller.additionalLabels }}
13
13
replicas : {{ .Values.controller.replicaCount }}
14
14
selector :
15
15
matchLabels :
16
- app : efs-csi- controller
16
+ app : {{ .Values. controller.name }}
17
17
app.kubernetes.io/name : {{ include "aws-efs-csi-driver.name" . }}
18
18
app.kubernetes.io/instance : {{ .Release.Name }}
19
19
{{- with .Values.controller.updateStrategy }}
23
23
template :
24
24
metadata :
25
25
labels :
26
- app : efs-csi- controller
26
+ app : {{ .Values. controller.name }}
27
27
app.kubernetes.io/name : {{ include "aws-efs-csi-driver.name" . }}
28
28
app.kubernetes.io/instance : {{ .Release.Name }}
29
29
{{- with .Values.controller.podLabels }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.controller.podDisruptionBudget.enabled -}}
2
+ apiVersion : policy/v1
3
+ kind : PodDisruptionBudget
4
+ metadata :
5
+ name : {{ .Values.controller.name }}
6
+ namespace : {{ .Release.Namespace }}
7
+ labels :
8
+ {{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
9
+ spec :
10
+ selector :
11
+ matchLabels :
12
+ app : {{ .Values.controller.name }}
13
+ app.kubernetes.io/name : {{ include "aws-efs-csi-driver.name" . }}
14
+ app.kubernetes.io/instance : {{ .Release.Name }}
15
+ {{- if .Values.controller.podDisruptionBudget.unhealthyPodEvictionPolicy }}
16
+ unhealthyPodEvictionPolicy : {{ .Values.controller.podDisruptionBudget.unhealthyPodEvictionPolicy }}
17
+ {{- end }}
18
+ {{- if .Values.controller.podDisruptionBudget.maxUnavailable }}
19
+ maxUnavailable : {{ .Values.controller.podDisruptionBudget.maxUnavailable }}
20
+ {{- end }}
21
+ {{- if .Values.controller.podDisruptionBudget.minAvailable }}
22
+ minAvailable : {{ .Values.controller.podDisruptionBudget.minAvailable }}
23
+ {{- end }}
24
+ {{- end -}}
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ imagePullSecrets: []
51
51
controller :
52
52
# Specifies whether a deployment should be created
53
53
create : true
54
+ # Name of the CSI controller service
55
+ name : efs-csi-controller
54
56
# Number of replicas for the CSI controller service deployment
55
57
replicaCount : 2
56
58
# Number for the log level verbosity
@@ -104,6 +106,12 @@ controller:
104
106
# eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/efs-csi-role
105
107
healthPort : 9909
106
108
regionalStsEndpoints : false
109
+ # Pod Disruption Budget
110
+ podDisruptionBudget :
111
+ enabled : false
112
+ # maxUnavailable: 1
113
+ minAvailable : 1
114
+ unhealthyPodEvictionPolicy : " Delete"
107
115
# securityContext on the controller pod
108
116
securityContext :
109
117
runAsNonRoot : false
You can’t perform that action at this time.
0 commit comments