README.md: Kubernetes

This commit is contained in:
Damian Nowak 2020-07-26 20:15:25 -05:00 committed by GitHub
parent 12bd0f245e
commit d404004f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,9 @@ Run your own server on Gitpod!
## Usage
### Run server
#### Natively
If you don't want to develop anything, just enter few commands below.
1. Install the package globally:
@ -31,11 +34,19 @@ If you don't want to develop anything, just enter few commands below.
```
3. Check it: http://127.0.0.1:9000/myapp It should returns JSON with name, description and website fields.
#### Docker
Also, you can use Docker image to run a new container:
```sh
$ docker run -p 9000:9000 -d peerjs/peerjs-server
```
##### Kubernetes
```sh
$ kubectl run peerjs-server --image=peerjs/peerjs-server --port 9000 --expose -- --port 9000 --path /myapp
```
### Create a custom server:
If you have your own server, you can attach PeerServer.