Jelajahi Sumber

README.md: Kubernetes

Damian Nowak 4 tahun lalu
induk
melakukan
d404004f37
1 mengubah file dengan 11 tambahan dan 0 penghapusan
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -17,6 +17,9 @@ Run your own server on Gitpod!
 ## Usage
 ## Usage
 
 
 ### Run server
 ### Run server
+
+#### Natively
+
 If you don't want to develop anything, just enter few commands below.
 If you don't want to develop anything, just enter few commands below.
 
 
 1. Install the package globally:
 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.
 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:
 Also, you can use Docker image to run a new container:
 ```sh
 ```sh
 $ docker run -p 9000:9000 -d peerjs/peerjs-server
 $ 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:
 ### Create a custom server:
 If you have your own server, you can attach PeerServer.
 If you have your own server, you can attach PeerServer.