附近小店
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

mall-task.yaml 1.4 KiB

2 个月前
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