dmp-rwd-plus.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. ---
  12. apiVersion: apps/v1
  13. kind: Deployment
  14. metadata:
  15. name: dmp-rwd-plus
  16. spec:
  17. replicas: 1
  18. selector:
  19. matchLabels:
  20. app: dmp-rwd-plus
  21. template:
  22. metadata:
  23. labels:
  24. app: dmp-rwd-plus
  25. spec:
  26. containers:
  27. - name: dmp-rwd-plus
  28. image: labisenlin.persagy.com/library/dmp-rwd-plus:v1.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: "8117"
  40. - name: SPRING_CLOUD_CONFIG_URI
  41. valueFrom:
  42. configMapKeyRef:
  43. name: dmp-rwd-plus
  44. key: spring.cloud.config.uri
  45. - name: SPRING_PROFILES_ACTIVE
  46. valueFrom:
  47. configMapKeyRef:
  48. name: dmp-rwd-plus
  49. key: spring.profiles.active
  50. - name: SPRING_CLOUD_CONFIG_PROFILE
  51. valueFrom:
  52. configMapKeyRef:
  53. name: dmp-rwd-plus
  54. key: spring.cloud.config.profile
  55. - name: EUREKA_CLIENT_FETCH_REGISTRY
  56. valueFrom:
  57. configMapKeyRef:
  58. name: dmp-rwd-plus
  59. key: eureka.client.fetch-registry
  60. - name: EUREKA_CLIENT_REGISTER_WITH_EUREKA
  61. valueFrom:
  62. configMapKeyRef:
  63. name: dmp-rwd-plus
  64. key: eureka.client.register-with-eureka
  65. - name: EUREKA_CLIENT_DEFAULT_ZONE
  66. valueFrom:
  67. configMapKeyRef:
  68. name: dmp-rwd-plus
  69. key: eureka.client.default.zone
  70. - name: EUREKA_INSTANCE_IP_ADDRESS
  71. valueFrom:
  72. configMapKeyRef:
  73. name: dmp-rwd-plus
  74. key: eureka.instance.ip.address