You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/fpm-nginx-dhi-k8s/README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,11 @@
3
3
## Steps:
4
4
1.```kubectl apply -f namespace.yaml```
5
5
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```
8
11
* create database and user and set permission:
9
12
```sh
10
13
# Database
@@ -21,10 +24,10 @@
21
24
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;"'
22
25
kubectl -n wsc exec -it deployment/wsc-db -c mysql -- sh -c 'mysql -h localhost -uroot -e "SELECT host, user, db FROM mysql.db;"'
23
26
```
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 ....```
0 commit comments