广告平台(站长下代理使用)
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

zyos-mall-deployment.yaml 1.0 KiB

3 mesi fa
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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%