We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to send an env before the shell on K9s. I'm researching the K9s configuration, podShell might work, but I wasn't successful.
When I send the Kubectl command manually, I get successful results;
kubectl -n default exec -it target -- env "NEW USER=$USER" bash root@target:/# env |grep NEW NEWUSER=mert
I want to add "NEWUSER=$USER" env before entering the shell. I tried add to podShell but not work.
shellPod: image: busybox:1.31 command: - env args: - NEWUSER=$USER - bash
I tried many solutions. I saw the pod shell command in the K9s logs;
/usr/local/bin/kubectl --context kubernetes-admin@kubernetes exec -it -n default hede -c hede -- sh -c command -v bash >/dev/null && exec bash || exec sh
Maybe it will work, but I couldn't change the code sent.
Is it possible to add this env before shell?
The text was updated successfully, but these errors were encountered:
env
Successfully merging a pull request may close this issue.
I want to send an env before the shell on K9s. I'm researching the K9s configuration, podShell might work, but I wasn't successful.
When I send the Kubectl command manually, I get successful results;
I want to add "NEWUSER=$USER" env before entering the shell.
I tried add to podShell but not work.
I tried many solutions. I saw the pod shell command in the K9s logs;
/usr/local/bin/kubectl --context kubernetes-admin@kubernetes exec -it -n default hede -c hede -- sh -c command -v bash >/dev/null && exec bash || exec sh
Maybe it will work, but I couldn't change the code sent.
Is it possible to add this env before shell?
The text was updated successfully, but these errors were encountered: