Container terminal crashes for powershell - System.IndexOutOfRangeException: Index was outside the bounds of the array. #3774
Labels
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
Prerequisites
Exception report
Screenshot
Environment data
Steps to reproduce
Create a container use the following command:
k run toolbox10 --image=azuresearchlab.azurecr.io/toolbox:0.0.4-qinl -- /bin/pwsh -NoLogo -NoExit -Command Start-Sleep -Seconds 9999
using @kubernetes/client-node to create interactive session
const kc = new k8s.KubeConfig();
kc.loadFromDefault();
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
const exec_command2 = [
'/bin/bash',
'-c',
'export TERM=xterm-256color;printenv;pwsh -NoLogo']
const exec = new k8s.Exec(kc);
socket = await exec.exec(namespace, podName, containerName, exec_command2, stdout, stdout, stdin, true,
(status: k8s.V1Status) => {
console.log('Exited with status:');
console.log(JSON.stringify(status, null, 2));
})
Expected behavior
It should create an interactive session and pipe the input to container
Actual behavior
Terminal crashes when typing in powershell session. However, it works fine for bash
The text was updated successfully, but these errors were encountered: