Skip to content

Commit 77d4f20

Browse files
committed
Update README.md
1 parent a764229 commit 77d4f20

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

examples/fpm-nginx-dhi-k8s/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
## Steps:
44
1. ```kubectl apply -f namespace.yaml```
55
2. Registry Login (needed for DHI), see below.
6-
2. ```kubectl apply -f volumes.yaml```
7-
3. ```kubectl apply -f wsc-db.yaml```
6+
3. Preparation:
7+
* Change `ConfigMap` and `Secret` (Passwords) in `wsc-db.yaml` and `wsc-db.yaml`.
8+
* Set `storageClassName` in `volumes.yaml`.
9+
4. ```kubectl apply -f volumes.yaml```
10+
5. ```kubectl apply -f wsc-db.yaml```
811
* create database and user and set permission:
912
```sh
1013
# Database
@@ -21,10 +24,10 @@
2124
kubectl -n wsc exec -it deployment/wsc-db -c mysql -- sh -c 'mysql -h localhost -uroot -e "SELECT user, host, max_user_connections FROM mysql.user;"'
2225
kubectl -n wsc exec -it deployment/wsc-db -c mysql -- sh -c 'mysql -h localhost -uroot -e "SELECT host, user, db FROM mysql.db;"'
2326
```
24-
* Now you can edit `wsc-db.yaml` and use `MYSQL_EXPORTER_USER` and `MYSQLD_EXPORTER_PASSWORD` for exporter and optional use other user instead root for healtcheck.
25-
4. ```kubectl apply -f wsc-web.yaml```
26-
5. copy wsc files to html folder in wsc-web deployment: ```kubectl cp ....```
27-
6. ...
27+
* Now you can edit `wsc-db.yaml` and use `MYSQL_EXPORTER_USER` and `MYSQLD_EXPORTER_PASSWORD` for exporter and optional use other user instead root for healtcheck. Then redeploy.
28+
6. ```kubectl apply -f wsc-web.yaml```
29+
7. copy wsc files to html folder in wsc-web deployment: ```kubectl cp ....```
30+
8. ...
2831

2932
## Registry Login
3033

0 commit comments

Comments
 (0)