Skip to content

Commit e47d724

Browse files
committed
Move k8s doc in k8s folder
1 parent 79431c6 commit e47d724

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

k8s/.kube/readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Kubernetes (k8s) deploy information
2+
3+
This folder contains files needed to **create** a ACS with Kubernetes in Azure and to **deploy** eShopServices in a existing Kubernetes:
4+
5+
- `gen-k8s-env.ps1` Script to create a ACS with Kubernetes in Azure
6+
- `deploy.ps1` Script to deploy eShopOnContainers in a existing k8s
7+
8+
Refer to file [README.k8s.md](./README.k8s.md) for detailed information

README.k8s.md renamed to k8s/README.k8s.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ The k8s directory contains Kubernetes configuration for the eShopOnContainers ap
55
* A Kubernetes cluster. Follow Azure Container Service's [walkthrough](https://docs.microsoft.com/en-us/azure/container-service/container-service-kubernetes-walkthrough) to create one.
66
* A private Docker registry. Follow Azure Container Registry's [guide](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal) to create one.
77
* Optionally, previous steps can be skipped if you run gen-k8s-env.ps1 script to automatically create the azure environment needed for kubernetes deployment. Azure cli 2.0 must be previously installed [installation guide](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli). For example:
8+
89
>```
910
>./gen-k8s-env -resourceGroupName k8sGroup -location westeurope -registryName k8sregistry -orchestratorName k8s-cluster -dnsName k8s-dns
1011
>```
12+
1113
* A Docker development environment with `docker` and `docker-compose`.
1214
* Visit [docker.com](https://docker.com) to download the tools and set up the environment. Docker's [installation guide](https://docs.docker.com/engine/getstarted/step_one/#step-3-verify-your-installation) covers verifying your Docker installation.
1315
* The Kubernetes command line client, `kubectl`.
@@ -17,11 +19,13 @@ The k8s directory contains Kubernetes configuration for the eShopOnContainers ap
1719
1. Open a PowerShell command line at the `k8s` directory of your local eShopOnContainers repository.
1820
1. Ensure `docker`, `docker-compose`, and `kubectl` are on the path, and configured for your Docker machine and Kubernetes cluster.
1921
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:
22+
2023
>```
2124
>az acr credential show -n eshopregistry
2225
>```
2326
2427
Once the user and password are retrieved, run the following script for deployment. For example:
28+
2529
>```
2630
>./deploy.ps1 -registry myregistry.azurecr.io -dockerUser User -dockerPassword SecretPassword -configFile file_with_config.json
2731
>```

0 commit comments

Comments
 (0)