This is a reworked node-shell feature. It allows to run it on Bottlerocket OS and Windows nodes where there is no sh nor bash command.
Unfortunately, node-shell pods cannot be autoremoved anymore with sleep command. It is because now single pod is created and then kubectl attach is run. It is because kubectl exec with nsenter command won't work: Bottlerocket OS is SELinux hardened then nsenter won't have privileges to run in kubectl exec context.
Anyway: node-shell pods are correctly removed after the terminal is closed.
Because Windows needs separate image, there is a separate setting now:
This is a reworked node-shell feature. It allows to run it on Bottlerocket OS and Windows nodes where there is no
sh
norbash
command.Unfortunately, node-shell pods cannot be autoremoved anymore with
sleep
command. It is because now single pod is created and thenkubectl attach
is run. It is becausekubectl exec
withnsenter
command won't work: Bottlerocket OS is SELinux hardened thennsenter
won't have privileges to run inkubectl exec
context.Anyway: node-shell pods are correctly removed after the terminal is closed.
Because Windows needs separate image, there is a separate setting now:
Node shell for Ubuntu:
Node shell for Bottlerocket:
Node shell for Windows 2022: