pull/241/head
wangchuxiao 2 years ago
parent 134087c672
commit 8bedfca646

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: admin-cms # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: admin-cms
image: openim/admin_cms:v2.0.10k
image: openim/admin_cms:v2.1.0
# imagePullPolicy: Always #每次启动都重新拉取镜像
ports:
- containerPort: 10200
@ -26,7 +26,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: api # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,8 +15,8 @@ spec:
spec:
containers:
- name: api
image: openim/api:v2.0.10k
imagePullPolicy: Always
image: openim/api:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10002
volumeMounts:
@ -26,7 +26,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新
---

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: auth # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: auth
image: openim/auth:v2.0.10k
image: openim/auth:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10160
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,7 +2,7 @@
source ./path_info.cfg
# images version
version=v2.0.10k
version=v2.1.0
git pull
cd ../script/; ./build_all_service.sh
cd ../deploy_k8s/

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: cache # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: cache
image: openim/cache:v2.0.10k
image: openim/cache:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10240
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -13,5 +14,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: cms-api # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,8 +15,8 @@ spec:
spec:
containers:
- name: cms-api
image: openim/cms_api:v2.0.10k
# imagePullPolicy: Always
image: openim/cms_api:v2.1.0
imagePullPolicy: Always
ports:
- containerPort: 10006
volumeMounts:
@ -26,7 +26,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新
---

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -13,5 +14,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: conversation
image: openim/conversation:v2.0.10k
image: openim/conversation:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10230
@ -26,7 +26,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: demo # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: demo
image: openim/demo:v2.0.10k
image: openim/demo:v2.1.0
imagePullPolicy: Always
ports:
- containerPort: 10004
@ -26,7 +26,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新
---

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: friend # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: friend
image: openim/friend:v2.0.10k
image: openim/friend:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10120
@ -26,7 +26,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: group # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: group
image: openim/group:v2.0.10k
image: openim/group:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10150
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -5,7 +5,7 @@
### 2. 项目根目录创建im configMap到k8s openim namespace
kubectl create namespace openim
kubectl -n openim create configmap config --from-file=config/config.yaml
kubectl -n openim create configmap openim-config --from-file=config/config.yaml
openim 为im项目的namespace, 可选
查看configmap
kubectl -n openim get configmap

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: message-cms # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: message-cms
image: openim/message_cms:v2.0.10k
image: openim/message_cms:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10190
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: msg # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: msg
image: openim/msg:v2.0.10k
image: openim/msg:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10130
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
@ -15,5 +16,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: msg-gateway # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: msg-gateway
image: openim/msg_gateway:v2.0.10k
image: openim/msg_gateway:v2.1.0
# imagePullPolicy: Always
ports:
- name: rpc-port
@ -29,7 +29,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新
---

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: msg-transfer # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: msg-transfer
image: openim/msg_transfer:v2.0.10k
image: openim/msg_transfer:v2.1.0
# imagePullPolicy: Always
volumeMounts:
- name: config
@ -24,6 +24,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: office # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: office
image: openim/office:v2.0.10k
image: openim/office:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10210
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,8 +2,10 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
ADD ./open_im_office $WORKDIR/cmd/main
@ -14,5 +16,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: organization # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: organization
image: openim/organization:v2.0.10k
image: openim/organization:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10220
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -15,5 +16,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: push # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: push
image: openim/push:v2.0.10k
image: openim/push:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10170
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
@ -15,5 +16,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: sdk-server # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: sdk-server
image: openim/sdk_server:v2.0.10k
image: openim/sdk_server:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10003
@ -30,7 +30,7 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
- name: local-db
hostPath:
path: /db/sdk

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -13,5 +14,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script","/Open-IM-Server/db/sdk"]
WORKDIR $WORKDIR
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: statistics # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: statistics
image: openim/statistics:v2.0.10k
image: openim/statistics:v2.1.0
# imagePullPolicy: Always
ports:
- containerPort: 10180
@ -26,6 +26,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main

@ -7,7 +7,7 @@ spec:
selector:
matchLabels:
app: user # 选择这个指定标签执行
replicas: 2 # 运行pod数量
replicas: 1 # 运行pod数量
template:
metadata:
labels:
@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: user
image: openim/user:v2.0.10k
image: openim/user:v2.1.0
# imagePullPolicy: Always
volumeMounts:
- name: config
@ -24,6 +24,6 @@ spec:
volumes:
- name: config
configMap:
name: config
name: openim-config
strategy: #更新策略
type: RollingUpdate # 滚动更新

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径
ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录
@ -14,5 +15,5 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/script && \
VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR
CMD ./cmd/main
WORKDIR $CMDDIR
CMD ./main
Loading…
Cancel
Save