Skip to content

Commit

Permalink
Add container overrides sample
Browse files Browse the repository at this point in the history
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Oct 19, 2022
1 parent fde20a4 commit 98592b9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions samples/container-overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
kind: DevWorkspace
apiVersion: workspace.devfile.io/v1alpha2
metadata:
name: theia-next
spec:
started: true

template:
attributes:
controller.devfile.io/storage-type: ephemeral
projects:
- name: web-nodejs-sample
git:
remotes:
origin: "https://github.com/che-samples/web-nodejs-sample.git"
components:
- name: web-terminal
attributes:
container-overrides: {"resources":{"limits":{"nvidia.com/gpu":"1"}}}
container:
image: quay.io/wto/web-terminal-tooling:next
args:
- tail
- '-f'
- /dev/null
cpuLimit: 400m
cpuRequest: 100m
memoryLimit: 256Mi
memoryRequest: 128Mi

0 comments on commit 98592b9

Please sign in to comment.