蛋蛋星球RabbitMq消费项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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

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