deployment.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apiVersion: apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: e-school-mobile
  5. namespace: i2
  6. spec:
  7. replicas: 3
  8. selector:
  9. matchLabels:
  10. app: e-school-mobile
  11. template:
  12. metadata:
  13. labels:
  14. app: e-school-mobile
  15. spec:
  16. hostAliases:
  17. - ip: "192.168.0.1"
  18. hostnames:
  19. - "www.ccbeetech.com"
  20. - "ccbeetech.com"
  21. containers:
  22. - name: e-school-mobile
  23. # 479
  24. image: docker.i2erp.cn/e-school-backend:10863
  25. volumeMounts:
  26. - name: es-upload
  27. mountPath: /app/files
  28. readOnly: false
  29. subPath: files
  30. - name: es-upload
  31. mountPath: /app/static
  32. readOnly: false
  33. subPath: static
  34. - name: config
  35. mountPath: /app/conf/
  36. - name: date-config
  37. mountPath: /etc/localtime
  38. resources:
  39. requests:
  40. memory: "1Gi"
  41. cpu: "1000m"
  42. ports:
  43. - containerPort: 8080
  44. - containerPort: 389
  45. imagePullSecrets:
  46. - name: registrykey-i2erp
  47. volumes:
  48. - name: config
  49. configMap:
  50. name: e-school-mobile
  51. - name: date-config
  52. hostPath:
  53. path: /etc/localtime
  54. - name: es-upload
  55. persistentVolumeClaim:
  56. claimName: es-upload