Skip to content

Commit 8985cf0

Browse files
committed
Add container overrides sample
Signed-off-by: Angel Misevski <[email protected]>
1 parent 29a7c9c commit 8985cf0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

samples/container-overrides.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
kind: DevWorkspace
2+
apiVersion: workspace.devfile.io/v1alpha2
3+
metadata:
4+
name: theia-next
5+
spec:
6+
started: true
7+
8+
template:
9+
attributes:
10+
controller.devfile.io/storage-type: ephemeral
11+
projects:
12+
- name: web-nodejs-sample
13+
git:
14+
remotes:
15+
origin: "https://github.com/che-samples/web-nodejs-sample.git"
16+
components:
17+
- name: web-terminal
18+
attributes:
19+
container-overrides: {"resources":{"limits":{"nvidia.com/gpu":"1"}}}
20+
container:
21+
image: quay.io/wto/web-terminal-tooling:next
22+
args:
23+
- tail
24+
- '-f'
25+
- /dev/null
26+
cpuLimit: 400m
27+
cpuRequest: 100m
28+
memoryLimit: 256Mi
29+
memoryRequest: 128Mi

0 commit comments

Comments
 (0)