Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubectl exec

kubectl exec -it <pod-name> -n <namespace> -- <command>

example:
--------
kubectl exec -it tag-mgmt -n my-namespace -- /bin/sh
kubectl exec -it timescaledb -n data-store -- psql

timescaledb -> is pod name 
data-store -> is namespace
psql -> is command that we can run for postgres
Comment

kubectl exec bash

kubectl exec --stdin --tty shell-demo -- /bin/bash
Comment

PREVIOUS NEXT
Code Example
Shell :: git clone submodule 
Shell :: rsync --iinclude 
Shell :: update hstr editor 
Shell :: git crdencial --cache 
Shell :: no such file or directory scandir node-sass/vendor 
Shell :: gcloud set project 
Shell :: bash iterate over list of files 
Shell :: update dart 
Shell :: github clone branch 
Shell :: simple way to make a text field to accept numbers only with maximum number of length 13 digit and min 10 
Shell :: loading json in js 
Shell :: upload github 
Shell :: git remove all files from gitignore 
Shell :: ubuntu install geckodriver 
Shell :: sed remove line containing 
Shell :: apache2 change directory root 
Shell :: how to grep if the first letter is a character not a number 
Shell :: how to install bun.sh 
Shell :: git remove all tags 
Shell :: shell read file line by line 
Shell :: print first lines of file linux 
Shell :: find program path linux 
Shell :: difference between shell and terminal 
Shell :: laravel: command not found 
Shell :: ubuntu unzip zip 
Shell :: get linux distro from terminal 
Shell :: ffprobe find video codec 
Shell :: copy folder from local to ubuntu server 
Shell :: center dock icons ubuntu 
Shell :: delete a line starting with sed 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =