adm-server-standard.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. - port: 8081
  16. targetPort: 8081
  17. name: job-port
  18. ---
  19. apiVersion: apps/v1
  20. kind: Deployment
  21. metadata:
  22. name: adm-server
  23. spec:
  24. replicas: 1
  25. selector:
  26. matchLabels:
  27. app: adm-server
  28. template:
  29. metadata:
  30. labels:
  31. app: adm-server
  32. spec:
  33. containers:
  34. - name: adm-server
  35. image: labisenlin.persagy.com/library/adm-server:latest
  36. imagePullPolicy: Always
  37. ports:
  38. - containerPort: 8080
  39. name: server-port
  40. - containerPort: 8081
  41. name: job-port
  42. env:
  43. - name: TZ
  44. value: Asia/Shanghai
  45. - name: SERVER_PORT
  46. value: "8080"
  47. - name: SPRING_CLOUD_CONFIG_URI
  48. value: "http://integrated-config:8080"
  49. - name: SPRING_PROFILES_ACTIVE
  50. value: "dev"
  51. - name: SPRING_CLOUD_CONFIG_PROFILE
  52. value: "dev"
  53. - name: EUREKA_CLIENT_DEFAULT_ZONE
  54. value: "http://frame:123456@integrated-eureka:8080/integrated-eureka/eureka/"
  55. - name: logging.config
  56. value: classpath:logback-spring.xml
  57. - name: eureka.instance.status-page-url
  58. value: "http://${eureka.instance.ip-address}:${eureka.instance.non-secure-port}/${spring.application.name}/info"
  59. - name: eureka.instance.non-secure-port-enabled
  60. value: "true"
  61. - name: eureka.instance.ip-address
  62. value: "adm-server"
  63. - name: eureka.instance.health-check-url
  64. value: "http://${eureka.instance.ip-address}:${eureka.instance.non-secure-port}/${spring.application.name}/health"
  65. - name: eureka.instance.non-secure-port
  66. value: "8080"