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
------------
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