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 :: remove all folder except one linux 
Shell :: how to make history | grep in windows 
Shell :: gitlab new project push commands 
Shell :: quarkus install cli 
Shell :: Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at localhost Port 80 
Shell :: delete git branch from remote 
Shell :: $() vs `` bash 
Shell :: The "@angular/compiler-cli" package was not properly installed. 
Shell :: git force merge branch 
Shell :: az aks get-credentials 
Shell :: how to check size of image in linux 
Shell :: ubuntu install composer 
Shell :: get data from json array in mysql 
Shell :: liburcu ubuntu install 
Shell :: prittier download ubuntu 
Shell :: remove letter in string bash 
Shell :: break line echo 
Shell :: homebrew install 
Shell :: cluster_block_exception 
Shell :: how to push newly created branch in git bash 
Shell :: git project root 
Shell :: copy a file from docker container to local machine 
Shell :: centos set permissions on folder recursively 
Shell :: mpi installation in linux 
Shell :: make shortcut folder in windows 
Shell :: how to reset source list ubuntu 
Shell :: git push heroku master error: src refspec master does not match any 
Shell :: git reset head to commit remote 
Shell :: how to get rid of local git repository 
Shell :: node global install 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =