Browse Source

update

one_orenge
DengBiao 8 months ago
parent
commit
5ca0605c8b
2 changed files with 11 additions and 7 deletions
  1. +5
    -1
      consume/withdraw_consume.go
  2. +6
    -6
      k8s/zyos-go-mq-consume-prd.yaml

+ 5
- 1
consume/withdraw_consume.go View File

@@ -71,7 +71,11 @@ func handleWithdrawConsume(msgData []byte) error {
} }
fmt.Println("message:::::::::::>>>>>>>>>") fmt.Println("message:::::::::::>>>>>>>>>")
fmt.Println(msg) fmt.Println(msg)
post, err := utils.CurlPost("http://admin.99813608.zhiyingos.com/index/transfer", msg, nil)
var url = "http://admin.99813608.zhiyingos.com/index/transfer"
if cfg.Prd {
url = "http://zhios-admin"
}
post, err := utils.CurlPost(url, msg, nil)
if err != nil { if err != nil {
return err return err
} }


+ 6
- 6
k8s/zyos-go-mq-consume-prd.yaml View File

@@ -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


Loading…
Cancel
Save