calendar-center.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: calendar-center
  6. namespace: develop
  7. labels:
  8. app: calendar-center
  9. spec:
  10. selector:
  11. app: calendar-center
  12. ports:
  13. - port: 8080
  14. targetPort: 8080
  15. name: server-port
  16. ---
  17. apiVersion: apps/v1
  18. kind: Deployment
  19. metadata:
  20. name: calendar-center
  21. namespace: develop
  22. spec:
  23. replicas: 1
  24. selector:
  25. matchLabels:
  26. app: calendar-center
  27. template:
  28. metadata:
  29. labels:
  30. app: calendar-center
  31. spec:
  32. containers:
  33. - name: calendar-center
  34. image: labisenlin.persagy.com/library/calendar-center:latest
  35. resources:
  36. limits:
  37. memory: "2560Mi"
  38. requests:
  39. memory: "2560Mi"
  40. ports:
  41. - containerPort: 8080
  42. name: server-port
  43. env:
  44. - name: TZ
  45. value: Asia/Shanghai
  46. - name: SERVER_PORT
  47. value: "8080"
  48. - name: EUREKA_INSTANCE_IP_ADDRESS
  49. value: "calendar-center.develop"
  50. - name: EUREKA_CLIENT_DEFAULT_ZONE
  51. value: "http://frame:123456@integrated-eureka:9931/integrated-eureka/eureka/"