广告平台(媒体使用)
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.

mall-task.yaml 1.4 KiB

3 maanden geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. kind: Deployment
  2. apiVersion: apps/v1
  3. metadata:
  4. name: mall-task
  5. namespace: dev
  6. labels:
  7. app: mall-task
  8. annotations:
  9. kubesphere.io/creator: wuhanqin
  10. kubesphere.io/description: 自营商城go定时任务
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. app: mall-task
  16. template:
  17. metadata:
  18. labels:
  19. app: mall-task
  20. spec:
  21. volumes:
  22. - name: host-time
  23. hostPath:
  24. path: /etc/localtime
  25. type: ''
  26. - name: mall-task-cfg1
  27. configMap:
  28. name: mall-task-cfg
  29. items:
  30. - key: task.yml
  31. path: task.yml
  32. defaultMode: 420
  33. containers:
  34. - name: container-mall-task
  35. image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-mall-task:0.1'
  36. resources:
  37. limits:
  38. cpu: '1'
  39. memory: 1000Mi
  40. requests:
  41. cpu: 200m
  42. memory: 1000Mi
  43. volumeMounts:
  44. - name: host-time
  45. readOnly: true
  46. mountPath: /etc/localtime
  47. - name: mall-task-cfg1
  48. readOnly: true
  49. mountPath: /var/zyos/task.yml
  50. subPath: task.yml
  51. terminationMessagePath: /dev/termination-log
  52. terminationMessagePolicy: File
  53. imagePullPolicy: Always
  54. restartPolicy: Always
  55. terminationGracePeriodSeconds: 30
  56. dnsPolicy: ClusterFirst