Skip to content

Commit

Permalink
Add resource limit and request path to ms deployments' templates (#111)
Browse files Browse the repository at this point in the history
* add resources

* fix copy paste :[
  • Loading branch information
debdutdeb committed Sep 7, 2023
1 parent 2e0a4de commit 5e74c8e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rocketchat/templates/microservices-account-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.microservices.account.securityContext | nindent 10 }}
resources: {{- toYaml .Values.microservices.account.resources | nindent 10 }}
volumes:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }}
Expand All @@ -76,3 +77,5 @@ spec:
securityContext: {}
terminationGracePeriodSeconds: 30
{{- end }}

# vi: ts=8 et sw=2 smarttab
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.microservices.authorization.securityContext | nindent 10 }}
resources: {{- toYaml .Values.microservices.authorization.resources | nindent 10 }}
volumes:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }}
Expand All @@ -77,3 +78,5 @@ spec:
securityContext: {}
terminationGracePeriodSeconds: 30
{{- end }}

{{/* vi: ts=8 et sw=2 smarttab */}}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.microservices.ddpStreamer.securityContext | nindent 10 }}
resources: {{- toYaml .Values.microservices.ddpStreamer.resources | nindent 10 }}
volumes:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }}
Expand All @@ -78,3 +79,5 @@ spec:
securityContext: {}
terminationGracePeriodSeconds: 30
{{- end }}

{{/* vi: ts=8 et sw=2 smarttab */}}
3 changes: 3 additions & 0 deletions rocketchat/templates/microservices-presence-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.microservices.presence.securityContext | nindent 10 }}
resources: {{- toYaml .Values.microservices.presence.resources | nindent 10 }}
volumes:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }}
Expand All @@ -77,3 +78,5 @@ spec:
securityContext: {}
terminationGracePeriodSeconds: 30
{{- end }}

{{/* vi: ts=8 et sw=2 smarttab */}}
3 changes: 3 additions & 0 deletions rocketchat/templates/microservices-stream-hub-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.microservices.streamHub.securityContext | nindent 10 }}
resources: {{- toYaml .Values.microservices.streamHub.resources | nindent 10 }}
volumes:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 6 }}
Expand All @@ -87,3 +88,5 @@ spec:
securityContext: {}
terminationGracePeriodSeconds: 30
{{- end }}

{{/* vi: ts=8 et sw=2 smarttab */}}
5 changes: 5 additions & 0 deletions rocketchat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,30 +284,35 @@ microservices:
repository: rocketchat/presence-service
pullPolicy: IfNotPresent
securityContext: {}
resources: {}
ddpStreamer:
replicas: 1
image:
repository: rocketchat/ddp-streamer-service
pullPolicy: IfNotPresent
securityContext: {}
resources: {}
account:
replicas: 1
image:
repository: rocketchat/account-service
pullPolicy: IfNotPresent
securityContext: {}
resources: {}
authorization:
replicas: 1
image:
repository: rocketchat/authorization-service
pullPolicy: IfNotPresent
securityContext: {}
resources: {}
streamHub:
replicas: 1
image:
repository: rocketchat/stream-hub-service
pullPolicy: IfNotPresent
securityContext: {}
resources: {}
nats:
replicas: 1

Expand Down

0 comments on commit 5e74c8e

Please sign in to comment.