bdtp-digital-front.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: bdtp-digital-front
  6. labels:
  7. app: bdtp-digital-front
  8. spec:
  9. selector:
  10. app: bdtp-digital-front
  11. ports:
  12. - port: 80
  13. targetPort: 80
  14. name: server-port
  15. ---
  16. apiVersion: apps/v1
  17. kind: Deployment
  18. metadata:
  19. name: bdtp-digital-front
  20. spec:
  21. replicas: 1
  22. selector:
  23. matchLabels:
  24. app: bdtp-digital-front
  25. template:
  26. metadata:
  27. labels:
  28. app: bdtp-digital-front
  29. spec:
  30. containers:
  31. - name: bdtp-digital-front
  32. image: labisenlin.persagy.com/library/bdtp-digital-front:latest
  33. imagePullPolicy: Always
  34. ports:
  35. - containerPort: 80
  36. name: server-port
  37. resources:
  38. limits:
  39. memory: 1Gi
  40. requests:
  41. memory: 512Mi
  42. env:
  43. - name: TZ
  44. value: Asia/Shanghai
  45. - name: SERVER_PORT
  46. value: "80"
  47. volumeMounts:
  48. - name: config
  49. mountPath: /etc/nginx/nginx.conf
  50. subPath: path/to/nginx.conf.js
  51. - name: vueconf
  52. mountPath: /usr/persagy/saas-web/bdtp-digital-front/vue.config.js
  53. subPath: path/to/vue.config.js
  54. volumes:
  55. - name: config
  56. configMap:
  57. name: bdtp-digital-front
  58. defaultMode: 0777
  59. items:
  60. - key: nginx.conf
  61. path: path/to/nginx.conf.js
  62. - name: vueconf
  63. configMap:
  64. name: bdtp-digital-front
  65. defaultMode: 0777
  66. items:
  67. - key: vue.config.js
  68. path: path/to/vue.config.js