Quellcode durchsuchen

update

one_orenge
DengBiao vor 8 Monaten
Ursprung
Commit
5ca0605c8b
2 geänderte Dateien mit 11 neuen und 7 gelöschten Zeilen
  1. +5
    -1
      consume/withdraw_consume.go
  2. +6
    -6
      k8s/zyos-go-mq-consume-prd.yaml

+ 5
- 1
consume/withdraw_consume.go Datei anzeigen

@@ -71,7 +71,11 @@ func handleWithdrawConsume(msgData []byte) error {
}
fmt.Println("message:::::::::::>>>>>>>>>")
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 {
return err
}


+ 6
- 6
k8s/zyos-go-mq-consume-prd.yaml Datei anzeigen

@@ -2,10 +2,10 @@ kind: Deployment
apiVersion: apps/v1
# 元数据
metadata:
name: zyos-go-mq-consume
name: zyos-go-mq-consume-v5
namespace: zhios
labels:
app: zyos-go-mq-consume
app: zyos-go-mq-consume-v5
annotations:
kubesphere.io/creator: dengbiao
kubesphere.io/description: 只用go版本rabbitmq消费项目
@@ -15,12 +15,12 @@ spec:
selector:
matchLabels:
# 名称与上面的labels对应
app: zyos-go-mq-consume
app: zyos-go-mq-consume-v5
template:
metadata:
labels:
# 名称与上面的matchLabels对应
app: zyos-go-mq-consume
app: zyos-go-mq-consume-v5
spec:
# 声明挂载卷(将外部已存在的pvc、config等挂载进来)
volumes:
@@ -37,9 +37,9 @@ spec:
defaultMode: 420
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挂载上来
volumeMounts:
- name: host-time


Laden…
Abbrechen
Speichern