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 Dec 4, 2023
1 parent aadafc6 commit bbbbcf7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 2 additions & 0 deletions http-add-on/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ their default values.
|-----------|------|---------|-------------|
| `operator.affinity` | object | `{}` | Affinity for pod scheduling ([docs](https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/)) |
| `operator.imagePullSecrets` | list | `[]` | The image pull secrets for the operator component |
| `operator.kubeRbacProxy.resources.limits` | object | `{"cpu":"300m","memory":"200Mi"}` | The CPU/memory resource limit for the operator component's kube rbac proxy |
| `operator.kubeRbacProxy.resources.requests` | object | `{"cpu":"10m","memory":"20Mi"}` | The CPU/memory resource request for the operator component's kube rbac proxy |
| `operator.nodeSelector` | object | `{}` | Node selector for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)) |
| `operator.port` | int | `8443` | The port for the operator main server to run on |
| `operator.pullPolicy` | string | `"Always"` | The image pull policy for the operator component |
Expand Down
9 changes: 2 additions & 7 deletions http-add-on/templates/operator/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ spec:
image: "{{ .Values.images.kubeRbacProxy.name }}:{{ .Values.images.kubeRbacProxy.tag }}"
name: kube-rbac-proxy
resources:
limits:
cpu: 300m
memory: 200Mi
requests:
cpu: 10m
memory: 20Mi
{{- toYaml .Values.operator.kubeRbacProxy.resources | nindent 10 }}
{{- if .Values.securityContext.kuberbacproxy }}
securityContext:
{{- toYaml .Values.securityContext.kuberbacproxy | nindent 10 }}
Expand Down Expand Up @@ -100,4 +95,4 @@ spec:
{{- with .Values.operator.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
11 changes: 11 additions & 0 deletions http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bbbbcf7

Please sign in to comment.