diff --git a/helm-chart/templates/deployment.yaml b/helm-chart/templates/deployment.yaml index d3bcfa6..1d0f2d0 100644 --- a/helm-chart/templates/deployment.yaml +++ b/helm-chart/templates/deployment.yaml @@ -61,10 +61,13 @@ spec: env: {{ toYaml .Values.controlPlane.env | nindent 12 }} {{- end }} - {{- if .Values.controlPlane.resources }} resources: - {{ toYaml .Values.controlPlane.resources | nindent 12 }} - {{- end }} + requests: + memory: {{ .Values.controlPlane.resources.requests.memory | default "1Gi" }} + cpu: {{ .Values.controlPlane.resources.requests.cpu | default "1" }} + limits: + memory: {{ .Values.controlPlane.resources.limits.memory | default "1Gi" }} + cpu: {{ .Values.controlPlane.resources.limits.cpu | default "1" }} volumeMounts: - mountPath: /app/conf/ name: "{{ .Values.controlPlane.name }}-conf-volume" diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 081e341..dd4e0fa 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -38,14 +38,14 @@ controlPlane: affinity: {} # Tolerations to allow pods to be scheduled on tainted nodes tolerations: {} - resources: + resources: # Recommended: Guaranteed QoS class. # Resource requests for the container requests: - memory: "512Mi" + memory: "1Gi" cpu: "1" # Resource limits for the container limits: - memory: "512Mi" + memory: "1Gi" cpu: "1" # Security context for the pod or container securityContext: {} @@ -82,15 +82,15 @@ privateLocations: containers: - env: [] # Environment variables for the container name: gatling-container # Name of the container - resources: + resources: # Recommended: Burstable QoS class. # Resource requests for the container limits": - memory: "512Mi" - cpu: "4" + memory: "2Gi" + cpu: "2" # Resource limits for the container requests: - memory: "512Mi" - cpu: "4" + memory: "1Gi" + cpu: "1" # Security context for the pod or container securityContext: sysctls: [] # List of sysctls to set in the pod