Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kubectl change namespace

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

kubectl switch namespace command

kubectl config set-context --current --namespace=<insert-namespace-name-here>
# Validate it
kubectl config view --minify | grep namespace:
Comment

kubectl get namespace

kubectl get namespace
or
kubectl get ns
Comment

kubectl create namespace

# Create Namespace in current cluster
kubectl create namespace my-namespace
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 :: install yarn on centos 
Shell :: install fast api 
Shell :: brew install atom 
Shell :: check if docker is running 
Shell :: remove orphan packages manjaro 
Shell :: ubuntu certbot nginx 
Shell :: how to change account in git bash 
Shell :: apt remove ppa 
Shell :: delete empty files bash 
Shell :: Install Helm Windows PowerShell 
Shell :: install pip kali 
Shell :: adding jars to classpath in linux 
Shell :: restart pulseaudio ubuntu 
Shell :: how to reverse an array in bash scripting? 
Shell :: check git url 
Shell :: ubuntu install opencl 
Shell :: free up space ubuntu 
Shell :: how to install react on mac 
Shell :: install cloudlinux centos with cpanel 
Shell :: linux mesuare request time http 
Shell :: Install dia for linux ubuntu 
Shell :: a.isdigit(): for negatives 
Shell :: shutdown heroku app 
Shell :: pip install tinymce 
Shell :: how to install grub customizer 
Shell :: teclado abnt arch linux 
Shell :: how to convert ts to mp4 with ffmpeg 
Shell :: Key path "file:///home/user/projectname/storage/oauth-public.key" does not exist or is not readable 
Shell :: vite react project 
Shell :: git commit amend 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =