Thursday, February 20, 2020

Create a LoadBalancer,scale the pods and Change the image

to extract the login server details for acr:

az acr list --resource-group letskuberg --query "[].{acrLoginServer:loginServer}" --output table

And change the image to above url o/p and NodePort to LoadBalancer in the yaml file.
kubectl apply -f .\letskubedeploy.yml
kubectl get service --watch
start microsoft-edge:<IP_from_external_IP_column_above>

scale in aks cluster:
--
kubectl get nodes
az aks scale --resource-group letskuberg --name=letskubeakscluster --node-count 3
kubectl scale --replicas=5 deployment/letskube-deployment

change image:
-------
kubectl set image deployment letskube-deployment letskube=letskubeacr.azurecr.io/letskube:v2

kubectl get pods
kubectl get service





No comments:

Post a Comment