From b2f43e818dcd5543a804f61fcb255de305f40399 Mon Sep 17 00:00:00 2001 From: Miguel Veloso Date: Wed, 21 Aug 2019 11:35:39 +0100 Subject: [PATCH] Include section to expore sql and rabbitmq internal services --- Deploy-to-Local-Kubernetes.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Deploy-to-Local-Kubernetes.md b/Deploy-to-Local-Kubernetes.md index ee2dfb9..7d01daa 100644 --- a/Deploy-to-Local-Kubernetes.md +++ b/Deploy-to-Local-Kubernetes.md @@ -13,6 +13,7 @@ - [Deploy the public official eShopOnContainer images from DockerHub](#deploy-the-public-official-eshoponcontainer-images-from-dockerhub) - [Check deployment status](#check-deployment-status) - [Delete deployments](#delete-deployments) + - [Explore internal services](#explore-internal-services) - [Known issues](#known-issues) - [Optional - Install Kubernetes Dashboard UI](#optional---install-kubernetes-dashboard-ui) - [IMPORTANT](#important) @@ -234,6 +235,25 @@ To delete eShop deployments you can use this command: helm delete --purge $(helm ls --all --short eshop) ``` +### Explore internal services + +You can expose internal services by using [NodePorts](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport) (among some other options) + +To expose the SQL Server service and the RabbitMQ admin port, you can run the following script, from the `k8s` folder: + +```powershell +.\deploy-nodeports.ps1 +``` + +This will expose the following infrastructure services: +- SQL Server (connect with [SSMS](https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms) to `tcp:localhost,31433` with `User Id=sa;Password=Pass@word;` and explore databases: + - Identity: `Microsoft.eShopOnContainers.Service.IdentityDb` + - Catalog: `Microsoft.eShopOnContainers.Services.CatalogDb` + - Marketing: `Microsoft.eShopOnContainers.Services.MarketingDb` + - Ordering: `Microsoft.eShopOnContainers.Services.OrdeingDb` + - Webhooks: `Microsoft.eShopOnContainers.Services.WebhooksDb` +- RabbitMQ (Queue management): (login with username=guest, password=guest) + ## Known issues Login from the webmvc results in following error: HttpRequestException: Response status code does not indicate success: 404 (Not Found).