Skip to content

Commit

Permalink
Add resource requests and limits to both DaemonSet and Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrestan committed Mar 30, 2021
1 parent f89b143 commit 7018105
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ spec:
timeoutSeconds: 3
periodSeconds: 10
failureThreshold: 5
resources:
{{- toYaml .Values.EFSPlugin.resources | nindent 12 }}
- name: csi-provisioner
image: {{ printf "%s:%s" .Values.sidecars.csiProvisionerImage.repository .Values.sidecars.csiProvisionerImage.tag }}
args:
Expand All @@ -86,6 +88,8 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
resources:
{{- toYaml .Values.CSIProvisioner.resources | nindent 12 }}
- name: liveness-probe
image: {{ printf "%s:%s" .Values.sidecars.livenessProbeImage.repository .Values.sidecars.livenessProbeImage.tag }}
args:
Expand All @@ -94,6 +98,8 @@ spec:
volumeMounts:
- name: socket-dir
mountPath: /csi
resources:
{{- toYaml .Values.livenessProbe.resources | nindent 12 }}
volumes:
- name: socket-dir
emptyDir: {}
Expand Down
6 changes: 6 additions & 0 deletions charts/aws-efs-csi-driver/templates/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ spec:
timeoutSeconds: 3
periodSeconds: 2
failureThreshold: 5
resources:
{{- toYaml .Values.EFSPlugin.resources | nindent 12 }}
- name: csi-driver-registrar
image: {{ printf "%s:%s" .Values.sidecars.nodeDriverRegistrarImage.repository .Values.sidecars.nodeDriverRegistrarImage.tag }}
args:
Expand All @@ -119,6 +121,8 @@ spec:
mountPath: /csi
- name: registration-dir
mountPath: /registration
resources:
{{- toYaml .Values.nodeRegistrar.resources | nindent 12 }}
- name: liveness-probe
image: {{ printf "%s:%s" .Values.sidecars.livenessProbeImage.repository .Values.sidecars.livenessProbeImage.tag }}
args:
Expand All @@ -128,6 +132,8 @@ spec:
volumeMounts:
- name: plugin-dir
mountPath: /csi
resources:
{{- toYaml .Values.livenessProbe.resources | nindent 12 }}
volumes:
- name: kubelet-dir
hostPath:
Expand Down
27 changes: 15 additions & 12 deletions charts/aws-efs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,21 @@ fullnameOverride: ""

podAnnotations: {}

resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
EFSPlugin:
# -- Resource requests and limits for the efs-plugin container in both the Deployment and DaemonSet
resources: {}

CSIProvisioner:
# -- Resource requests and limits for the csi-provisioner container the Deployment
resources: {}

livenessProbe:
# -- Resource requests and limits for the liveness-probe container in both the Deployment and DaemonSet
resources: {}

nodeRegistrar:
# -- Resource requests and limits for the csi-driver-registrar container the DaemonSet
resources: {}

nodeSelector: {}

Expand Down

0 comments on commit 7018105

Please sign in to comment.