k8s deploy

This commit is contained in:
wangchuxiao 2022-05-23 14:24:46 +08:00
parent 03ae935756
commit 8240cb9c0f
4 changed files with 4 additions and 3 deletions

View File

@ -40,4 +40,4 @@ spec:
port: 10006
targetPort: 10006
selector:
app: cms_api
app: cms-api

View File

@ -6,6 +6,7 @@
kubectl create namespace openim
kubectl -n openim create configmap config --from-file=config/config.yaml
openim 为im项目的namespace, 可选
查看configmap
kubectl -n openim get configmap
### 3(可选). 修改每个deployment.yml

View File

@ -41,6 +41,6 @@ spec:
port: 10001
targetPort: 10001
selector:
app: demo
app: msg-gateway

View File

@ -40,6 +40,6 @@ spec:
port: 10003
targetPort: 10003
selector:
app: demo
app: sdk-server