automating creating a namespace in kubernetes code example
Example 1: k8s create namespace
# cli
kubectl create ns test-namespace
# or in yaml
---
apiVersion: v1
kind: Namespace
metadata:
name: test-namespace
Example 2: kubernetes get namespace
# Get Namespaces for current cluster
kubectl get namespaces