dmp-rwd-plus-standard.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: dmp-rwd-plus
  6. labels:
  7. app: dmp-rwd-plus
  8. spec:
  9. selector:
  10. app: dmp-rwd-plus
  11. ports:
  12. - port: 8080
  13. targetPort: 8080
  14. name: server-port
  15. ---
  16. apiVersion: apps/v1
  17. kind: Deployment
  18. metadata:
  19. name: dmp-rwd-plus
  20. spec:
  21. replicas: 1
  22. selector:
  23. matchLabels:
  24. app: dmp-rwd-plus
  25. template:
  26. metadata:
  27. labels:
  28. app: dmp-rwd-plus
  29. spec:
  30. containers:
  31. - name: dmp-rwd-plus
  32. image: labisenlin.persagy.com/library/dmp-rwd-plus:latest
  33. imagePullPolicy: Always
  34. ports:
  35. - containerPort: 8080
  36. name: server-port
  37. env:
  38. - name: TZ
  39. value: Asia/Shanghai
  40. - name: SERVER_PORT
  41. value: "8080"
  42. - name: SPRING_CLOUD_CONFIG_URI
  43. value: "http://integrated-config:8080"
  44. - name: SPRING_PROFILES_ACTIVE
  45. value: "dev"
  46. - name: SPRING_CLOUD_CONFIG_PROFILE
  47. value: "dev"
  48. - name: EUREKA_CLIENT_DEFAULT_ZONE
  49. value: "http://frame:123456@integrated-eureka:8080/integrated-eureka/eureka/"
  50. - name: logging.config
  51. value: classpath:logback-spring.xml
  52. - name: eureka.instance.status-page-url
  53. value: "http://${eureka.instance.ip-address}:${eureka.instance.non-secure-port}/${spring.application.name}/info"
  54. - name: eureka.instance.non-secure-port-enabled
  55. value: "true"
  56. - name: eureka.instance.ip-address
  57. value: "dmp-rwd-plus"
  58. - name: eureka.instance.health-check-url
  59. value: "http://${eureka.instance.ip-address}:${eureka.instance.non-secure-port}/${spring.application.name}/health"
  60. - name: eureka.instance.non-secure-port
  61. value: "8080"
  62. - name: persagy.common.auth.channel
  63. value: "1"
  64. - name: saas.ems.web.service
  65. value: "http://ems-saas-web:8080"
  66. - name: mybatis-plus.configuration.log-impl
  67. value: "org.apache.ibatis.logging.nologging.NoLoggingImpl"
  68. volumeMounts:
  69. - mountPath: /mnt/persagy/dmp-rwd-plus/config/data.sql
  70. name: nfs-pvc
  71. subPath: dmp-rwd-plus/data.sql
  72. volumes:
  73. - name: nfs-pvc
  74. persistentVolumeClaim:
  75. claimName: pv-oss-bdtp