Fix ttyd stuck
This commit is contained in:
parent
5ba6a5a1ce
commit
ecd5c0c6d7
@ -33,11 +33,19 @@ spec:
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
# The tsl0922/ttyd image uses tini as entrypoint (tini -- <cmd>).
|
||||
# args replaces CMD, so ttyd must be the first element.
|
||||
# "--" is required to separate ttyd flags from the shell command;
|
||||
# without it, ttyd does not correctly attach the shell as an
|
||||
# interactive process, causing the browser terminal to accept no input.
|
||||
# To use kubectl, switch image.repository to a custom image that bundles ttyd + kubectl.
|
||||
args:
|
||||
- "ttyd"
|
||||
- "--port={{ .Values.ttyd.port }}"
|
||||
- "--"
|
||||
- {{ .Values.ttyd.command | quote }}
|
||||
# tty + stdin are required for the browser terminal to accept keyboard input.
|
||||
# Without these the PTY is not allocated and the shell is non-interactive.
|
||||
tty: true
|
||||
stdin: true
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.ttyd.port }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user