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-dubhe.yaml 36 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425
  1. ##################################################################################################
  2. # admin
  3. ##################################################################################################
  4. ---
  5. apiVersion: v1
  6. kind: Service
  7. metadata:
  8. name: admin
  9. labels:
  10. app: admin
  11. service: admin
  12. spec:
  13. type: NodePort
  14. ports:
  15. - port: 8870
  16. name: http
  17. selector:
  18. app: admin
  19. ---
  20. apiVersion: v1
  21. kind: ServiceAccount
  22. metadata:
  23. name: admin
  24. labels:
  25. account: admin
  26. ---
  27. apiVersion: apps/v1
  28. kind: Deployment
  29. metadata:
  30. name: admin-v1
  31. labels:
  32. app: admin
  33. version: v1
  34. spec:
  35. replicas: 1
  36. selector:
  37. matchLabels:
  38. app: admin
  39. version: v1
  40. template:
  41. metadata:
  42. labels:
  43. app: admin
  44. version: v1
  45. spec:
  46. serviceAccountName: admin
  47. containers:
  48. - name: admin
  49. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  50. imagePullPolicy: Always
  51. env:
  52. - name: JAR_BALL
  53. value: "admin-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  54. - name: JVM_PARAM
  55. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/admin-dump.hprof"
  56. ports:
  57. - containerPort: 8870
  58. volumeMounts:
  59. - mountPath: "fsPath"
  60. name: "fs-volume"
  61. readOnly: false
  62. - mountPath: "containerLogPath"
  63. name: "log-volume"
  64. readOnly: false
  65. - name: "dockersock"
  66. mountPath: "/var/run/docker.sock"
  67. volumes:
  68. - name: "fs-volume"
  69. hostPath:
  70. path: "fsPath"
  71. type: "Directory"
  72. - name: "log-volume"
  73. hostPath:
  74. path: "hostLogPath"
  75. type: "DirectoryOrCreate"
  76. - name: "dockersock"
  77. hostPath:
  78. path: "/var/run/docker.sock"
  79. ##################################################################################################
  80. # auth
  81. ##################################################################################################
  82. ---
  83. apiVersion: v1
  84. kind: Service
  85. metadata:
  86. name: auth
  87. labels:
  88. app: auth
  89. service: auth
  90. spec:
  91. type: NodePort
  92. ports:
  93. - port: 8866
  94. name: http
  95. selector:
  96. app: auth
  97. ---
  98. apiVersion: v1
  99. kind: ServiceAccount
  100. metadata:
  101. name: auth
  102. labels:
  103. account: auth
  104. ---
  105. apiVersion: apps/v1
  106. kind: Deployment
  107. metadata:
  108. name: auth-v1
  109. labels:
  110. app: auth
  111. version: v1
  112. spec:
  113. replicas: 1
  114. selector:
  115. matchLabels:
  116. app: auth
  117. version: v1
  118. template:
  119. metadata:
  120. labels:
  121. app: auth
  122. version: v1
  123. spec:
  124. serviceAccountName: auth
  125. containers:
  126. - name: auth
  127. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  128. imagePullPolicy: Always
  129. env:
  130. - name: JAR_BALL
  131. value: "auth-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  132. - name: JVM_PARAM
  133. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/auth-dump.hprof"
  134. ports:
  135. - containerPort: 8866
  136. volumeMounts:
  137. - mountPath: "fsPath"
  138. name: "fs-volume"
  139. readOnly: false
  140. - mountPath: "containerLogPath"
  141. name: "log-volume"
  142. readOnly: false
  143. - name: "dockersock"
  144. mountPath: "/var/run/docker.sock"
  145. volumes:
  146. - name: "fs-volume"
  147. hostPath:
  148. path: "fsPath"
  149. type: "Directory"
  150. - name: "log-volume"
  151. hostPath:
  152. path: "hostLogPath"
  153. type: "DirectoryOrCreate"
  154. - name: "dockersock"
  155. hostPath:
  156. path: "/var/run/docker.sock"
  157. ##################################################################################################
  158. # demo-client service
  159. ##################################################################################################
  160. ---
  161. apiVersion: v1
  162. kind: Service
  163. metadata:
  164. name: demo-client
  165. labels:
  166. app: demo-client
  167. service: demo-client
  168. spec:
  169. type: NodePort
  170. ports:
  171. - port: 8861
  172. name: http
  173. selector:
  174. app: demo-client
  175. ---
  176. apiVersion: v1
  177. kind: ServiceAccount
  178. metadata:
  179. name: demo-client
  180. labels:
  181. account: demo-client
  182. ---
  183. apiVersion: apps/v1
  184. kind: Deployment
  185. metadata:
  186. name: demo-client-v1
  187. labels:
  188. app: demo-client
  189. version: v1
  190. spec:
  191. replicas: 1
  192. selector:
  193. matchLabels:
  194. app: demo-client
  195. version: v1
  196. template:
  197. metadata:
  198. labels:
  199. app: demo-client
  200. version: v1
  201. spec:
  202. serviceAccountName: demo-client
  203. containers:
  204. - name: demo-client
  205. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  206. imagePullPolicy: Always
  207. env:
  208. - name: JAR_BALL
  209. value: "demo-client-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  210. - name: JVM_PARAM
  211. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/demo-client-dump.hprof"
  212. ports:
  213. - containerPort: 8861
  214. volumeMounts:
  215. - mountPath: "fsPath"
  216. name: "fs-volume"
  217. readOnly: false
  218. - mountPath: "containerLogPath"
  219. name: "log-volume"
  220. readOnly: false
  221. - name: "dockersock"
  222. mountPath: "/var/run/docker.sock"
  223. volumes:
  224. - name: "fs-volume"
  225. hostPath:
  226. path: "fsPath"
  227. type: "Directory"
  228. - name: "log-volume"
  229. hostPath:
  230. path: "hostLogPath"
  231. type: "DirectoryOrCreate"
  232. - name: "dockersock"
  233. hostPath:
  234. path: "/var/run/docker.sock"
  235. ##################################################################################################
  236. # demo-provider service
  237. ##################################################################################################
  238. ---
  239. apiVersion: v1
  240. kind: Service
  241. metadata:
  242. name: demo-provider
  243. labels:
  244. app: demo-provider
  245. service: demo-provider
  246. spec:
  247. type: NodePort
  248. ports:
  249. - port: 8860
  250. name: http
  251. selector:
  252. app: demo-provider
  253. ---
  254. apiVersion: v1
  255. kind: ServiceAccount
  256. metadata:
  257. name: demo-provider
  258. labels:
  259. account: demo-provider
  260. ---
  261. apiVersion: apps/v1
  262. kind: Deployment
  263. metadata:
  264. name: demo-provider-v1
  265. labels:
  266. app: demo-provider
  267. version: v1
  268. spec:
  269. replicas: 1
  270. selector:
  271. matchLabels:
  272. app: demo-provider
  273. version: v1
  274. template:
  275. metadata:
  276. labels:
  277. app: demo-provider
  278. version: v1
  279. spec:
  280. serviceAccountName: demo-provider
  281. containers:
  282. - name: demo-provider
  283. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  284. imagePullPolicy: Always
  285. env:
  286. - name: JAR_BALL
  287. value: "demo-provider-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  288. - name: JVM_PARAM
  289. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/demo-provider-dump.hprof"
  290. ports:
  291. - containerPort: 8860
  292. volumeMounts:
  293. - mountPath: "fsPath"
  294. name: "fs-volume"
  295. readOnly: false
  296. - mountPath: "containerLogPath"
  297. name: "log-volume"
  298. readOnly: false
  299. - name: "dockersock"
  300. mountPath: "/var/run/docker.sock"
  301. volumes:
  302. - name: "fs-volume"
  303. hostPath:
  304. path: "fsPath"
  305. type: "Directory"
  306. - name: "log-volume"
  307. hostPath:
  308. path: "hostLogPath"
  309. type: "DirectoryOrCreate"
  310. - name: "dockersock"
  311. hostPath:
  312. path: "/var/run/docker.sock"
  313. ##################################################################################################
  314. # dubhe-algorithm
  315. ##################################################################################################
  316. ---
  317. apiVersion: v1
  318. kind: Service
  319. metadata:
  320. name: dubhe-algorithm
  321. labels:
  322. app: dubhe-algorithm
  323. service: dubhe-algorithm
  324. spec:
  325. type: NodePort
  326. ports:
  327. - port: 8889
  328. name: http
  329. selector:
  330. app: dubhe-algorithm
  331. ---
  332. apiVersion: v1
  333. kind: ServiceAccount
  334. metadata:
  335. name: dubhe-algorithm
  336. labels:
  337. account: dubhe-algorithm
  338. ---
  339. apiVersion: apps/v1
  340. kind: Deployment
  341. metadata:
  342. name: dubhe-algorithm-v1
  343. labels:
  344. app: dubhe-algorithm
  345. version: v1
  346. spec:
  347. replicas: 1
  348. selector:
  349. matchLabels:
  350. app: dubhe-algorithm
  351. version: v1
  352. template:
  353. metadata:
  354. labels:
  355. app: dubhe-algorithm
  356. version: v1
  357. spec:
  358. serviceAccountName: dubhe-algorithm
  359. containers:
  360. - name: dubhe-algorithm
  361. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  362. imagePullPolicy: Always
  363. env:
  364. - name: JAR_BALL
  365. value: "dubhe-algorithm-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  366. - name: JVM_PARAM
  367. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-algorithm-dump.hprof"
  368. ports:
  369. - containerPort: 8889
  370. volumeMounts:
  371. - mountPath: "fsPath"
  372. name: "fs-volume"
  373. readOnly: false
  374. - mountPath: "containerLogPath"
  375. name: "log-volume"
  376. readOnly: false
  377. - name: "dockersock"
  378. mountPath: "/var/run/docker.sock"
  379. volumes:
  380. - name: "fs-volume"
  381. hostPath:
  382. path: "fsPath"
  383. type: "Directory"
  384. - name: "log-volume"
  385. hostPath:
  386. path: "hostLogPath"
  387. type: "DirectoryOrCreate"
  388. - name: "dockersock"
  389. hostPath:
  390. path: "/var/run/docker.sock"
  391. ##################################################################################################
  392. # dubhe-data
  393. ##################################################################################################
  394. ---
  395. apiVersion: v1
  396. kind: Service
  397. metadata:
  398. name: dubhe-data
  399. labels:
  400. app: dubhe-data
  401. service: dubhe-data
  402. spec:
  403. type: NodePort
  404. ports:
  405. - port: 8823
  406. name: http
  407. - port: 5005
  408. name: debug
  409. selector:
  410. app: dubhe-data
  411. ---
  412. apiVersion: v1
  413. kind: ServiceAccount
  414. metadata:
  415. name: dubhe-data
  416. labels:
  417. account: dubhe-data
  418. ---
  419. apiVersion: apps/v1
  420. kind: Deployment
  421. metadata:
  422. name: dubhe-data-v1
  423. labels:
  424. app: dubhe-data
  425. version: v1
  426. spec:
  427. replicas: 1
  428. selector:
  429. matchLabels:
  430. app: dubhe-data
  431. version: v1
  432. template:
  433. metadata:
  434. labels:
  435. app: dubhe-data
  436. version: v1
  437. spec:
  438. serviceAccountName: dubhe-data
  439. containers:
  440. - name: dubhe-data
  441. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  442. imagePullPolicy: Always
  443. env:
  444. - name: JAR_BALL
  445. value: "dubhe-data-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  446. - name: JVM_PARAM
  447. value: "-Xms4096m -Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-data-dump.hprof"
  448. ports:
  449. - containerPort: 8823
  450. - containerPort: 5005
  451. volumeMounts:
  452. - mountPath: "fsPath"
  453. name: "fs-volume"
  454. readOnly: false
  455. - mountPath: "containerLogPath"
  456. name: "log-volume"
  457. readOnly: false
  458. - name: "dockersock"
  459. mountPath: "/var/run/docker.sock"
  460. volumes:
  461. - name: "fs-volume"
  462. hostPath:
  463. path: "fsPath"
  464. type: "Directory"
  465. - name: "log-volume"
  466. hostPath:
  467. path: "hostLogPath"
  468. type: "DirectoryOrCreate"
  469. - name: "dockersock"
  470. hostPath:
  471. path: "/var/run/docker.sock"
  472. ##################################################################################################
  473. # dubhe-image
  474. ##################################################################################################
  475. ---
  476. apiVersion: v1
  477. kind: Service
  478. metadata:
  479. name: dubhe-image
  480. labels:
  481. app: dubhe-image
  482. service: dubhe-image
  483. spec:
  484. type: NodePort
  485. ports:
  486. - port: 8822
  487. name: http
  488. selector:
  489. app: dubhe-image
  490. ---
  491. apiVersion: v1
  492. kind: ServiceAccount
  493. metadata:
  494. name: dubhe-image
  495. labels:
  496. account: dubhe-image
  497. ---
  498. apiVersion: apps/v1
  499. kind: Deployment
  500. metadata:
  501. name: dubhe-image-v1
  502. labels:
  503. app: dubhe-image
  504. version: v1
  505. spec:
  506. replicas: 1
  507. selector:
  508. matchLabels:
  509. app: dubhe-image
  510. version: v1
  511. template:
  512. metadata:
  513. labels:
  514. app: dubhe-image
  515. version: v1
  516. spec:
  517. serviceAccountName: dubhe-image
  518. containers:
  519. - name: dubhe-image
  520. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  521. imagePullPolicy: Always
  522. env:
  523. - name: JAR_BALL
  524. value: "dubhe-image-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  525. - name: JVM_PARAM
  526. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-image-dump.hprof"
  527. ports:
  528. - containerPort: 8822
  529. volumeMounts:
  530. - mountPath: "fsPath"
  531. name: "fs-volume"
  532. readOnly: false
  533. - mountPath: "containerLogPath"
  534. name: "log-volume"
  535. readOnly: false
  536. - name: "dockersock"
  537. mountPath: "/var/run/docker.sock"
  538. volumes:
  539. - name: "fs-volume"
  540. hostPath:
  541. path: "fsPath"
  542. type: "Directory"
  543. - name: "log-volume"
  544. hostPath:
  545. path: "hostLogPath"
  546. type: "DirectoryOrCreate"
  547. - name: "dockersock"
  548. hostPath:
  549. path: "/var/run/docker.sock"
  550. ##################################################################################################
  551. # dubhe-k8s
  552. ##################################################################################################
  553. ---
  554. apiVersion: v1
  555. kind: Service
  556. metadata:
  557. name: dubhe-k8s
  558. labels:
  559. app: dubhe-k8s
  560. service: dubhe-k8s
  561. spec:
  562. type: NodePort
  563. ports:
  564. - port: 8960
  565. name: http
  566. selector:
  567. app: dubhe-k8s
  568. ---
  569. apiVersion: v1
  570. kind: ServiceAccount
  571. metadata:
  572. name: dubhe-k8s
  573. labels:
  574. account: dubhe-k8s
  575. ---
  576. apiVersion: apps/v1
  577. kind: Deployment
  578. metadata:
  579. name: dubhe-k8s-v1
  580. labels:
  581. app: dubhe-k8s
  582. version: v1
  583. spec:
  584. replicas: 1
  585. selector:
  586. matchLabels:
  587. app: dubhe-k8s
  588. version: v1
  589. template:
  590. metadata:
  591. labels:
  592. app: dubhe-k8s
  593. version: v1
  594. spec:
  595. serviceAccountName: dubhe-k8s
  596. containers:
  597. - name: dubhe-k8s
  598. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  599. imagePullPolicy: Always
  600. env:
  601. - name: JAR_BALL
  602. value: "dubhe-k8s-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  603. - name: JVM_PARAM
  604. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-k8s-dump.hprof"
  605. ports:
  606. - containerPort: 8960
  607. volumeMounts:
  608. - mountPath: "fsPath"
  609. name: "fs-volume"
  610. readOnly: false
  611. - mountPath: "containerLogPath"
  612. name: "log-volume"
  613. readOnly: false
  614. - name: "dockersock"
  615. mountPath: "/var/run/docker.sock"
  616. volumes:
  617. - name: "fs-volume"
  618. hostPath:
  619. path: "fsPath"
  620. type: "Directory"
  621. - name: "log-volume"
  622. hostPath:
  623. path: "hostLogPath"
  624. type: "DirectoryOrCreate"
  625. - name: "dockersock"
  626. hostPath:
  627. path: "/var/run/docker.sock"
  628. ##################################################################################################
  629. # dubhe-measure
  630. ##################################################################################################
  631. ---
  632. apiVersion: v1
  633. kind: Service
  634. metadata:
  635. name: dubhe-measure
  636. labels:
  637. app: dubhe-measure
  638. service: dubhe-measure
  639. spec:
  640. type: NodePort
  641. ports:
  642. - port: 8821
  643. name: http
  644. selector:
  645. app: dubhe-measure
  646. ---
  647. apiVersion: v1
  648. kind: ServiceAccount
  649. metadata:
  650. name: dubhe-measure
  651. labels:
  652. account: dubhe-measure
  653. ---
  654. apiVersion: apps/v1
  655. kind: Deployment
  656. metadata:
  657. name: dubhe-measure-v1
  658. labels:
  659. app: dubhe-measure
  660. version: v1
  661. spec:
  662. replicas: 1
  663. selector:
  664. matchLabels:
  665. app: dubhe-measure
  666. version: v1
  667. template:
  668. metadata:
  669. labels:
  670. app: dubhe-measure
  671. version: v1
  672. spec:
  673. serviceAccountName: dubhe-measure
  674. containers:
  675. - name: dubhe-measure
  676. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  677. imagePullPolicy: Always
  678. env:
  679. - name: JAR_BALL
  680. value: "dubhe-measure-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  681. - name: JVM_PARAM
  682. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-measure-dump.hprof"
  683. ports:
  684. - containerPort: 8821
  685. volumeMounts:
  686. - mountPath: "fsPath"
  687. name: "fs-volume"
  688. readOnly: false
  689. - mountPath: "containerLogPath"
  690. name: "log-volume"
  691. readOnly: false
  692. - name: "dockersock"
  693. mountPath: "/var/run/docker.sock"
  694. volumes:
  695. - name: "fs-volume"
  696. hostPath:
  697. path: "fsPath"
  698. type: "Directory"
  699. - name: "log-volume"
  700. hostPath:
  701. path: "hostLogPath"
  702. type: "DirectoryOrCreate"
  703. - name: "dockersock"
  704. hostPath:
  705. path: "/var/run/docker.sock"
  706. ##################################################################################################
  707. # dubhe-model
  708. ##################################################################################################
  709. ---
  710. apiVersion: v1
  711. kind: Service
  712. metadata:
  713. name: dubhe-model
  714. labels:
  715. app: dubhe-model
  716. service: dubhe-model
  717. spec:
  718. type: NodePort
  719. ports:
  720. - port: 8888
  721. name: http
  722. - port: 5005
  723. name: debug
  724. selector:
  725. app: dubhe-model
  726. ---
  727. apiVersion: v1
  728. kind: ServiceAccount
  729. metadata:
  730. name: dubhe-model
  731. labels:
  732. account: dubhe-model
  733. ---
  734. apiVersion: apps/v1
  735. kind: Deployment
  736. metadata:
  737. name: dubhe-model-v1
  738. labels:
  739. app: dubhe-model
  740. version: v1
  741. spec:
  742. replicas: 1
  743. selector:
  744. matchLabels:
  745. app: dubhe-model
  746. version: v1
  747. template:
  748. metadata:
  749. labels:
  750. app: dubhe-model
  751. version: v1
  752. spec:
  753. serviceAccountName: dubhe-model
  754. containers:
  755. - name: dubhe-model
  756. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  757. imagePullPolicy: Always
  758. env:
  759. - name: JAR_BALL
  760. value: "dubhe-model-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  761. - name: JVM_PARAM
  762. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-model-dump.hprof"
  763. ports:
  764. - containerPort: 8888
  765. - containerPort: 5005
  766. volumeMounts:
  767. - mountPath: "fsPath"
  768. name: "fs-volume"
  769. readOnly: false
  770. - mountPath: "containerLogPath"
  771. name: "log-volume"
  772. readOnly: false
  773. - name: "dockersock"
  774. mountPath: "/var/run/docker.sock"
  775. volumes:
  776. - name: "fs-volume"
  777. hostPath:
  778. path: "fsPath"
  779. type: "Directory"
  780. - name: "log-volume"
  781. hostPath:
  782. path: "hostLogPath"
  783. type: "DirectoryOrCreate"
  784. - name: "dockersock"
  785. hostPath:
  786. path: "/var/run/docker.sock"
  787. ##################################################################################################
  788. # dubhe-notebook
  789. ##################################################################################################
  790. ---
  791. apiVersion: v1
  792. kind: Service
  793. metadata:
  794. name: dubhe-notebook
  795. labels:
  796. app: dubhe-notebook
  797. service: dubhe-notebook
  798. spec:
  799. type: NodePort
  800. ports:
  801. - port: 8863
  802. name: http
  803. - port: 5005
  804. name: debug
  805. selector:
  806. app: dubhe-notebook
  807. ---
  808. apiVersion: v1
  809. kind: ServiceAccount
  810. metadata:
  811. name: dubhe-notebook
  812. labels:
  813. account: dubhe-notebook
  814. ---
  815. apiVersion: apps/v1
  816. kind: Deployment
  817. metadata:
  818. name: dubhe-notebook-v1
  819. labels:
  820. app: dubhe-notebook
  821. version: v1
  822. spec:
  823. replicas: 1
  824. selector:
  825. matchLabels:
  826. app: dubhe-notebook
  827. version: v1
  828. template:
  829. metadata:
  830. labels:
  831. app: dubhe-notebook
  832. version: v1
  833. spec:
  834. serviceAccountName: dubhe-notebook
  835. containers:
  836. - name: dubhe-notebook
  837. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  838. imagePullPolicy: Always
  839. env:
  840. - name: JAR_BALL
  841. value: "dubhe-notebook-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  842. - name: JVM_PARAM
  843. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-notebook-dump.hprof"
  844. ports:
  845. - containerPort: 8863
  846. - containerPort: 5005
  847. volumeMounts:
  848. - mountPath: "fsPath"
  849. name: "fs-volume"
  850. readOnly: false
  851. - mountPath: "containerLogPath"
  852. name: "log-volume"
  853. readOnly: false
  854. - name: "dockersock"
  855. mountPath: "/var/run/docker.sock"
  856. volumes:
  857. - name: "fs-volume"
  858. hostPath:
  859. path: "fsPath"
  860. type: "Directory"
  861. - name: "log-volume"
  862. hostPath:
  863. path: "hostLogPath"
  864. type: "DirectoryOrCreate"
  865. - name: "dockersock"
  866. hostPath:
  867. path: "/var/run/docker.sock"
  868. ##################################################################################################
  869. # dubhe-data-dcm
  870. ##################################################################################################
  871. ---
  872. apiVersion: v1
  873. kind: Service
  874. metadata:
  875. name: dubhe-data-dcm
  876. labels:
  877. app: dubhe-data-dcm
  878. service: dubhe-data-dcm
  879. spec:
  880. type: NodePort
  881. ports:
  882. - port: 8011
  883. name: http
  884. selector:
  885. app: dubhe-data-dcm
  886. ---
  887. apiVersion: v1
  888. kind: ServiceAccount
  889. metadata:
  890. name: dubhe-data-dcm
  891. labels:
  892. account: dubhe-data-dcm
  893. ---
  894. apiVersion: apps/v1
  895. kind: Deployment
  896. metadata:
  897. name: dubhe-data-dcm-v1
  898. labels:
  899. app: dubhe-data-dcm
  900. version: v1
  901. spec:
  902. replicas: 1
  903. selector:
  904. matchLabels:
  905. app: dubhe-data-dcm
  906. version: v1
  907. template:
  908. metadata:
  909. labels:
  910. app: dubhe-data-dcm
  911. version: v1
  912. spec:
  913. serviceAccountName: dubhe-data-dcm
  914. containers:
  915. - name: dubhe-data-dcm
  916. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  917. imagePullPolicy: Always
  918. env:
  919. - name: JAR_BALL
  920. value: "dubhe-data-dcm-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  921. - name: JVM_PARAM
  922. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-data-dcm-dump.hprof"
  923. ports:
  924. - containerPort: 8011
  925. volumeMounts:
  926. - mountPath: "fsPath"
  927. name: "fs-volume"
  928. readOnly: false
  929. - mountPath: "containerLogPath"
  930. name: "log-volume"
  931. readOnly: false
  932. - name: "dockersock"
  933. mountPath: "/var/run/docker.sock"
  934. volumes:
  935. - name: "fs-volume"
  936. hostPath:
  937. path: "fsPath"
  938. type: "Directory"
  939. - name: "log-volume"
  940. hostPath:
  941. path: "hostLogPath"
  942. type: "DirectoryOrCreate"
  943. - name: "dockersock"
  944. hostPath:
  945. path: "/var/run/docker.sock"
  946. ##################################################################################################
  947. # dubhe-data-task
  948. ##################################################################################################
  949. ---
  950. apiVersion: v1
  951. kind: Service
  952. metadata:
  953. name: dubhe-data-task
  954. labels:
  955. app: dubhe-data-task
  956. service: dubhe-data-task
  957. spec:
  958. type: NodePort
  959. ports:
  960. - port: 8801
  961. name: http
  962. selector:
  963. app: dubhe-data-task
  964. ---
  965. apiVersion: v1
  966. kind: ServiceAccount
  967. metadata:
  968. name: dubhe-data-task
  969. labels:
  970. account: dubhe-data-task
  971. ---
  972. apiVersion: apps/v1
  973. kind: Deployment
  974. metadata:
  975. name: dubhe-data-task-v1
  976. labels:
  977. app: dubhe-data-task
  978. version: v1
  979. spec:
  980. replicas: 1
  981. selector:
  982. matchLabels:
  983. app: dubhe-data-task
  984. version: v1
  985. template:
  986. metadata:
  987. labels:
  988. app: dubhe-data-task
  989. version: v1
  990. spec:
  991. serviceAccountName: dubhe-data-task
  992. containers:
  993. - name: dubhe-data-task
  994. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  995. imagePullPolicy: Always
  996. env:
  997. - name: JAR_BALL
  998. value: "dubhe-data-task-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  999. - name: JVM_PARAM
  1000. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-data-task-dump.hprof"
  1001. ports:
  1002. - containerPort: 8801
  1003. volumeMounts:
  1004. - mountPath: "fsPath"
  1005. name: "fs-volume"
  1006. readOnly: false
  1007. - mountPath: "containerLogPath"
  1008. name: "log-volume"
  1009. readOnly: false
  1010. - name: "dockersock"
  1011. mountPath: "/var/run/docker.sock"
  1012. volumes:
  1013. - name: "fs-volume"
  1014. hostPath:
  1015. path: "fsPath"
  1016. type: "Directory"
  1017. - name: "log-volume"
  1018. hostPath:
  1019. path: "hostLogPath"
  1020. type: "DirectoryOrCreate"
  1021. - name: "dockersock"
  1022. hostPath:
  1023. path: "/var/run/docker.sock"
  1024. ##################################################################################################
  1025. # dubhe-train
  1026. ##################################################################################################
  1027. ---
  1028. apiVersion: v1
  1029. kind: Service
  1030. metadata:
  1031. name: dubhe-train
  1032. labels:
  1033. app: dubhe-train
  1034. service: dubhe-train
  1035. spec:
  1036. type: NodePort
  1037. ports:
  1038. - port: 8890
  1039. name: http
  1040. selector:
  1041. app: dubhe-train
  1042. ---
  1043. apiVersion: v1
  1044. kind: ServiceAccount
  1045. metadata:
  1046. name: dubhe-train
  1047. labels:
  1048. account: dubhe-train
  1049. ---
  1050. apiVersion: apps/v1
  1051. kind: Deployment
  1052. metadata:
  1053. name: dubhe-train-v1
  1054. labels:
  1055. app: dubhe-train
  1056. version: v1
  1057. spec:
  1058. replicas: 1
  1059. selector:
  1060. matchLabels:
  1061. app: dubhe-train
  1062. version: v1
  1063. template:
  1064. metadata:
  1065. labels:
  1066. app: dubhe-train
  1067. version: v1
  1068. spec:
  1069. serviceAccountName: dubhe-train
  1070. containers:
  1071. - name: dubhe-train
  1072. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  1073. imagePullPolicy: Always
  1074. env:
  1075. - name: JAR_BALL
  1076. value: "dubhe-train-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  1077. - name: JVM_PARAM
  1078. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-train-dump.hprof"
  1079. ports:
  1080. - containerPort: 8890
  1081. volumeMounts:
  1082. - mountPath: "fsPath"
  1083. name: "fs-volume"
  1084. readOnly: false
  1085. - mountPath: "containerLogPath"
  1086. name: "log-volume"
  1087. readOnly: false
  1088. - name: "dockersock"
  1089. mountPath: "/var/run/docker.sock"
  1090. volumes:
  1091. - name: "fs-volume"
  1092. hostPath:
  1093. path: "fsPath"
  1094. type: "Directory"
  1095. - name: "log-volume"
  1096. hostPath:
  1097. path: "hostLogPath"
  1098. type: "DirectoryOrCreate"
  1099. - name: "dockersock"
  1100. hostPath:
  1101. path: "/var/run/docker.sock"
  1102. ##################################################################################################
  1103. # dubhe-optimize
  1104. ##################################################################################################
  1105. ---
  1106. apiVersion: v1
  1107. kind: Service
  1108. metadata:
  1109. name: dubhe-optimize
  1110. labels:
  1111. app: dubhe-optimize
  1112. service: dubhe-optimize
  1113. spec:
  1114. type: NodePort
  1115. ports:
  1116. - port: 8899
  1117. name: http
  1118. - port: 5005
  1119. name: debug
  1120. selector:
  1121. app: dubhe-optimize
  1122. ---
  1123. apiVersion: v1
  1124. kind: ServiceAccount
  1125. metadata:
  1126. name: dubhe-optimize
  1127. labels:
  1128. account: dubhe-optimize
  1129. ---
  1130. apiVersion: apps/v1
  1131. kind: Deployment
  1132. metadata:
  1133. name: dubhe-optimize-v1
  1134. labels:
  1135. app: dubhe-optimize
  1136. version: v1
  1137. spec:
  1138. replicas: 1
  1139. selector:
  1140. matchLabels:
  1141. app: dubhe-optimize
  1142. version: v1
  1143. template:
  1144. metadata:
  1145. labels:
  1146. app: dubhe-optimize
  1147. version: v1
  1148. spec:
  1149. serviceAccountName: dubhe-optimize
  1150. containers:
  1151. - name: dubhe-optimize
  1152. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  1153. imagePullPolicy: Always
  1154. env:
  1155. - name: JAR_BALL
  1156. value: "dubhe-optimize-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  1157. - name: JVM_PARAM
  1158. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-optimize-dump.hprof"
  1159. ports:
  1160. - containerPort: 8899
  1161. - containerPort: 5005
  1162. volumeMounts:
  1163. - mountPath: "fsPath"
  1164. name: "fs-volume"
  1165. readOnly: false
  1166. - mountPath: "containerLogPath"
  1167. name: "log-volume"
  1168. readOnly: false
  1169. - name: "dockersock"
  1170. mountPath: "/var/run/docker.sock"
  1171. volumes:
  1172. - name: "fs-volume"
  1173. hostPath:
  1174. path: "fsPath"
  1175. type: "Directory"
  1176. - name: "log-volume"
  1177. hostPath:
  1178. path: "hostLogPath"
  1179. type: "DirectoryOrCreate"
  1180. - name: "dockersock"
  1181. hostPath:
  1182. path: "/var/run/docker.sock"
  1183. ##################################################################################################
  1184. # dubhe-serving
  1185. ##################################################################################################
  1186. ---
  1187. apiVersion: v1
  1188. kind: Service
  1189. metadata:
  1190. name: dubhe-serving
  1191. labels:
  1192. app: dubhe-serving
  1193. service: dubhe-serving
  1194. spec:
  1195. type: NodePort
  1196. ports:
  1197. - port: 8898
  1198. name: http
  1199. - port: 5005
  1200. name: debug
  1201. selector:
  1202. app: dubhe-serving
  1203. ---
  1204. apiVersion: v1
  1205. kind: ServiceAccount
  1206. metadata:
  1207. name: dubhe-serving
  1208. labels:
  1209. account: dubhe-serving
  1210. ---
  1211. apiVersion: apps/v1
  1212. kind: Deployment
  1213. metadata:
  1214. name: dubhe-serving-v1
  1215. labels:
  1216. app: dubhe-serving
  1217. version: v1
  1218. spec:
  1219. replicas: 1
  1220. selector:
  1221. matchLabels:
  1222. app: dubhe-serving
  1223. version: v1
  1224. template:
  1225. metadata:
  1226. labels:
  1227. app: dubhe-serving
  1228. version: v1
  1229. spec:
  1230. serviceAccountName: dubhe-serving
  1231. containers:
  1232. - name: dubhe-serving
  1233. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  1234. imagePullPolicy: Always
  1235. env:
  1236. - name: JAR_BALL
  1237. value: "dubhe-serving-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  1238. - name: JVM_PARAM
  1239. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-serving-dump.hprof"
  1240. ports:
  1241. - containerPort: 8898
  1242. - containerPort: 5005
  1243. volumeMounts:
  1244. - mountPath: "fsPath"
  1245. name: "fs-volume"
  1246. readOnly: false
  1247. - mountPath: "containerLogPath"
  1248. name: "log-volume"
  1249. readOnly: false
  1250. - name: "dockersock"
  1251. mountPath: "/var/run/docker.sock"
  1252. volumes:
  1253. - name: "fs-volume"
  1254. hostPath:
  1255. path: "fsPath"
  1256. type: "Directory"
  1257. - name: "log-volume"
  1258. hostPath:
  1259. path: "hostLogPath"
  1260. type: "DirectoryOrCreate"
  1261. - name: "dockersock"
  1262. hostPath:
  1263. path: "/var/run/docker.sock"
  1264. ##################################################################################################
  1265. # dubhe-serving-gateway
  1266. ##################################################################################################
  1267. ---
  1268. apiVersion: v1
  1269. kind: Service
  1270. metadata:
  1271. name: dubhe-serving-gateway
  1272. labels:
  1273. app: dubhe-serving-gateway
  1274. service: dubhe-serving-gateway
  1275. spec:
  1276. type: NodePort
  1277. ports:
  1278. - port: 8081
  1279. name: http
  1280. nodePort: 30848
  1281. - port: 5005
  1282. name: debug
  1283. selector:
  1284. app: dubhe-serving-gateway
  1285. ---
  1286. apiVersion: v1
  1287. kind: ServiceAccount
  1288. metadata:
  1289. name: dubhe-serving-gateway
  1290. labels:
  1291. account: dubhe-serving-gateway
  1292. ---
  1293. apiVersion: apps/v1
  1294. kind: Deployment
  1295. metadata:
  1296. name: dubhe-serving-gateway-v1
  1297. labels:
  1298. app: dubhe-serving-gateway
  1299. version: v1
  1300. spec:
  1301. replicas: 1
  1302. selector:
  1303. matchLabels:
  1304. app: dubhe-serving-gateway
  1305. version: v1
  1306. template:
  1307. metadata:
  1308. labels:
  1309. app: dubhe-serving-gateway
  1310. version: v1
  1311. spec:
  1312. serviceAccountName: dubhe-serving-gateway
  1313. containers:
  1314. - name: dubhe-serving-gateway
  1315. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  1316. imagePullPolicy: Always
  1317. env:
  1318. - name: JAR_BALL
  1319. value: "dubhe-serving-gateway-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  1320. - name: JVM_PARAM
  1321. value: "-Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/dubhe-serving-gateway-dump.hprof"
  1322. ports:
  1323. - containerPort: 8081
  1324. - containerPort: 5505
  1325. volumeMounts:
  1326. - mountPath: "fsPath"
  1327. name: "fs-volume"
  1328. readOnly: false
  1329. - mountPath: "containerLogPath"
  1330. name: "log-volume"
  1331. readOnly: false
  1332. - name: "dockersock"
  1333. mountPath: "/var/run/docker.sock"
  1334. volumes:
  1335. - name: "fs-volume"
  1336. hostPath:
  1337. path: "fsPath"
  1338. type: "Directory"
  1339. - name: "log-volume"
  1340. hostPath:
  1341. path: "hostLogPath"
  1342. type: "DirectoryOrCreate"
  1343. - name: "dockersock"
  1344. hostPath:
  1345. path: "/var/run/docker.sock"
  1346. ##################################################################################################
  1347. # gateway
  1348. ##################################################################################################
  1349. ---
  1350. apiVersion: v1
  1351. kind: Service
  1352. metadata:
  1353. name: gateway
  1354. labels:
  1355. app: gateway
  1356. service: gateway
  1357. spec:
  1358. type: NodePort
  1359. ports:
  1360. - port: 8800
  1361. name: http
  1362. nodePort: gatewayNodePort
  1363. selector:
  1364. app: gateway
  1365. ---
  1366. apiVersion: v1
  1367. kind: ServiceAccount
  1368. metadata:
  1369. name: gateway
  1370. labels:
  1371. account: gateway
  1372. ---
  1373. apiVersion: apps/v1
  1374. kind: Deployment
  1375. metadata:
  1376. name: gateway-v1
  1377. labels:
  1378. app: gateway
  1379. version: v1
  1380. spec:
  1381. replicas: 1
  1382. selector:
  1383. matchLabels:
  1384. app: gateway
  1385. version: v1
  1386. template:
  1387. metadata:
  1388. labels:
  1389. app: gateway
  1390. version: v1
  1391. spec:
  1392. serviceAccountName: gateway
  1393. containers:
  1394. - name: gateway
  1395. image: harbor.test.com/dubhe/dubhe-spring-cloud-k8s:env-value
  1396. imagePullPolicy: Always
  1397. env:
  1398. - name: JAR_BALL
  1399. value: "gateway-0.0.1-SNAPSHOT-exec.jar --spring.profiles.active=env-value"
  1400. - name: JVM_PARAM
  1401. value: "-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=containerLogPath/gateway-dump.hprof"
  1402. ports:
  1403. - containerPort: 8800
  1404. volumeMounts:
  1405. - mountPath: "fsPath"
  1406. name: "fs-volume"
  1407. readOnly: false
  1408. - mountPath: "containerLogPath"
  1409. name: "log-volume"
  1410. readOnly: false
  1411. - name: "dockersock"
  1412. mountPath: "/var/run/docker.sock"
  1413. volumes:
  1414. - name: "fs-volume"
  1415. hostPath:
  1416. path: "fsPath"
  1417. type: "Directory"
  1418. - name: "log-volume"
  1419. hostPath:
  1420. path: "hostLogPath"
  1421. type: "DirectoryOrCreate"
  1422. - name: "dockersock"
  1423. hostPath:
  1424. path: "/var/run/docker.sock"

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