Skip to content

Commit 80d86d5

Browse files
committed
Set request limits for operator to ensure QOS Class
Signed-off-by: Simon Graband <sgraband@eclipsesource.com>
1 parent c16c7f2 commit 80d86d5

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

charts/theia-cloud-base/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# theia-cloud-base
22

3-
![Version: 1.1.0-next.0](https://img.shields.io/badge/Version-1.1.0--next.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0-next](https://img.shields.io/badge/AppVersion-1.1.0--next-informational?style=flat-square)
3+
![Version: 1.1.0-next.1](https://img.shields.io/badge/Version-1.1.0--next.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.0-next](https://img.shields.io/badge/AppVersion-1.1.0--next-informational?style=flat-square)
44

55
Theia-cloud base chart
66

charts/theia-cloud/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ A Helm chart for Theia Cloud
8585
| operator.oAuth2ProxyVersion | string | `"v7.5.1"` | The version to use of the quay.io/oauth2-proxy/oauth2-proxy image |
8686
| operator.replicas | int | `1` | Number of operator instances to create |
8787
| operator.requestedStorage | string | `"250Mi"` | The amount of requested storage for each persistent volume claim (PVC) for workspaces. This is directly passed to created PVCs and must be a valid Kubernetes quantity. See https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/ |
88+
| operator.requestsCpu | string | `"100m"` | Amount of CPU requested for the operator.. |
89+
| operator.requestsMemory | string | `"1000M"` | Amount of memory requested for the operator. |
8890
| operator.sessionsPerUser | string | `"1"` | Set the number of active sessions a single user can launch |
8991
| operator.storageClassName | string | `"default"` | The name of the storage class for persistent volume claims for workspaces. This storage class must be present on the cluster. Most cloud providers offer a default storage class without additional configuration. |
9092
| operator.wondershaperImage | string | `"theiacloud/theia-cloud-wondershaper:1.1.0-next"` | If bandwidthLimiter is set to WONDERSHAPER or K8SANNOTATIONANDWONDERSHAPER this image will be used for the wondershaper init container |

charts/theia-cloud/templates/operator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,5 @@ spec:
106106
imagePullSecrets:
107107
- name: {{ tpl (.Values.operator.imagePullSecret | toString) . }}
108108
{{- end }}
109+
requestsMemory: {{ tpl (.Values.operator.requestsMemory | toString) . }}
110+
requestsCpu: {{ tpl (.Values.operator.requestsCpu | toString) . }}

charts/theia-cloud/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ operator:
274274
# -- The version to use of the quay.io/oauth2-proxy/oauth2-proxy image
275275
oAuth2ProxyVersion: "v7.5.1"
276276

277+
# -- Amount of memory requested for the operator.
278+
requestsMemory: 1000M
279+
280+
# -- Amount of CPU requested for the operator..
281+
requestsCpu: "100m"
282+
277283
# -- Values of the Theia Cloud REST service
278284
# @default -- (see details below)
279285
service:

0 commit comments

Comments
 (0)