Skip to content

Commit

Permalink
Fix http-add-on operator kubeRbacProxy resources
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ballman <[email protected]>
  • Loading branch information
aballman committed Nov 28, 2023
1 parent f70706b commit c7a1d02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 1 addition & 6 deletions http-add-on/templates/operator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ spec:
- --v=10
image: "{{ .Values.images.kubeRbacProxy.name }}:{{ .Values.images.kubeRbacProxy.tag }}"
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 10m
memory: 20Mi
{{- toYaml .Values.operator.kubeRbacProxy.resources | nindent 10 }}
name: kube-rbac-proxy
- args:
- --metrics-bind-address=127.0.0.1:8080
Expand Down
15 changes: 13 additions & 2 deletions http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ operator:
# -- The image pull secrets for the operator component
imagePullSecrets: []
# -- The namespace to watch for new `HTTPScaledObject`s. Leave this blank (i.e. `""`) to tell the operator to watch all namespaces.
watchNamespace: ""
watchNamespace: ''
# -- The image pull policy for the operator component
pullPolicy: Always
# operator pod resource limits
Expand All @@ -32,6 +32,17 @@ operator:
# -- Affinity for pod scheduling ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/))
affinity: {}

kubeRbacProxy:
resources:
# -- The CPU/memory resource limit for the operator component's kube rbac proxy
limits:
cpu: 300m
memory: 200Mi
# -- The CPU/memory resource request for the operator component's kube rbac proxy
requests:
cpu: 10m
memory: 20Mi

scaler:
# -- The image pull secrets for the scaler component
imagePullSecrets: []
Expand Down Expand Up @@ -141,7 +152,7 @@ images:
# the build for the latest commit to the `main` branch,
# and you can target any other commit with `sha-<GIT_SHA[0:7]>`
# -- Image tag for the http add on. This tag is applied to the images listed in `images.operator`, `images.interceptor`, and `images.scaler`. Optional, given app version of Helm chart is used by default
tag: ""
tag: ''
# -- Image name for the operator image component
operator: ghcr.io/kedacore/http-add-on-operator
# -- Image name for the interceptor image component
Expand Down

0 comments on commit c7a1d02

Please sign in to comment.