begining to work: link
-
Connect to my claster
kub-test in subscription
ce0a8147-e18d-4ad2-b586-e20a2946eb4ххххх
az login
az account set --subscription ce0a8147-e18d-4ad2-b586-e20a2946eb4ххххх
az aks get-credentials --resource-group kub-gp --name kub-test
kubectl get service --all-namespaces
kubectl config get-contexts
az group create --name dops-sandbox --location westeurope
Creat my first service om AKS:
- Creat namespace
-
kind: Namespace apiVersion: v1 metadata: name: dops-sandbox status: phase: Active
-
- Get Creds of claster
-
RG="kub-gp" SP_CLUSTER="kub-test" az aks get-credentials --resource-group $RG --name $SP_CLUSTER kubectl config use-context $SP_CLUSTER kubectl config get-contexts SP_ID=$(az aks show --resource-group $RG --name $SP_CLUSTER --query servicePrincipalProfile.clientId -o tsv) echo $SP_ID
-
- creat disk link
-
RG='kub-gp' myAKSCluster='kub-test' RG_postgre=$(az aks show --resource-group $RG --name $myAKSCluster --query nodeResourceGroup -o tsv) echo $RG_postgre az disk create \ --resource-group $RG_postgre \ --name myAKSDisk \ --size-gb 5 \ --sku StandardSSD_LRS \ --zone 1 \ --location westeurope \ --query id --output tsv
-