Skip to content

Commit

Permalink
vietnam-devs#9 corect config for MySQL and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thangchung committed Aug 26, 2018
1 parent 1231094 commit ee318d8
Show file tree
Hide file tree
Showing 12 changed files with 111 additions and 108 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ CoolStore is a containerised polyglot microservices application consisting of se

It demonstrates how to wire up small microservices into a larger application using microservice architectural principals.

### Screenshots

| Home Page | Product Page |
|-----------|--------------|
| [![home-page](assets/images/ui-screen-1.PNG?raw=true)](assets/images/ui-screen-1.PNG?raw=true) | [![product-page](assets/images/ui-screen-2.PNG?raw=true)](assets/images/ui-screen-2.PNG?raw=true) |

### Presentation
Our team uses this application to demonstrate Kubernetes, AKS, Istio and similar cloud-native technologies in events as following

Expand Down
Binary file modified assets/images/arch-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/ui-screen-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/ui-screen-2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/state-of-the-art.pptx
Binary file not shown.
14 changes: 0 additions & 14 deletions deploys/charts/coolstore/templates/cart-db-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD
value: "P@ssw0rd"
- name: MYSQL_ALLOW_EMPTY_PASSWORD
value: false
- name: MYSQL_RANDOM_ROOT_PASSWORD
value: false
- name: DB_TYPE
value: "mysql"
- name: MYSQL_DB_HOST
value: "maindb"
- name: MYSQL_DB_PORT
value: "3306"
- name: MYSQL_DB_USER
value: "root"
- name: MYSQL_DB_PASSWORD
value: "P@ssw0rd"
ports:
- containerPort: 3306
---
14 changes: 0 additions & 14 deletions deploys/charts/coolstore/templates/inventory-db-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD
value: "P@ssw0rd"
- name: MYSQL_ALLOW_EMPTY_PASSWORD
value: false
- name: MYSQL_RANDOM_ROOT_PASSWORD
value: false
- name: DB_TYPE
value: "mysql"
- name: MYSQL_DB_HOST
value: "maindb"
- name: MYSQL_DB_PORT
value: "3306"
- name: MYSQL_DB_USER
value: "root"
- name: MYSQL_DB_PASSWORD
value: "P@ssw0rd"
ports:
- containerPort: 3306
---
14 changes: 0 additions & 14 deletions deploys/charts/coolstore/templates/review-db-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,6 @@ spec:
env:
- name: MYSQL_ROOT_PASSWORD
value: "P@ssw0rd"
- name: MYSQL_ALLOW_EMPTY_PASSWORD
value: false
- name: MYSQL_RANDOM_ROOT_PASSWORD
value: false
- name: DB_TYPE
value: "mysql"
- name: MYSQL_DB_HOST
value: "maindb"
- name: MYSQL_DB_PORT
value: "3306"
- name: MYSQL_DB_USER
value: "root"
- name: MYSQL_DB_PASSWORD
value: "P@ssw0rd"
ports:
- containerPort: 3306
---
8 changes: 4 additions & 4 deletions src/services/cart/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
"k8s": {
"mssqldb": {
"Host": "CART_DB_SERVICE_HOST",
"Port": "CART_DB_SERVICE_PORT",
"Host": "CARTDB_SERVICE_HOST",
"Port": "CARTDB_SERVICE_PORT",
"Database": "maindb",
"UserName": "cs",
"Password": "P@ssw0rd"
},
"mysqldb": {
"Host": "CART_DB_SERVICE_HOST",
"Port": "CART_DB_SERVICE_PORT",
"Host": "CARTDB_SERVICE_HOST",
"Port": "CARTDB_SERVICE_PORT",
"Database": "maindb",
"UserName": "root",
"Password": "P@ssw0rd",
Expand Down
Loading

0 comments on commit ee318d8

Please sign in to comment.