File tree Expand file tree Collapse file tree 1 file changed +38
-20
lines changed
Expand file tree Collapse file tree 1 file changed +38
-20
lines changed Original file line number Diff line number Diff line change @@ -43,37 +43,55 @@ metadata:
4343 </rect>
4444 </svg>
4545
46+ commands :
47+ - id : init-ttyd-command
48+ apply :
49+ component : ttyd-injector
50+ events :
51+ preStart :
52+ - init-ttyd-command
4653components :
47- - name : web-terminal-runtime
54+ - name : ttyd-injector
4855 container :
49- image : tsl0922/ttyd:latest
50- mountSources : true
51- args :
52- - --port
53- - " 7681"
54- - --writable
55- - -w
56- - /projects
57- - /bin/bash
58- memoryLimit : 1024Mi
59- memoryRequest : 256Mi
56+ image : docker.io/tsl0922/ttyd:1.7.7-alpine
57+ command :
58+ - sh
59+ - -c
60+ - cp /usr/bin/ttyd /ttyd-vol/ttyd && chmod +x /ttyd-vol/ttyd
61+ volumeMounts :
62+ - name : ttyd-volume
63+ path : /ttyd-vol
64+ memoryLimit : 64Mi
65+ memoryRequest : 16Mi
6066 cpuLimit : 500m
6167 cpuRequest : 30m
68+ - name : ttyd-runtime
69+ attributes :
70+ app.kubernetes.io/component : web-terminal-runtime
71+ app.kubernetes.io/part-of : web-terminal.eclipse.org
72+ controller.devfile.io/container-contribution : true
73+ container :
74+ image : docker.io/tsl0922/ttyd:1.7.7-alpine
75+ memoryLimit : 128Mi
76+ memoryRequest : 32Mi
77+ cpuLimit : 500m
78+ cpuRequest : 30m
79+ volumeMounts :
80+ - name : ttyd-volume
81+ path : /ttyd-vol
6282 endpoints :
6383 - name : web-terminal
84+ targetPort : 7681
85+ exposure : public
86+ protocol : https
6487 attributes :
6588 type : main
6689 cookiesAuthEnabled : true
6790 discoverable : false
6891 urlRewriteSupported : true
69- targetPort : 7681
70- exposure : public
71- secure : true
72- protocol : https
73- attributes :
74- app.kubernetes.io/component : web-terminal-runtime
75- app.kubernetes.io/part-of : web-terminal.eclipse.org
76- controller.devfile.io/container-contribution : true
92+ - name : ttyd-volume
93+ volume :
94+ ephemeral : true
7795
7896attributes :
7997 version : null
You can’t perform that action at this time.
0 commit comments