kubectl-plugins
kubectl-plugins copied to clipboard
A Collection of Plugins for kubectl Integration (exec as any user, context switching, etc).
After kubernetes migrated to containerd and updating the plugin with the workaround, now I get the following error: ``` $ kubectl ssh -u root -n cms videocms-backend-7f75745599-qbrnk Connecting... Pod: videocms-backend-7f75745599-qbrnk...
Fixes the ssh plugin that's not working on newer kubernetes clusters by adding securityContext. Please test if this breaks anything for you.
I was originally getting the type issue and applied the fix at https://github.com/jordanwilson230/kubectl-plugins/pull/36/files Now I get a different error: ``` If you don't see a command prompt, try pressing enter....
## Feature Setting the path should be done in `.profile` instead of `.bash_profile` in https://github.com/jordanwilson230/kubectl-plugins/blob/master/install-plugins.sh. Simply append: ``` PATH="$PATH:$HOME/.kube/plugins/jordanwilson230" ``` To `.profile` instead of `.bash_profile`. ## Reason Having a `.bash_profile`...
**Is your feature request related to a problem? Please describe.** Please support conventional `-i`, `-t` flags for exec-as, so that the command is able to support interactive shell sessions, just...
**Is your feature request related to a problem? Please describe.** Please integrate the ssh plugin into krew to make it more convenient to install. **Describe the solution you'd like** Publish...
#### shell for i in `kubectl -n spring get pod -o wide | grep harbor | awk '{print $1}'`;do kubectl exec-as -u root -n spring $i -- echo "192.168.0.3 harbor.kubesphere.lan"...
**Is your feature request related to a problem? Please describe.** Currently it is impossible to use kubectl-prompt with zsh because : * function definition does not work in zsh *...
## Checklist 1) Adresses Issue: none 2) Quick summary of changes: Add context param to kubectl-ssh 3) Changes are GNU/BSD Compatable: yes 4) Changes are applicable to the wider community:...
Hello, https://github.com/jordanwilson230/kubectl-plugins/blob/98ee1158cb6c5952f3f6760ebd462dd2dc41abad/kubectl-exec-as#L88 Locally I modified it as: ``` test "$(exec "${KUBECTL}" get po "$(whoami|tr '[:upper:]' '[:lower:]'|tr -dc '[:alnum:]')-1" 2>/dev/null)" && container="$(whoami|tr '[:upper:]' '[:lower:]'|tr -dc '[:alnum:]')-2" || container="$(whoami|tr '[:upper:]' '[:lower:]'|tr -dc...