deployment.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apiVersion: apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: i2-bbs-backend
  5. namespace: i2
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: i2-bbs-backend
  11. template:
  12. metadata:
  13. labels:
  14. app: i2-bbs-backend
  15. spec:
  16. hostAliases:
  17. - ip: "192.168.0.1"
  18. hostnames:
  19. - "www.ccbeetech.com"
  20. - "ccbeetech.com"
  21. containers:
  22. - name: i2-bbs-backend
  23. image: docker.i2erp.cn/i2-bbs-backend:10034
  24. volumeMounts:
  25. - name: config
  26. mountPath: /app/conf/
  27. - name: date-config
  28. mountPath: /etc/localtime
  29. resources:
  30. limits:
  31. memory: "2Gi"
  32. cpu: "1000m"
  33. requests:
  34. memory: "10Mi"
  35. cpu: "10m"
  36. ports:
  37. - containerPort: 9001
  38. imagePullSecrets:
  39. - name: registrykey-i2erp
  40. volumes:
  41. - name: config
  42. configMap:
  43. name: i2-bbs-backend
  44. - name: date-config
  45. hostPath:
  46. path: /etc/localtime