Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resource requests and limits to Utility Cluster deployments #59

Merged
merged 1 commit into from
Sep 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions assets/manifests/utility/gitea.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ spec:
name: stuart-gitea-http
port:
number: 3000

---
apiVersion: helm.cattle.io/v1
kind: HelmChart
Expand Down Expand Up @@ -51,7 +50,7 @@ spec:
server:
DISABLE_SSH: true
OFFLINE_MODE: true
database:
database:
DB_TYPE: sqlite3
# Note that the init script checks to see if the IP & port of the database service is accessible, so make sure you set those to something that resolves as successful (since sqlite uses files on disk setting the port & ip won't affect the running of gitea).
HOST: kevin-docker-registry.registry.svc.cluster.local:5000
Expand All @@ -62,8 +61,14 @@ spec:
repository:
ENABLE_PUSH_CREATE_USER: true
FORCE_PRIVATE: true

database:
builtIn:
postgresql:
enabled: false
resources:
requests:
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1"
memory: "2Gi"
7 changes: 7 additions & 0 deletions assets/manifests/utility/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ spec:
image:
repository: registry1.dso.mil/ironbank/opensource/docker/registry-v2
pullPolicy: Never
resources:
requests:
cpu: "100m"
memory: "512Mi"
limits:
cpu: "1"
memory: "2Gi"