Skip to content

Commit

Permalink
Add ability to specify resources in helm chart (#375)
Browse files Browse the repository at this point in the history
* add ability to specify resources in helm chart

Signed-off-by: Tyler Schade <tyler.schade@solo.io>

* --amend

Signed-off-by: Tyler Schade <tyler.schade@solo.io>

* --amend

Signed-off-by: Tyler Schade <tyler.schade@solo.io>

---------

Signed-off-by: Tyler Schade <tyler.schade@solo.io>
  • Loading branch information
tjons authored Sep 30, 2024
1 parent 4da701e commit 196dc48
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
16 changes: 8 additions & 8 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ spec:
protocol: TCP
resources:
limits:
cpu: 500m
memory: 128Mi
cpu: {{ .Values.proxy.resources.limits.cpu }}
memory: {{ .Values.proxy.resources.limits.memory }}
requests:
cpu: 5m
memory: 64Mi
cpu: {{ .Values.proxy.resources.requests.cpu }}
memory: {{ .Values.proxy.resources.requests.memory }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -101,11 +101,11 @@ spec:
periodSeconds: 10
resources:
limits:
cpu: 500m
memory: 512Mi
cpu: {{ .Values.operator.resources.limits.cpu }}
memory: {{ .Values.operator.resources.limits.memory }}
requests:
cpu: 10m
memory: 64Mi
cpu: {{ .Values.operator.resources.requests.cpu }}
memory: {{ .Values.operator.resources.requests.memory }}
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
15 changes: 15 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ proxy:
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.16.0
# We're commenting out the imagePullPolicy to use k8s defaults
# imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 5m
memory: 64Mi
operator:
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 10m
memory: 64Mi

# setting this to true will add resources required to generate the bundle using operator-sdk
bundleGeneration: false
Expand Down

0 comments on commit 196dc48

Please sign in to comment.