Skip to content

Commit

Permalink
chore: set resources limits/requests (#10)
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor authored Jul 28, 2023
1 parent 0291d86 commit 8ddfed0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.8
memoryLimit: 2Gi
memoryLimit: '2Gi'
memoryRequest: '1Gi'
cpuLimit: '1'
cpuRequest: '0.5'
mountSources: true
env:
- name: GOCACHE
Expand All @@ -20,13 +23,15 @@ components:
commands:
- id: build
exec:
label: 1.Build
component: tools
workingDir: ${PROJECTS_ROOT}/golang-health-check
commandLine: go build
group:
kind: build
- id: run
exec:
label: 2.Run
component: tools
workingDir: ${PROJECTS_ROOT}/golang-health-check
commandLine: ./golang-health-check
Expand Down

0 comments on commit 8ddfed0

Please sign in to comment.