golang 的 rabbitmq 消费项目
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

zyos-go-mq-consume-prd.yaml 1.8 KiB

8 ay önce
8 ay önce
8 ay önce
8 ay önce
8 ay önce
8 ay önce
8 ay önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. kind: Deployment
  2. apiVersion: apps/v1
  3. # 元数据
  4. metadata:
  5. name: zyos-go-mq-consume-v6
  6. namespace: zhios
  7. labels:
  8. app: zyos-go-mq-consume-v6
  9. annotations:
  10. kubesphere.io/creator: dengbiao
  11. kubesphere.io/description: 绿色双链积分
  12. # deployment主要部分
  13. spec:
  14. replicas: 1
  15. selector:
  16. matchLabels:
  17. # 名称与上面的labels对应
  18. app: zyos-go-mq-consume-v6
  19. template:
  20. metadata:
  21. labels:
  22. # 名称与上面的matchLabels对应
  23. app: zyos-go-mq-consume-v6
  24. spec:
  25. # 声明挂载卷(将外部已存在的pvc、config等挂载进来)
  26. volumes:
  27. # 用于时区校正
  28. - name: host-time
  29. hostPath:
  30. path: /etc/localtime
  31. type: ''
  32. # 将前面创建的configMap也挂载进来
  33. - name: zyos-go-mq-consume-cfg
  34. configMap:
  35. # 这里的名字就是前面创建的configMap的名字
  36. name: zyos-go-mq-consume-cfg
  37. defaultMode: 420
  38. containers:
  39. # 主容器
  40. - name: zhios-zyos-go-mq-consume-v6-container
  41. # 镜像地址(提前打包好并推送的镜像仓库)
  42. image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-zyos-go-mq-consume-v6:20240310-01'
  43. # 将前面volume声明的需要用到的pvc、config挂载上来
  44. volumeMounts:
  45. - name: host-time
  46. readOnly: true
  47. mountPath: /etc/localtime
  48. - name: zyos-go-mq-consume-cfg # 该名字对应前面volumes声明的名字
  49. readOnly: true
  50. # 挂载到容器的哪个路径
  51. mountPath: /var/zyos
  52. imagePullPolicy: Always
  53. restartPolicy: Always
  54. terminationGracePeriodSeconds: 30
  55. dnsPolicy: ClusterFirst