广告平台(媒体使用)
 
 
 
 
 
 

50 рядки
1.1 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. namespace: zhios
  5. name: zhios-mall
  6. labels:
  7. app: zhios-mall
  8. spec:
  9. replicas: 1
  10. template:
  11. metadata:
  12. name: zhios-mall
  13. labels:
  14. app: zhios-mall
  15. spec:
  16. containers:
  17. - name: zhios-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: zhios-mall-cfg
  40. defaultMode: 420
  41. selector:
  42. matchLabels:
  43. app: zhios-mall
  44. strategy:
  45. type: RollingUpdate
  46. rollingUpdate:
  47. maxUnavailable: 25%
  48. maxSurge: 25%