Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubectl connect to node bash

# Installation
curl -LO https://github.com/kvaps/kubectl-node-shell/raw/master/kubectl-node_shell
chmod +x ./kubectl-node_shell
sudo mv ./kubectl-node_shell /usr/local/bin/kubectl-node_shell

# Usage
## Get standard bash shell
kubectl node-shell <node>

## Execute custom command
kubectl node-shell <node> -- echo 123

## Use stdin
cat /etc/passwd | kubectl node-shell <node> -- sh -c 'cat > /tmp/passwd'

## Run oneliner script
kubectl node-shell <node> -- sh -c 'cat /tmp/passwd; rm -f /tmp/passwd'
Comment

PREVIOUS NEXT
Code Example
Shell :: which linux 
Shell :: zsh increment variable 
Shell :: zgrep recursive 
Shell :: run bat file 
Shell :: razer synapse for linux 
Shell :: git push default 
Shell :: Could not find or parse valid build output file. 
Shell :: git branch change remote 
Shell :: yarn upgrade 
Shell :: sed with variable 
Shell :: install adminlte in laravel 
Shell :: dbeaver password reveal 
Shell :: how to remove a file from git but keep local and ignore file 
Shell :: git stash changes 
Shell :: start tomcat 9 as a service windows 
Shell :: terminate gitpod ports 
Shell :: windows start shortcut cmd administrator 
Shell :: the git repository has too many active changes, only a subset of git features will be enabled. 
Shell :: installing api platform 
Shell :: windows how to kill localhost:3000 
Shell :: secure shell 
Shell :: cmake command not found 
Shell :: sudo pip3 install 
Shell :: sed remove all line breaks 
Shell :: check if cuda installed 
Shell :: vim convert tabs to spaces 
Shell :: centos monitor network traffic 
Shell :: how to delete files in linux 
Shell :: merge master into feauture branch 
Shell :: How can I check if a directory exists in a Bash shell script? 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =