dmp-org.yml 1.8 KB

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