Charles Lowell f0b5513190 | 7 years ago | |
---|---|---|
.. | ||
README.md | 7 years ago | |
deploy.ps1 | 7 years ago | |
deployments.yaml | 7 years ago | |
frontend.yaml | 7 years ago | |
nginx.conf | 7 years ago | |
services.yaml | 7 years ago | |
sql-data.yaml | 7 years ago |
This directory contains Kubernetes configuration for the eShopOnContainers app and a PowerShell script to deploy it to a cluster. Each microservice has a deployment configuration in deployments.yaml
, and is exposed to the cluster by a service in services.yaml
. The microservices are exposed externally on individual routes (/basket-api
, /webmvc
, etc.) by an nginx reverse proxy as specified in frontend.yaml
and nginx.conf
.
eShopOnContainers/k8s
.docker
, docker-compose
, and kubectl
are on the path, and configured for your Docker machine and Kubernetes cluster.deploy.ps1
with your registry information. For example:
./deploy.ps1 -registry myregistry.azurecr.io -dockerUser User -dockerPassword SecretPassword
The Docker username and password are provided by Azure Container Registry, and can be retrieved from the Azure portal.
The script will build the code and corresponding Docker images, push the latter to your registry, and deploy the application to your Kubernetes cluster.
/webspa
kubectl
failures in deploy.ps1
.