How to setup kubernetes on Azure
Step 1. How to set AKS Cluster in Azure This step could reference the official documents as below, https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough-portal
Step 2 Open the could shell )
The link as https://shell.azure.com/
And input the Command as below
1 az aks get-credentials --resource-group AKSGroup --name AKSCluster Step 3 install Prometheus How to create change nampspace :
1 2 kuebctl create ns monitoring kubectl config set-context --current --namespace=monitoring The install command as below,
1 helm install stable/prometheus --name kube-prometheus --set rbac.create=true --namespace monitoring If you met the issue like
Error: namespaces “monitoring” is forbidden: User “system:serviceaccount:kube-system:default” cannot get resource “namespaces” in API group "” in the namespace “monitoring”