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: README.md
+140-1Lines changed: 140 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,145 @@ Also on Linux, CGI Server container is available at the IP address: [http://172.
116
116
117
117
Your MooseFS Docker cluster is persistent. It means all files you created in the `/mnt/moosefs` folder will remain there even after turning containers off.
118
118
All data and metadata files are stored in the host `./data` directory.
119
+
120
+
# Pass config as env variable
121
+
122
+
There might be situations where you would want to setup a config file on the container start.
123
+
For that scenario you can pass the config file as a base64 encoded text. For example lets say
124
+
you want to setup your chunk servers to connect to master in k8s cluster where IP's are dynamically assigned
125
+
to pods. You have you master yaml definition set up as:
`MOOSEFS_MASTER_SERVICE_HOST` variable is set by k8s cluster and contains IP where the master service is accessible by. `MOOSEFS_CHUNKSERVER_SERVICE_PORT` this is the port on which we will expose our chunk server.
Repeat this for other chunk servers modifying your base64 string accordingly. If you leave all the chunkservers on default port `9422` you can use same base64 encoded string `TUFTVEVSX0hPU1QgPSAkTU9PU0VGU19NQVNURVJfU0VSVklDRV9IT1NUCkRBVEFfUEFUSCA9IC9tbnQvaGRkMC9tZnMK` which will only set correct `MASTER_HOST` and `DATA_PATH`
0 commit comments