diff --git a/10.-Setting-the-solution-up-in-AKS-(Azure-Kubernetes-Service).md b/10.-Setting-the-solution-up-in-AKS-(Azure-Kubernetes-Service).md index 19676fa..d091d7a 100644 --- a/10.-Setting-the-solution-up-in-AKS-(Azure-Kubernetes-Service).md +++ b/10.-Setting-the-solution-up-in-AKS-(Azure-Kubernetes-Service).md @@ -206,7 +206,23 @@ Keep those credentials in a safe place. 1. Open a PowerShell command line at the `k8s` directory of your local eShopOnContainers repository. 1. Ensure `docker`, `docker-compose`, and `kubectl` are on the path, and configured for your Docker machine and Kubernetes cluster. -1. Run `deploy.ps1` with your registry information. The Docker username and password are provided by Azure Container Registry, and can be retrieved from the Azure portal. Optionally, ACR credentials can be obtained by running the following command: +1. Just the first time you deploy into the cluster, you need to deploy the nginx-ingress tier with two scripts: + +Run first script for ingress: +>``` +>./deploy-ingress.ps1 +>``` +![image](https://user-images.githubusercontent.com/1712635/40210019-942b7292-59f7-11e8-8a41-94b67cb8f57e.png) + +Run second script for ingress (it has several patches related to Azure): +>``` +>./deploy-ingress-azure.ps1 +>``` +![image](https://user-images.githubusercontent.com/1712635/40210064-c79f3834-59f7-11e8-8f03-b4b1c1ec9a24.png) + +**IMPORTANT** - You need to wait for a while until the ingress tiers are created before trying to deploy the application containers. Other than that you will still get the error "Must install ingress first - Run deploy-ingress.ps1 and deploy-ingress-azure.ps1". + +1. Finally, in order to deploy the application containers, run `deploy.ps1` with your ACR registry information. The Docker username and password are provided by Azure Container Registry, and can be retrieved from the Azure portal. Optionally, ACR credentials can be obtained by running the following command: >``` >az acr credential show -n eshopregistry @@ -215,7 +231,7 @@ Keep those credentials in a safe place. Once the user and password are retrieved, run the following script for deployment. For example: >``` ->./deploy.ps1 -registry youreshopacrregistry.azurecr.io -dockerUser YoureShopAcrRegistry -dockerPassword YOUR-PASSWORD -configFile conf_local.yaml +>./deploy.ps1 -registry youreshopacrregistry.azurecr.io -dockerUser YoureShopAcrRegistry -dockerPassword YOUR-ACR-PASSWORD -configFile conf_local.yaml >``` The parameter `configFile` is important (and mandatory) because it contains the configuration used for the Pods in Kubernetes. This allow deploying Pods that use your own resources in Azure or any other cloud provider.