Skip to content

Commit

Permalink
Net 10114 consul is under resourced when deploying to crc local versi…
Browse files Browse the repository at this point in the history
…on of open shift (#4184)

* cert managerkubectl get pods

* make resources for webhook cert manager configurable

* changelog entry

* Update charts/consul/values.yaml

* make gateway resources configurable

* update changelog
  • Loading branch information
sarahalsmiller committed Jul 22, 2024
1 parent 74e6c5f commit 35aa7ee
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions .changelog/4184.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```release-note:improvement
* helm: Adds `webhookCertManager.resources` field which can be configured to override the `resource` settings for the `webhook-cert-manager` deployment.
* helm: Adds `connectInject.apiGateway.managedGatewayClass.resourceJob.resources` field which can be configured to override the `resource` settings for the `gateway-resources-job` job.
```
9 changes: 3 additions & 6 deletions charts/consul/templates/gateway-resources-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,10 @@ spec:
- -metrics-port={{ .Values.connectInject.apiGateway.managedGatewayClass.metrics.port }}
{{- end }}
{{- end }}
{{- with .Values.connectInject.apiGateway.managedGatewayClass.resourceJob.resources }}
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "50Mi"
cpu: "50m"
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: config
mountPath: /consul/config
Expand Down
29 changes: 29 additions & 0 deletions charts/consul/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2462,6 +2462,35 @@ connectInject:
# will be the 80 + the number defined below.
mapPrivilegedContainerPorts: 0

# This value contains settings related to the gateway_resources_job that runs on helm install
resourceJob:
# The resource requests (CPU, memory, etc.) for the server-acl-init and server-acl-init-cleanup pods.
# This should be a YAML map corresponding to a Kubernetes
# [`ResourceRequirements``](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#resourcerequirements-v1-core)
# object.
#
# Example:
#
# ```yaml
# resources:
# requests:
# memory: '200Mi'
# cpu: '100m'
# limits:
# memory: '200Mi'
# cpu: '100m'
# ```
#
# @recurse: false
# @type: map
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "50Mi"
cpu: "50m"

# Configuration for the ServiceAccount created for the api-gateway component
serviceAccount:
# This value defines additional annotations for the client service account. This should be formatted as a multi-line
Expand Down

0 comments on commit 35aa7ee

Please sign in to comment.