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

Parameterize SpiceDB memory&cpu requests and limits #244

Merged
merged 1 commit into from
Nov 1, 2024
Merged
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
20 changes: 16 additions & 4 deletions deploy/kessel-relations-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
- name: spicedb
resources:
requests:
memory: "128Mi"
cpu: "25m"
memory: ${SPICEDB_REQUESTS_MEMORY}
cpu: ${SPICEDB_REQUESTS_CPU}
limits:
memory: "256Mi"
cpu: "100m"
memory: ${SPICEDB_LIMITS_MEMORY}
cpu: ${SPICEDB_LIMITS_CPU}
- apiVersion: cloud.redhat.com/v1alpha1
kind: ClowdApp
metadata:
Expand Down Expand Up @@ -102,7 +102,7 @@
required: true
- description: App Image
name: RELATIONS_IMAGE
value: quay.io/redhat-services-prod/project-kessel-tenant/kessel-relations/relations-api

Check warning on line 105 in deploy/kessel-relations-deploy.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

105:81 [line-length] line too long (92 > 80 characters)
- description: Image Tag
name: IMAGE_TAG
required: true
Expand All @@ -113,3 +113,15 @@
- description: Number of pods for relations service
name: RELATIONS_REPLICAS
value: '1'
- description: Memory request for SpiceDB
name: SPICEDB_REQUESTS_MEMORY
value: '128Mi'
- description: CPU request for SpiceDB
name: SPICEDB_REQUESTS_CPU
value: '25m'
- description: Memory limit for SpiceDB
name: SPICEDB_LIMITS_MEMORY
value: '256Mi'
- description: CPU limit for SpiceDB
name: SPICEDB_LIMITS_CPU
value: '100m'
Loading