mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
exposing volume server grpc port
parent
1bd5e00c48
commit
6a886cb224
|
@ -104,6 +104,7 @@ spec:
|
|||
args: ["-log_dir", "/var/containerdata/logs", "volume", "-port", "8080", "-mserver", "haystackservice:9333", "-dir", "/var/containerdata/haystack/volume", "-ip", "haystackservice"]
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
- containerPort: 18080
|
||||
volumeMounts:
|
||||
- mountPath: /var/containerdata
|
||||
name: vlm
|
||||
|
@ -132,6 +133,10 @@ spec:
|
|||
protocol: TCP
|
||||
port: 8080
|
||||
nodePort: 30070
|
||||
- name: vgport
|
||||
protocol: TCP
|
||||
port: 18080
|
||||
nodePort: 30071
|
||||
type: NodePort
|
||||
```
|
||||
|
||||
|
@ -171,4 +176,4 @@ http://minikubecluster:30070/ui/index.html
|
|||
```
|
||||
|
||||
`minikubecluster` in my environment resolves to the IP address of the minikube's VM which you can get using `minikube ip` command.
|
||||
The port numbers in these commands are the `node ports` defined as part of the service spec which map to the internal container ports and to which they forward all the requests. For more information about Node Ports see https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport.
|
||||
The port numbers in these commands are the `node ports` defined as part of the service spec which map to the internal container ports and to which they forward all the requests. For more information about Node Ports see https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport.
|
||||
|
|
|
@ -78,7 +78,7 @@ Use with docker is easy as run locally, you can pass all args like above. But yo
|
|||
docker run -p 9333:9333 --name master chrislusf/seaweedfs master
|
||||
```
|
||||
```
|
||||
docker run -p 8080:8080 --name volume --link master chrislusf/seaweedfs volume -max=5 -mserver="master:9333" -port=8080
|
||||
docker run -p 8080:8080 -p 18080:18080 --name volume --link master chrislusf/seaweedfs volume -max=5 -mserver="master:9333" -port=8080
|
||||
```
|
||||
#### With Compose ####
|
||||
But with Compose it's easiest.
|
||||
|
@ -145,10 +145,10 @@ To gain persistency you can use docker volumes.
|
|||
|
||||
```bash
|
||||
# start our weed server daemonized
|
||||
docker run --name weed -d -p 9333:9333 -p 8080:8080 \
|
||||
docker run --name weed -d -p 9333:9333 -p 8080:8080 -p 8080:8080 \
|
||||
-v /opt/weedfs/data:/data chrislusf/seaweedfs server -dir="/data" \
|
||||
-publicIp="$(curl -s cydev.ru/ip)"
|
||||
```
|
||||
|
||||
Now our SeaweedFS server will be persistent and accessible by localhost:9333 and :8080 on host machine.
|
||||
Dont forget to specify "-publicIp" for correct connectivity.
|
||||
Now our SeaweedFS server will be persistent and accessible by localhost:9333, :8080 and :18080 on host machine.
|
||||
Dont forget to specify "-publicIp" for correct connectivity.
|
||||
|
|
Loading…
Reference in a new issue