Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Set Kubernetes resource values (#662)
Browse files Browse the repository at this point in the history
* Set kubernetes resource values

* Change production resources
  • Loading branch information
kszarek authored Nov 16, 2022
1 parent 1c95b5a commit e2e787d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 17 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,8 @@ jobs:
run: helm upgrade "${{ github.event.repository.name }}" ./deploy/hubble
--install --atomic --timeout 60s
--namespace "${{ github.event.repository.name }}"
--values ./deploy/hubble/values-stage.yaml
--set image.tag="${{ github.sha }}"
--set ingress.host=hubble.stage-crypto.worldcoin.dev
--set environment=stage
--set persistentStorage.volumeID=aws://us-east-1a/vol-065fd87c2124454e6
deploy-stage-hubble-instances-manual:
runs-on: ubuntu-latest
needs: [ build-and-push ]
Expand All @@ -231,10 +229,8 @@ jobs:
run: helm upgrade "${{ github.event.repository.name }}" ./deploy/hubble
--install
--namespace "${{ github.event.repository.name }}"
--values ./deploy/hubble/values-stage.yaml
--set image.tag="${{ github.sha }}"
--set ingress.host=hubble.stage-crypto.worldcoin.dev
--set environment=stage
--set persistentStorage.volumeID=aws://us-east-1a/vol-065fd87c2124454e6
deploy-prod:
runs-on: ubuntu-latest
needs: [ build-and-push ]
Expand Down
18 changes: 18 additions & 0 deletions deploy/hubble/values-stage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
environment: stage

ingress:
host: "hubble.stage-crypto.worldcoin.dev"

resources:
limits:
cpu: 4
memory: 6Gi
requests:
cpu: 3
memory: 4Gi

persistentStorage:
size: 100Gi
volumeID: aws://us-east-1a/vol-065fd87c2124454e6 # example: aws://us-east-1c/vol-aabbcc123

wipeDisk: false
18 changes: 7 additions & 11 deletions deploy/hubble/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,13 @@ ingress:
- hubble.crypto.worldcoin.dev
- production.hubble.worldcoin-distributors.com

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources:
limits:
cpu: 14
memory: 8Gi
requests:
cpu: 3
memory: 5Gi

nameOverride: ""
fullnameOverride: ""
Expand Down

0 comments on commit e2e787d

Please sign in to comment.