diff --git a/README.md b/README.md index e69599b..c0c868d 100644 --- a/README.md +++ b/README.md @@ -134,9 +134,10 @@ Using the CQRS pattern, we cut each business functionality into vertical slices, ## How to Run -### Config Certificate +> ### Docker -Run the following commands for [self-signed certificates](https://docs.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-6.0) in your system +#### Config Certificate +Run the following commands to [Config SSL](https://docs.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-6.0) in your system #### Windows using Linux containers ```bash @@ -150,7 +151,7 @@ dotnet dev-certs https --trust dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$ dotnet dev-certs https --trust ``` -### Docker Compose +#### Docker Compose Run this app in docker using the [docker-compose.yaml](./deployments/docker-compose/docker-compose.yaml) file with the below command at the root of the application: @@ -158,12 +159,34 @@ Run this app in docker using the [docker-compose.yaml](./deployments/docker-comp docker-compose -f ./deployments/docker-compose/docker-compose.yaml up -d ``` -### Kubernetes - TODO +> ### Kubernetes +1- Run the following command for applying TLS in Kubernetes cluster + +```bash +kubectl apply -f ./deployments/kubernetes/booking-secret.yml +``` +#### Note: +Also, we can run this commands for creating new `tls.key` and `tls.crt` and replace them with old one in `booking-secret.yml` +```bash +openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout tls.key -out tls.crt -subj "/CN=booking-microservices.com" -days 365 + +kubectl create secret tls booking-tls --key tls.key --cert tls.crt +``` + +2- Run the following command to apply all deployments and services and configmaps that we need +```bash +kubectl apply -f ./deployments/kubernetes/booking-microservices.yml +``` + +3- Run the following command for apply ingress-controller for revers proxy +```bash +kubectl apply -f ./deployments/kubernetes/ingress.yml +``` ### Documentation Apis Each microservice uses swagger open api, navigate to /swagger for a list of every endpoint. -For testing apis I used the [REST Client](https://github.com/Huachao/vscode-restclient) plugin for VSCode running this file [booking.rest](./booking.rest). +For testing apis I used the [REST Client](https://github.com/Huachao/vscode-restclient) plugin for VS Code running this file [booking.rest](./booking.rest). # Support @@ -175,7 +198,7 @@ Thanks a bunch for supporting me! ## Contribution -Thanks to all [contributors](https://github.com/meysamhadeli/booking-microservices/graphs/contributors), you're awesome and this wouldn't be possible without you! The goal is to build a categorized community-driven collection of very well-known resources. +Thanks to all [contributors](https://github.com/meysamhadeli/booking-microservices/graphs/contributors), you're awesome and this wouldn't be possible without you! The goal is to build a categorized, community-driven collection of very well-known resources. ## Project References & Credits diff --git a/current-version.txt b/current-version.txt deleted file mode 100644 index e69de29..0000000