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 2.0 kB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. securityContext:
  20. privileged: true
  21. env:
  22. - name: TZ
  23. value: Asia/Shanghai
  24. - name: JAVA_TOOL_OPTIONS
  25. value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005"
  26. ports:
  27. - containerPort: 9213
  28. volumeMounts:
  29. - name: resource-volume
  30. mountPath: /home/resource/
  31. subPath: mini-model-platform-data
  32. mountPropagation: Bidirectional
  33. volumes:
  34. - name: resource-volume
  35. hostPath:
  36. path: /platform-data
  37. initContainers:
  38. - name: init-fs-check
  39. image: 172.20.32.187/ci4s/ci4s-managent:202502141722
  40. securityContext:
  41. privileged: true
  42. volumeMounts:
  43. - name: resource-volume
  44. mountPath: /home/resource/
  45. subPath: mini-model-platform-data
  46. mountPropagation: Bidirectional
  47. command: [ "/bin/sh", "-c" ]
  48. args:
  49. - |
  50. mounted=$(findmnt /home/resource/ | grep 'fuse.juicefs')
  51. if [ -z "$mounted" ]; then
  52. echo "/platform-data not mounted";
  53. exit 1
  54. fi
  55. restartPolicy: Always
  56. ---
  57. apiVersion: v1
  58. kind: Service
  59. metadata:
  60. name: ci4s-management-platform-service
  61. namespace: argo
  62. spec:
  63. type: NodePort
  64. ports:
  65. - name: http
  66. port: 9213
  67. nodePort: 31208
  68. protocol: TCP
  69. - name: debug
  70. nodePort: 31219
  71. port: 5005
  72. protocol: TCP
  73. targetPort: 5005
  74. selector:
  75. app: ci4s-management-platform