Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubectl change namespace

kubectl config set-context --current --namespace=my-namespace
Comment

kubectl create namespace

# Create Namespace in current cluster
kubectl create namespace my-namespace
Comment

kubectl get namespace

kubectl get namespace
or
kubectl get ns
Comment

kubectl get namespaces command

kubectl get namespace
Comment

Switching the namespaces using kubectl commands

kubectl config set-context --current --namespace=<insert-namespace-name-here>
Comment

PREVIOUS NEXT
Code Example
Shell :: git push existing code to new repository 
Shell :: configure apache in ubuntu 
Shell :: how to upgrade packages in ubuntu 20.04 
Shell :: how to git login in terminal 
Shell :: install portainer on raspberry pi 
Shell :: git use ssh instead of https 
Shell :: docker load 
Shell :: git revert back to specific commit 
Shell :: Finding path to some ruby versions 
Shell :: install v2ray 
Shell :: sudoer sudo no password NOPASSWORD 
Shell :: how to get out of branch git 
Shell :: install sketch for ubuntu 
Shell :: get current working directory ubuntu 
Shell :: string to date in shell script 
Shell :: dhcp release mac os 
Shell :: docker-compose logs path 
Shell :: install python 3.10 on raspberry pi 
Shell :: how to turn on tomcat server mac terminal 
Shell :: dotnet test 
Shell :: what is the ssh credentials for minikube 
Shell :: git ignore already pushed file 
Shell :: comments in bash file 
Shell :: cant find module firebase 
Shell :: redis install 
Shell :: how to mount device linux 
Shell :: how to compress files using terminal in linux 
Shell :: git squash branch 
Shell :: cloning repository github 
Shell :: docker-compose: line 1: Not: command not found apt get 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =