bdtp-digital-front-dev.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ---
  2. apiVersion: extensions/v1beta1
  3. kind: Ingress
  4. metadata:
  5. name: bdtp-digital-front
  6. annotations:
  7. kubernetes.io/ingress.class: traefik
  8. traefik.frontend.rule.type: PathPrefix
  9. spec:
  10. rules:
  11. - host: develop.persagy.com
  12. http:
  13. paths:
  14. - path: /bdtp-digital-front
  15. backend:
  16. serviceName: bdtp-digital-front
  17. servicePort: server-port
  18. ---
  19. apiVersion: v1
  20. kind: ConfigMap
  21. metadata:
  22. name: bdtp-digital-front
  23. labels:
  24. name: bdtp-digital-front
  25. data:
  26. ---
  27. apiVersion: v1
  28. kind: Service
  29. metadata:
  30. name: bdtp-digital-front
  31. labels:
  32. app: bdtp-digital-front
  33. spec:
  34. selector:
  35. app: bdtp-digital-front
  36. ports:
  37. - port: 80
  38. targetPort: 80
  39. name: server-port
  40. ---
  41. apiVersion: apps/v1
  42. kind: Deployment
  43. metadata:
  44. name: bdtp-digital-front
  45. spec:
  46. replicas: 1
  47. selector:
  48. matchLabels:
  49. app: bdtp-digital-front
  50. template:
  51. metadata:
  52. labels:
  53. app: bdtp-digital-front
  54. spec:
  55. containers:
  56. - name: bdtp-digital-front
  57. image: labisenlin.persagy.com/library/bdtp-digital-front:latest
  58. imagePullPolicy: Always
  59. ports:
  60. - containerPort: 80
  61. name: server-port
  62. resources:
  63. limits:
  64. memory: 1Gi
  65. requests:
  66. memory: 512Mi
  67. env:
  68. - name: TZ
  69. value: Asia/Shanghai
  70. - name: SERVER_PORT
  71. value: "80"
  72. volumeMounts:
  73. - name: config
  74. mountPath: /etc/nginx/nginx.conf
  75. subPath: path/to/nginx.conf.js
  76. - name: vueconf
  77. mountPath: /usr/persagy/saas-web/bdtp-digital-front/vue.config.js
  78. subPath: path/to/vue.config.js
  79. volumes:
  80. - name: config
  81. configMap:
  82. name: bdtp-digital-front
  83. defaultMode: 0777
  84. items:
  85. - key: nginx.conf
  86. path: path/to/nginx.conf.js
  87. - name: vueconf
  88. configMap:
  89. name: bdtp-digital-front
  90. defaultMode: 0777
  91. items:
  92. - key: vue.config.js
  93. path: path/to/vue.config.js