Skip to content

Commit

Permalink
Merge pull request #59 from defenseunicorns/feature/add_resources_to_…
Browse files Browse the repository at this point in the history
…utility_cluster

Add resource requests and limits to Utility Cluster deployments
  • Loading branch information
jeff-mccoy authored Sep 26, 2021
2 parents 72c5514 + 347b9ea commit c12f6d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
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"

0 comments on commit c12f6d5

Please sign in to comment.