Wednesday, February 19, 2020

Create a cluster and deploy a service

Deploy an Azure k8s service:
------------
create an azure service principal.to allow a service to interact with other services.

az ad sp create-for-rbac --skip-assignment
note appId and password from o/p

$acrId = az acr show --name letskubeacr --resource-group letskuberg --query "id" --output tsv
az role assignment create --assignee "<appId noted earlier>" --role Reader --scope $acrId

creating aks cluster:


cat ~\.kube\config | more
will show details as local kluster

will change as current context:
az aks get-credentials --name letskubeakscluster --resource-group letsuberg

cat ~\.kube\config | sls "letskubeakscluster"
kubectl get nodes

No comments:

Post a Comment