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

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

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

@ -5,7 +5,7 @@
### 2. 项目根目录创建im configMap到k8s openim namespace ### 2. 项目根目录创建im configMap到k8s openim namespace
kubectl create namespace openim 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, 可选 openim 为im项目的namespace, 可选
查看configmap 查看configmap
kubectl -n openim get configmap kubectl -n openim get configmap

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,8 +2,10 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml ENV CONFIG_NAME $WORKDIR/config/config.yaml
# 将可执行文件复制到目标目录 # 将可执行文件复制到目标目录
ADD ./open_im_office $WORKDIR/cmd/main 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script","/Open-IM-Server/db/sdk"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main

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

@ -2,6 +2,7 @@ FROM ubuntu
# 设置固定的项目路径 # 设置固定的项目路径
ENV WORKDIR /Open-IM-Server ENV WORKDIR /Open-IM-Server
ENV CMDDIR $WORKDIR/cmd
ENV CONFIG_NAME $WORKDIR/config/config.yaml 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"] VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script"]
WORKDIR $WORKDIR WORKDIR $CMDDIR
CMD ./cmd/main CMD ./main
Loading…
Cancel
Save