diff --git a/charts/ttyd/templates/deployment.yaml b/charts/ttyd/templates/deployment.yaml index d4773a3..2bf6a53 100644 --- a/charts/ttyd/templates/deployment.yaml +++ b/charts/ttyd/templates/deployment.yaml @@ -31,9 +31,11 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - # ttyd args: bind port, then pass the shell command to execute in the browser terminal. + # The tsl0922/ttyd image uses tini as entrypoint (tini -- ). + # args replaces CMD, so ttyd must be the first element. # To use kubectl, switch image.repository to a custom image that bundles ttyd + kubectl. args: + - "ttyd" - "--port={{ .Values.ttyd.port }}" - {{ .Values.ttyd.command | quote }} ports: