Skip to content

Commit

Permalink
fix(http-add-on): Fix resources variables for the http-add-on deploym… (
Browse files Browse the repository at this point in the history
  • Loading branch information
jocelynthode authored Jun 1, 2023
1 parent 9eca8ff commit c5fad71
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion http-add-on/templates/deployment-interceptor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
- containerPort: {{ .Values.interceptor.proxy.port }}
name: inter-proxy
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.interceptor.resources | nindent 10 }}
terminationGracePeriodSeconds: 10
{{- with .Values.interceptor.nodeSelector }}
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion http-add-on/templates/deployment-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
- containerPort: {{ .Values.operator.adminPort }}
name: admin-http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.operator.resources | nindent 10 }}
terminationGracePeriodSeconds: 10
{{- with .Values.operator.nodeSelector }}
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion http-add-on/templates/deployment-scaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
- name: KEDA_HTTP_SCALER_TARGET_PENDING_REQUESTS_INTERCEPTOR
value: "{{ default 200 .Values.scaler.pendingRequestsInterceptor }}"
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml .Values.scaler.resources | nindent 10 }}
terminationGracePeriodSeconds: 10
{{- with .Values.scaler.nodeSelector }}
nodeSelector:
Expand Down
10 changes: 9 additions & 1 deletion http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ scaler:
nodeSelector: {}
tolerations: []
affinity: {}
resources:
limits:
cpu: 0.5
memory: 64Mi
requests:
cpu: 250m
memory: 20Mi

interceptor:
# the image pull secrets for the interceptor
Expand Down Expand Up @@ -154,4 +161,5 @@ images:

rbac:
# install aggregate roles for edit and view
aggregateToDefaultRoles: false
aggregateToDefaultRoles: false

0 comments on commit c5fad71

Please sign in to comment.