Skip to content

Commit

Permalink
Make all resource requests/limits powers of 2 for consistancy
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 28, 2024
1 parent bda3403 commit aaa7913
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions deploy/helm/aws-login/templates/aws-ecr-login-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ spec:
name: {{ .Values.awsEcr.configName }}
resources:
limits:
memory: 500Mi
memory: 256Mi
requests:
memory: 500Mi
memory: 512Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
Expand Down
4 changes: 2 additions & 2 deletions deploy/helm/aws-login/templates/aws-ecr-login-oneshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ spec:
name: "{{ .Values.awsEcr.configName }}"
resources:
limits:
memory: 500Mi
memory: 256Mi
requests:
memory: 500Mi
memory: 512Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ spec:
name: {{ .Values.envName | quote }}
resources:
limits:
memory: 500Mi
memory: 256Mi
requests:
memory: 500Mi
memory: 512Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ spec:
name: {{ .Values.envName | quote }}
resources:
limits:
memory: 500Mi
memory: 256Mi
requests:
memory: 500Mi
memory: 512Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ spec:
resources:
requests:
cpu: 2m
memory: 100M
memory: 128Mi
limits:
memory: 150M
memory: 256Mi
restartPolicy: Always
{{- if ne .Values.global.pullSecretName "None" }}
imagePullSecrets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ spec:
resources:
requests:
cpu: 1m
memory: 10M
memory: 16Mi
limits:
memory: 50M
memory: 64Mi
volumeMounts:
- name: nginx-html
mountPath: /usr/share/nginx/html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ spec:
name: create-admin-user
resources:
limits:
memory: 500Mi
memory: 256Mi
requests:
memory: 500Mi
memory: 512Mi
volumeMounts:
- mountPath: /home/app/.CombineFiles
name: backend-data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
resources:
requests:
cpu: 5m
memory: 960Mi
memory: 1Gi
{{- if .Values.global.includeResourceLimits }}
limits:
memory: 4Gi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
resources:
requests:
cpu: 25m
memory: 950Mi
memory: 1Gi
{{- if .Values.global.includeResourceLimits }}
limits:
memory: 2Gi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ spec:
resources:
requests:
cpu: 1m
memory: 15M
memory: 16Mi
{{- if .Values.global.includeResourceLimits }}
limits:
memory: 40M
memory: 64Mi
{{- end }}
volumeMounts:
- mountPath: /usr/share/nginx/fonts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ spec:
resources:
requests:
cpu: 200m
memory: 150M
memory: 256Mi
limits:
memory: 150M
memory: 512Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ spec:
- get-fonts.sh
resources:
limits:
memory: 500Mi
memory: 256Mi
requests:
memory: 500Mi
memory: 512Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ spec:
resources:
requests:
cpu: 200m
memory: 1200Mi
memory: 2Gi
{{- if .Values.global.includeResourceLimits }}
limits:
memory: 4Gi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ spec:
{{- end }}
resources:
limits:
memory: 500Mi
memory: 256Mi
requests:
memory: 500Mi
memory: 512Mi
securityContext:
capabilities: {}
terminationMessagePath: /dev/termination-log
Expand Down

0 comments on commit aaa7913

Please sign in to comment.