|
@@ -2,10 +2,10 @@ kind: Deployment |
|
|
apiVersion: apps/v1 |
|
|
apiVersion: apps/v1 |
|
|
# 元数据 |
|
|
# 元数据 |
|
|
metadata: |
|
|
metadata: |
|
|
name: zyos-go-mq-consume |
|
|
|
|
|
|
|
|
name: zyos-go-mq-consume-v5 |
|
|
namespace: zhios |
|
|
namespace: zhios |
|
|
labels: |
|
|
labels: |
|
|
app: zyos-go-mq-consume |
|
|
|
|
|
|
|
|
app: zyos-go-mq-consume-v5 |
|
|
annotations: |
|
|
annotations: |
|
|
kubesphere.io/creator: dengbiao |
|
|
kubesphere.io/creator: dengbiao |
|
|
kubesphere.io/description: 只用go版本rabbitmq消费项目 |
|
|
kubesphere.io/description: 只用go版本rabbitmq消费项目 |
|
@@ -15,12 +15,12 @@ spec: |
|
|
selector: |
|
|
selector: |
|
|
matchLabels: |
|
|
matchLabels: |
|
|
# 名称与上面的labels对应 |
|
|
# 名称与上面的labels对应 |
|
|
app: zyos-go-mq-consume |
|
|
|
|
|
|
|
|
app: zyos-go-mq-consume-v5 |
|
|
template: |
|
|
template: |
|
|
metadata: |
|
|
metadata: |
|
|
labels: |
|
|
labels: |
|
|
# 名称与上面的matchLabels对应 |
|
|
# 名称与上面的matchLabels对应 |
|
|
app: zyos-go-mq-consume |
|
|
|
|
|
|
|
|
app: zyos-go-mq-consume-v5 |
|
|
spec: |
|
|
spec: |
|
|
# 声明挂载卷(将外部已存在的pvc、config等挂载进来) |
|
|
# 声明挂载卷(将外部已存在的pvc、config等挂载进来) |
|
|
volumes: |
|
|
volumes: |
|
@@ -37,9 +37,9 @@ spec: |
|
|
defaultMode: 420 |
|
|
defaultMode: 420 |
|
|
containers: |
|
|
containers: |
|
|
# 主容器 |
|
|
# 主容器 |
|
|
- name: zhios-zyos-go-mq-consume-container |
|
|
|
|
|
|
|
|
- name: zhios-zyos-go-mq-consume-v5-container |
|
|
# 镜像地址(提前打包好并推送的镜像仓库) |
|
|
# 镜像地址(提前打包好并推送的镜像仓库) |
|
|
image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-zyos-go-mq-consume:0.1' |
|
|
|
|
|
|
|
|
image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-zyos-go-mq-consume-v5:20240308-01' |
|
|
# 将前面volume声明的需要用到的pvc、config挂载上来 |
|
|
# 将前面volume声明的需要用到的pvc、config挂载上来 |
|
|
volumeMounts: |
|
|
volumeMounts: |
|
|
- name: host-time |
|
|
- name: host-time |
|
|