vmware-archive / vsphere-storage-for-docker

vSphere Storage for Docker
https://vmware.github.io/vsphere-storage-for-docker
Apache License 2.0
251 stars 95 forks source link

allow user to choose ETCD ports for vFile usage #1988

Closed lipingxue closed 6 years ago

lipingxue commented 6 years ago

Fixed #1970

With this change, user can specify etcd cluster port number other than default value (default etcdClientPort is 2379 and etcdClientPort is 2380) used by vFile. User need to specify those port numbers through environment variable "VFILE_ETCD_CLIENT_PORT" and "VFILE_ETCD_PEER_PORT", see the following example:

docker plugin install --grant-all-permissions --alias vfile lipingxue/vfile:vfile-etcd_port VFILE_TIMEOUT_IN_SECOND=300 VFILE_ETCD_CLIENT_PORT=4001 VFILE_ETCD_PEER_PORT=4002

After install the vFile plugin, test basic volume create/mount/unmount, works as expected.