adm-server-standard.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: adm-server
  6. labels:
  7. app: adm-server
  8. spec:
  9. selector:
  10. app: adm-server
  11. ports:
  12. - port: 8080
  13. targetPort: 8080
  14. name: server-port
  15. ---
  16. apiVersion: apps/v1
  17. kind: Deployment
  18. metadata:
  19. name: adm-server
  20. spec:
  21. replicas: 1
  22. selector:
  23. matchLabels:
  24. app: adm-server
  25. template:
  26. metadata:
  27. labels:
  28. app: adm-server
  29. spec:
  30. containers:
  31. - name: adm-server
  32. image: labisenlin.persagy.com/library/adm-server: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: "adm-server"
  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: mybatis-plus.configuration.log-impl
  63. value: "org.apache.ibatis.logging.nologging.NoLoggingImpl"