Skip to content

Commit

Permalink
feat: make deployment resources configurable and up default memory (#372
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TristanHoladay authored Sep 20, 2024
1 parent 25aaaf9 commit 2981598
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ uds zarf package deploy oci://ghcr.io/defenseunicorns/packages/uds/uds-runtime:<

\*_See [all tags](https://github.com/defenseunicorns/uds-runtime/pkgs/container/packages%2Fuds%2Fuds-runtime)_

#### Resource Requirements

When running in cluster, the Runtime pod will need more or less resources based on the number of resources in the cluster it will be watching. The [current defaults](./chart/values.yaml) work for a cluster running mainly UDS Core (about 44 pods). For running in larger clusters, UDS Core + SWF + Leapfrog for example (150+ pods), the `resource.limits.memory` will need to be more like `2Gi`.

### Locally (Out of Cluster)

1. clone this repo
Expand Down
8 changes: 4 additions & 4 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ spec:
- containerPort: 8080
resources:
requests:
memory: "128Mi"
cpu: "250m"
memory: {{ .Values.resources.requests.memory | quote }}
cpu: {{ .Values.resources.requests.cpu | quote }}
limits:
memory: "512Mi"
cpu: "750m"
memory: {{ .Values.resources.limits.memory | quote }}
cpu: {{ .Values.resources.limits.cpu | quote }}
env:
- name: AUTH_SVC_ENABLED
value: {{ .Values.sso.enabled | quote }}
9 changes: 9 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ package:
gateway: admin
host: runtime
domain: "###ZARF_VAR_DOMAIN###"

# Default requests and limits when running only uds-core (increase for production)
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "750m"

0 comments on commit 2981598

Please sign in to comment.