Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Helm] Set QoS policies for CP and PL #19

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down Expand Up @@ -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
Expand Down
Loading