Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
richie committed Dec 18, 2019
1 parent 91bfd3b commit 3d8180a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@
# make docker
```

- push 镜像:
```bash
docker-compose push k8s-webshell
```


### 部署方式有2种:
- kubernetes 部署(k8s 集群内 incluster 模式)到集群当中

- docker-compose 部署(k8s集群外部署)

### kubernetes 部署 k8s-webshell
Expand All @@ -35,6 +31,7 @@
```bash
# kubectl apply -f k8s-webshell-sa.yaml
# kubectl apply -f k8s-webshell-clusterrole.yaml
# kubectl apply -f k8s-webshell-secret.yaml
# kubectl apply -f k8s-webshell-clusterrolebinding.yaml
# kubectl apply -f k8s-webshell-deployment.yaml
# kubectl apply -f k8s-webshell-svc.yaml
Expand Down
26 changes: 26 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3"
services:
k8s-webshell:
build:
context: .
image: k8s-webshell:1.3
command: ["./k8s-webshell", "--config", "/etc/k8s-webshell/config.yaml"]

ports:
- "30001:777"
environment:
- WEBSHELL_SERVER_RUN_MODE=debug
- WEBSHELL_SERVER_LOGPATH=/var/logs
- WEBSHELL_SERVER_PORT=7777
- WEBSHELL_SERVER_LOGNAME=webshell.log
- WEBSHELL_K8S_KUBECONFIG=/etc/k8s-webshell/admin.conf
- WEBSHELL_SERVER_CERTIFICATE=/etc/k8s-webshell/webshell.crt
- WEBSHELL_SERVER_CERTIFICATEKEY=/etc/k8s-webshell/webshell.key
- WEBSHELL_K8S_INCLUSTER=false
volumes:
- "./configs/config.yaml:/etc/k8s-webshell/config.yaml"
- "./configs/admin.conf:/etc/k8s-webshell/admin.conf"
- "./configs/webshell.crt:/etc/k8s-webshell/webshell.crt"
- "./configs/webshell.key:/etc/k8s-webshell/webshell.key"


0 comments on commit 3d8180a

Please sign in to comment.