附近小店
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

mall-task-prd.yaml 1.4 KiB

il y a 2 mois
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. kind: Deployment
  2. apiVersion: apps/v1
  3. metadata:
  4. name: mall-task
  5. namespace: zhios
  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: zhios-mall-task
  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.3'
  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