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.

server-gateway.yaml 1.9 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ##################################################################################################
  2. # gateway
  3. ##################################################################################################
  4. ---
  5. apiVersion: v1
  6. kind: Service
  7. metadata:
  8. name: gateway
  9. labels:
  10. app: gateway
  11. service: gateway
  12. spec:
  13. type: NodePort
  14. ports:
  15. - port: 8800
  16. name: http
  17. nodePort: gatewayNodePort
  18. selector:
  19. app: gateway
  20. ---
  21. apiVersion: v1
  22. kind: ServiceAccount
  23. metadata:
  24. name: gateway
  25. labels:
  26. account: gateway
  27. ---
  28. apiVersion: apps/v1
  29. kind: Deployment
  30. metadata:
  31. name: gateway-v1
  32. labels:
  33. app: gateway
  34. version: v1
  35. spec:
  36. replicas: 1
  37. selector:
  38. matchLabels:
  39. app: gateway
  40. version: v1
  41. template:
  42. metadata:
  43. labels:
  44. app: gateway
  45. version: v1
  46. spec:
  47. serviceAccountName: gateway
  48. containers:
  49. - name: gateway
  50. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  51. imagePullPolicy: Always
  52. env:
  53. - name: JAR_BALL
  54. value: "gateway-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  55. - name: JVM_PARAM
  56. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/gateway-dump.hprof"
  57. ports:
  58. - containerPort: 8800
  59. volumeMounts:
  60. - mountPath: "fsPath"
  61. name: "fs-volume"
  62. readOnly: false
  63. - mountPath: "containerLogPath"
  64. name: "log-volume"
  65. readOnly: false
  66. - name: "dockersock"
  67. mountPath: "/var/run/docker.sock"
  68. volumes:
  69. - name: "fs-volume"
  70. hostPath:
  71. path: "fsPath"
  72. type: "Directory"
  73. - name: "log-volume"
  74. hostPath:
  75. path: "hostLogPath"
  76. type: "DirectoryOrCreate"
  77. - name: "dockersock"
  78. hostPath:
  79. path: "/var/run/docker.sock"

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能