Updated 10. Setting the solution up in AKS (Azure Kubernetes Service) (markdown)
parent
399b7543ba
commit
24766a5712
@ -202,11 +202,17 @@ In order to see your ACR credentials type:
|
|||||||
Keep those credentials in a safe place.
|
Keep those credentials in a safe place.
|
||||||
|
|
||||||
|
|
||||||
# Deploy the eShopOnContainers application into the Kuberentes cluster with the deployment script
|
# Deploy the nginx-ingress and eShopOnContainers application into the Kuberentes cluster with deployment scripts
|
||||||
|
|
||||||
1. Open a PowerShell command line at the `k8s` directory of your local eShopOnContainers repository.
|
- 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.
|
- Ensure `docker`, `docker-compose`, and `kubectl` are on the path, and configured for your Docker machine and Kubernetes cluster.
|
||||||
1. Just the first time you deploy into the cluster, you need to deploy the nginx-ingress tier with two scripts:
|
|
||||||
|
### Setup the nginx-ingress
|
||||||
|
|
||||||
|
Just the first time you deploy eShopOnContainers into the cluster, you need to deploy the nginx-ingress tier with two scripts.
|
||||||
|
|
||||||
|
None of these PowerShell scripts accept any parameter.
|
||||||
|
The first script creates the generic nginx-ingress resources and the second script creates specific resources for using nginx-ingress under Azure AKS.
|
||||||
|
|
||||||
Run first script for ingress:
|
Run first script for ingress:
|
||||||
>```
|
>```
|
||||||
@ -214,13 +220,21 @@ Run first script for ingress:
|
|||||||
>```
|
>```
|
||||||

|

|
||||||
|
|
||||||
Run second script for ingress (it has several patches related to Azure):
|
Run second script for ingress:
|
||||||
>```
|
>```
|
||||||
>./deploy-ingress-azure.ps1
|
>./deploy-ingress-azure.ps1
|
||||||
>```
|
>```
|
||||||

|

|
||||||
|
|
||||||
**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".
|
To ensure that everything is installed you can type `kubectl get services -n ingress-nginx`. Output should be something like:
|
||||||
|
|
||||||
|
```
|
||||||
|
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
|
||||||
|
default-http-backend ClusterIP 10.0.200.205 <none> 80/TCP 2h
|
||||||
|
ingress-nginx LoadBalancer 10.0.52.205 xx.xx.xx.xx 80:31608/TCP,443:32518/TCP 2h
|
||||||
|
```
|
||||||
|
>**IMPORTANT**: The EXTERNAL-IP of the ingress-nginx takes a few minutes to appear. This will be the external IP of the cluster.
|
||||||
|
You also 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".
|
||||||
|
|
||||||
Errors if ingresses are still not available:
|
Errors if ingresses are still not available:
|
||||||

|

|
||||||
|
Loading…
x
Reference in New Issue
Block a user