附近小店
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.
 
 
 

50 lines
1.0 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. namespace: dev
  5. name: zyos-mall
  6. labels:
  7. app: zyos-mall
  8. spec:
  9. replicas: 1
  10. template:
  11. metadata:
  12. name: zyos-mall
  13. labels:
  14. app: zyos-mall
  15. spec:
  16. containers:
  17. - name: zyos-mall-container
  18. image: registry-vpc.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-mall:0.1
  19. ports:
  20. - containerPort: 5002
  21. name: 5002tcp
  22. protocol: TCP
  23. resources:
  24. limits:
  25. cpu: "1"
  26. memory: 256Mi
  27. requests:
  28. cpu: 200m
  29. memory: 128Mi
  30. imagePullPolicy: IfNotPresent
  31. restartPolicy: Always
  32. volumes:
  33. - name: host-time
  34. hostPath:
  35. path: /etc/localtime
  36. type: ''
  37. - name: mall-cfg
  38. configMap:
  39. name: zyos-mall-cfg
  40. defaultMode: 420
  41. selector:
  42. matchLabels:
  43. app: zyos-mall
  44. strategy:
  45. type: RollingUpdate
  46. rollingUpdate:
  47. maxUnavailable: 25%
  48. maxSurge: 25%