deployment.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: e-school-frontend
  5. namespace: i2
  6. spec:
  7. selector:
  8. matchLabels:
  9. app: e-school-frontend
  10. template:
  11. metadata:
  12. labels:
  13. app: e-school-frontend
  14. spec:
  15. hostAliases:
  16. - ip: "192.168.0.1"
  17. hostnames:
  18. - "www.ccbeetech.com"
  19. - "ccbeetech.com"
  20. containers:
  21. - name: e-school-frontend
  22. image: docker.i2erp.cn/e-school-frontend:10049
  23. volumeMounts:
  24. - name: config
  25. mountPath: /app/web/config.js
  26. subPath: config.js
  27. - name: config
  28. mountPath: /app/conf/app.conf
  29. subPath: app.conf
  30. resources:
  31. limits:
  32. memory: "2Gi"
  33. cpu: "1000m"
  34. requests:
  35. memory: "10Mi"
  36. cpu: "11m"
  37. ports:
  38. - containerPort: 80
  39. imagePullSecrets:
  40. - name: registrykey-i2erp
  41. volumes:
  42. - name: config
  43. configMap:
  44. name: e-school-frontend