You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

k8s-7management.yaml 1.2 kB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ci4s-management-platform-deployment
  5. namespace: argo
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: ci4s-management-platform
  11. template:
  12. metadata:
  13. labels:
  14. app: ci4s-management-platform
  15. spec:
  16. containers:
  17. - name: ci4s-management-platform
  18. image: ${k8s-7management-image}
  19. env:
  20. - name: TZ
  21. value: Asia/Shanghai
  22. - name: JAVA_TOOL_OPTIONS
  23. value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005"
  24. ports:
  25. - containerPort: 9213
  26. volumeMounts:
  27. - name: resource-volume
  28. mountPath: /home/resource/
  29. subPath: mini-model-platform-data
  30. volumes:
  31. - name: resource-volume
  32. hostPath:
  33. path: /platform-data
  34. ---
  35. apiVersion: v1
  36. kind: Service
  37. metadata:
  38. name: ci4s-management-platform-service
  39. namespace: argo
  40. spec:
  41. type: NodePort
  42. ports:
  43. - name: http
  44. port: 9213
  45. nodePort: 31208
  46. protocol: TCP
  47. - name: debug
  48. nodePort: 31219
  49. port: 5005
  50. protocol: TCP
  51. targetPort: 5005
  52. selector:
  53. app: ci4s-management-platform