refer to this link for more information link
cd file-upload-apidocker compose up -d- Open a browser and type http://0.0.0.0:5000
- To check the container log:
- Run
docker psto get the container id - Run
docker logs -f <container id>
- Run
- Change the tag of the image
docker tag xx.microsoft.com/testapp:v1 myregistry.azurecr.io/testapp:v1
- Log in your azure account if needed
az loginaz account set --subscription xxxx-xxxx-xxxx....
- Log in to ACR
az acr login --name myregistry
- Push the image and check the image in the ACR in the Azure portal
docker push myregistry.azurecr.io/testapp:v1
-
delete pods(if cannot delete the pod follow this link)
kubectl get pods -Akubectl get deployment -n default (default is the namespace)kubectl delete deployment azure-form-recognizer-read -n default
-
kubectl get nodesinformation about pools if you create a new pool(testai) and also get name for new pool -
kubectl label nodes aks-testai-30110567-vmss000003 node=testailabel the node -
kubectl apply -f azure-app-deployment.yaml -
kubectl apply -f azure-app-service.yaml -
kubectl get service azure-app -
Log in to Azure portal and and click:
- aks-cluster -> Services and ingresses -> fileupload -> External IP
- Run your test in the opened brower tab