Horje
kubectl create namespace Code Example
kubectl change namespace
kubectl config set-context --current --namespace=my-namespace
k8s create namespace
# cli
kubectl create ns test-namespace

# or in yaml
---
apiVersion: v1
kind: Namespace
metadata:
  name: test-namespace
kubectl switch namespace command
kubectl config set-context --current --namespace=<insert-namespace-name-here>
# Validate it
kubectl config view --minify | grep namespace:
kubectl create namespace
# Create Namespace in current cluster
kubectl create namespace my-namespace
kubectl get namespace
kubectl get namespace
or
kubectl get ns




Shell

Related
node number id generator Code Example node number id generator Code Example
create new docker image from existing Code Example create new docker image from existing Code Example
git check if commit in master Code Example git check if commit in master Code Example
remove commit from github Code Example remove commit from github Code Example
supervisord install ubuntu Code Example supervisord install ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9