dmp-rwd-version.yml 1.9 KB

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