Skip to content

Commit

Permalink
HDDS-11918. Add support for resource requests and limits (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnskr authored Dec 17, 2024
1 parent 2d1f750 commit 7e49d6f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/ozone/templates/datanode/datanode-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ spec:
path: /
port: ui
initialDelaySeconds: 30
{{- with .Values.datanode.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: {{ .Values.configuration.dir }}
Expand Down
3 changes: 3 additions & 0 deletions charts/ozone/templates/om/om-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ spec:
path: /
port: ui
initialDelaySeconds: 60
{{- with .Values.om.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: {{ .Values.configuration.dir }}
Expand Down
3 changes: 3 additions & 0 deletions charts/ozone/templates/s3g/s3g-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ spec:
path: /
port: rest
initialDelaySeconds: 30
{{- with .Values.s3g.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: {{ .Values.configuration.dir }}
Expand Down
3 changes: 3 additions & 0 deletions charts/ozone/templates/scm/scm-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ spec:
path: /
port: ui
initialDelaySeconds: 30
{{- with .Values.scm.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: {{ .Values.configuration.dir }}
Expand Down
8 changes: 8 additions & 0 deletions charts/ozone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ datanode:
env: []
# Additional Datanode envFrom items to set up environment variables (templated)
envFrom: []
# Datanode resource requests and limits
resources: {}
# Constrain Datanode pods to nodes with specific node labels
nodeSelector: {}
# Constrain Datanode pods to nodes by affinity/anti-affinity rules
Expand Down Expand Up @@ -112,6 +114,8 @@ om:
env: []
# Additional Ozone Manager envFrom items to set up environment variables (templated)
envFrom: []
# Ozone Manager resource requests and limits
resources: {}
# Constrain Ozone Manager pods to nodes with specific node labels
nodeSelector: {}
# Constrain Ozone Manager pods to nodes by affinity/anti-affinity rules
Expand Down Expand Up @@ -153,6 +157,8 @@ s3g:
env: []
# Additional S3 Gateway envFrom items to set up environment variables (templated)
envFrom: []
# S3 Gateway resource requests and limits
resources: {}
# Constrain S3 Gateway pods to nodes with specific node labels
nodeSelector: {}
# Constrain S3 Gateway pods to nodes by affinity/anti-affinity rules
Expand Down Expand Up @@ -194,6 +200,8 @@ scm:
env: []
# Additional Storage Container Manager envFrom items to set up environment variables (templated)
envFrom: []
# Storage Container Manager resource requests and limits
resources: {}
# Constrain Storage Container Manager pods to nodes with specific node labels
nodeSelector: {}
# Constrain Storage Container Manager pods to nodes by affinity/anti-affinity rules
Expand Down

0 comments on commit 7e49d6f

Please sign in to comment.