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

Add ability to specify resources in helm chart #375

Merged
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
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