dmp-message.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: dmp-message
  6. labels:
  7. app: dmp-message
  8. spec:
  9. selector:
  10. app: dmp-message
  11. ---
  12. apiVersion: apps/v1
  13. kind: Deployment
  14. metadata:
  15. name: dmp-message
  16. spec:
  17. replicas: 1
  18. selector:
  19. matchLabels:
  20. app: dmp-message
  21. template:
  22. metadata:
  23. labels:
  24. app: dmp-message
  25. spec:
  26. containers:
  27. - name: dmp-message
  28. image: labisenlin.persagy.com/library/dmp-message:v2.0.0
  29. imagePullPolicy: Always
  30. env:
  31. - name: TZ
  32. value: Asia/Shanghai
  33. - name: SERVER_PORT
  34. value: "8115"
  35. - name: SPRING_CLOUD_CONFIG_URI
  36. valueFrom:
  37. configMapKeyRef:
  38. name: dmp-message
  39. key: spring.cloud.config.uri
  40. - name: SPRING_PROFILES_ACTIVE
  41. valueFrom:
  42. configMapKeyRef:
  43. name: dmp-message
  44. key: spring.profiles.active
  45. - name: SPRING_CLOUD_CONFIG_PROFILE
  46. valueFrom:
  47. configMapKeyRef:
  48. name: dmp-message
  49. key: spring.cloud.config.profile
  50. - name: EUREKA_CLIENT_FETCH_REGISTRY
  51. valueFrom:
  52. configMapKeyRef:
  53. name: dmp-message
  54. key: eureka.client.fetch-registry
  55. - name: EUREKA_CLIENT_REGISTER_WITH_EUREKA
  56. valueFrom:
  57. configMapKeyRef:
  58. name: dmp-message
  59. key: eureka.client.register-with-eureka
  60. - name: EUREKA_CLIENT_DEFAULT_ZONE
  61. valueFrom:
  62. configMapKeyRef:
  63. name: dmp-message
  64. key: eureka.client.default.zone
  65. - name: EUREKA_INSTANCE_IP_ADDRESS
  66. valueFrom:
  67. configMapKeyRef:
  68. name: dmp-message
  69. key: eureka.instance.ip.address