Author : MD TAREQ HASSAN | Updated : 2021/04/15
Command Help
- Go to cluster > Overview
- Click connect > Sample commands will be shown
- At the bottom there are few links (i.e.
kubectl
Cheat Sheet)
Tools
See: Tools for Developers
Namespaces
Get namespaces
- Azure CLI command: ‘
kubectl get namespaces
’ - Azure Portal
- Go to aks cluster
- ‘Kubernetes resources’ section on left panel > Namespaces
Create namespace using Azure CLI command
- Open cloudshell
- Command: ‘
kubectl create namespace xyzns
’
Create namespace in Azure portal
- Go to aks cluster
- Kubernetes resources: Namespaces > Add
- yaml or json code > Add (behind the scene that yaml or json file will be feed to
kubectl
command)
apiVersion: v1
kind: Namespace
metadata:
name: xyz
labels:
name: xyz