mall4j-middleware.yaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. ---
  2. kind: Deployment
  3. apiVersion: apps/v1
  4. metadata:
  5. name: mall4j-elasticsearch
  6. namespace: mall4j-middleware
  7. labels:
  8. k8s.kuboard.cn/name: mall4j-elasticsearch
  9. annotations: {}
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. k8s.kuboard.cn/name: mall4j-elasticsearch
  15. template:
  16. metadata:
  17. creationTimestamp: null
  18. labels:
  19. k8s.kuboard.cn/name: mall4j-elasticsearch
  20. spec:
  21. volumes:
  22. - name: mall4j-elasticsearch
  23. nfs:
  24. server: 192.168.1.28
  25. path: /nfs/data/mall4j-middleware/mall4j-elasticsearch/
  26. containers:
  27. - name: mall4j-elasticsearch
  28. image: 'elasticsearch:7.17.27'
  29. env:
  30. - name: TAKE_FILE_OWNERSHIP
  31. value: 'true'
  32. - name: discovery.type
  33. value: single-node
  34. - name: ES_JAVA_OPTS
  35. value: '-Xms2048m -Xmx2048m'
  36. - name: ELASTICSEARCH_USERNAME
  37. value: 'elastic'
  38. - name: ELASTIC_PASSWORD
  39. value: 'hn02le.34lkdLKD'
  40. - name: xpack.security.enabled
  41. value: 'true'
  42. resources: {}
  43. volumeMounts:
  44. - name: mall4j-elasticsearch
  45. mountPath: /usr/share/elasticsearch/data
  46. subPath: ./data
  47. - name: mall4j-elasticsearch
  48. mountPath: /usr/share/elasticsearch/plugins
  49. subPath: ./plugins
  50. - name: mall4j-elasticsearch
  51. mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
  52. subPath: ./config/elasticsearch.yml
  53. terminationMessagePath: /dev/termination-log
  54. terminationMessagePolicy: File
  55. imagePullPolicy: IfNotPresent
  56. restartPolicy: Always
  57. terminationGracePeriodSeconds: 30
  58. dnsPolicy: Default
  59. securityContext: {}
  60. schedulerName: default-scheduler
  61. dnsConfig: {}
  62. strategy:
  63. type: RollingUpdate
  64. rollingUpdate:
  65. maxUnavailable: 25%
  66. maxSurge: 25%
  67. revisionHistoryLimit: 10
  68. progressDeadlineSeconds: 600
  69. ---
  70. kind: Deployment
  71. apiVersion: apps/v1
  72. metadata:
  73. name: mall4j-minio
  74. namespace: mall4j-middleware
  75. labels:
  76. k8s.kuboard.cn/name: mall4j-minio
  77. annotations: {}
  78. spec:
  79. replicas: 1
  80. selector:
  81. matchLabels:
  82. k8s.kuboard.cn/name: mall4j-minio
  83. template:
  84. metadata:
  85. creationTimestamp: null
  86. labels:
  87. k8s.kuboard.cn/name: mall4j-minio
  88. spec:
  89. volumes:
  90. - name: mall4j-minio
  91. nfs:
  92. server: 192.168.1.28
  93. path: /nfs/data/mall4j-middleware/mall4j-minio/
  94. containers:
  95. - name: mall4j-minio
  96. image: 'minio/minio:RELEASE.2024-04-18T19-09-19Z'
  97. args:
  98. - "server"
  99. - "/data"
  100. - "--console-address"
  101. - ":9001"
  102. env:
  103. - name: MINIO_ROOT_USER
  104. value: admin
  105. - name: MINIO_ROOT_PASSWORD
  106. value: 'hn02le.34lkdLKD'
  107. # - name: MINIO_BROWSER_REDIRECT_URL
  108. # value: http://你的代理服务器IP/域名:30682/minio/
  109. resources: {}
  110. volumeMounts:
  111. - name: mall4j-minio
  112. mountPath: /data
  113. subPath: ./data
  114. terminationMessagePath: /dev/termination-log
  115. terminationMessagePolicy: File
  116. imagePullPolicy: IfNotPresent
  117. restartPolicy: Always
  118. terminationGracePeriodSeconds: 30
  119. dnsPolicy: ClusterFirst
  120. securityContext: {}
  121. schedulerName: default-scheduler
  122. strategy:
  123. type: RollingUpdate
  124. rollingUpdate:
  125. maxUnavailable: 25%
  126. maxSurge: 25%
  127. revisionHistoryLimit: 10
  128. progressDeadlineSeconds: 600
  129. ---
  130. kind: Deployment
  131. apiVersion: apps/v1
  132. metadata:
  133. name: mall4j-aof-redis
  134. namespace: mall4j-middleware
  135. labels:
  136. k8s.kuboard.cn/name: mall4j-aof-redis
  137. annotations: {}
  138. spec:
  139. replicas: 1
  140. selector:
  141. matchLabels:
  142. k8s.kuboard.cn/name: mall4j-aof-redis
  143. template:
  144. metadata:
  145. creationTimestamp: null
  146. labels:
  147. k8s.kuboard.cn/name: mall4j-aof-redis
  148. spec:
  149. volumes:
  150. - name: mall4j-aof-redis
  151. nfs:
  152. path: /nfs/data/mall4j-middleware/mall4j-aof-redis/
  153. server: 192.168.1.28
  154. containers:
  155. - name: mall4j-aof-redis
  156. image: redis:7.0
  157. - command:
  158. - redis-server
  159. - /etc/redis/redis.conf
  160. - '--requirepass'
  161. - hn02le.34lkdLKD
  162. resources: {}
  163. volumeMounts:
  164. - mountPath: /etc/redis/redis.conf
  165. name: mall4j-aof-redis
  166. subPath: ./redis.conf
  167. - mountPath: /data
  168. name: mall4j-aof-redis
  169. subPath: ./data
  170. terminationMessagePath: /dev/termination-log
  171. terminationMessagePolicy: File
  172. imagePullPolicy: IfNotPresent
  173. restartPolicy: Always
  174. terminationGracePeriodSeconds: 30
  175. dnsPolicy: ClusterFirst
  176. securityContext: {}
  177. schedulerName: default-scheduler
  178. strategy:
  179. type: RollingUpdate
  180. rollingUpdate:
  181. maxUnavailable: 25%
  182. maxSurge: 25%
  183. revisionHistoryLimit: 10
  184. progressDeadlineSeconds: 600
  185. ---
  186. kind: Deployment
  187. apiVersion: apps/v1
  188. metadata:
  189. name: mall4j-redis
  190. namespace: mall4j-middleware
  191. labels:
  192. k8s.kuboard.cn/name: mall4j-redis
  193. annotations: {}
  194. spec:
  195. replicas: 1
  196. selector:
  197. matchLabels:
  198. k8s.kuboard.cn/name: mall4j-redis
  199. template:
  200. metadata:
  201. creationTimestamp: null
  202. labels:
  203. k8s.kuboard.cn/name: mall4j-redis
  204. spec:
  205. containers:
  206. - name: mall4j-redis
  207. image: redis
  208. resources: {}
  209. command:
  210. - --requirepass hn02le.34lkdLKD
  211. terminationMessagePath: /dev/termination-log
  212. terminationMessagePolicy: File
  213. imagePullPolicy: IfNotPresent
  214. restartPolicy: Always
  215. terminationGracePeriodSeconds: 30
  216. dnsPolicy: ClusterFirst
  217. securityContext: {}
  218. schedulerName: default-scheduler
  219. strategy:
  220. type: RollingUpdate
  221. rollingUpdate:
  222. maxUnavailable: 25%
  223. maxSurge: 25%
  224. revisionHistoryLimit: 10
  225. progressDeadlineSeconds: 600
  226. ---
  227. kind: Deployment
  228. apiVersion: apps/v1
  229. metadata:
  230. name: mall4j-xxl-job
  231. namespace: mall4j-middleware
  232. labels:
  233. k8s.kuboard.cn/name: mall4j-xxl-job
  234. annotations: {}
  235. spec:
  236. replicas: 1
  237. selector:
  238. matchLabels:
  239. k8s.kuboard.cn/name: mall4j-xxl-job
  240. template:
  241. metadata:
  242. creationTimestamp: null
  243. labels:
  244. k8s.kuboard.cn/name: mall4j-xxl-job
  245. spec:
  246. containers:
  247. - name: mall4j-xxl-job
  248. image: 'xuxueli/xxl-job-admin:3.0.0'
  249. env:
  250. - name: PARAMS
  251. value: >-
  252. --spring.datasource.url=jdbc:mysql://10.1.246.56:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 \
  253. --spring.datasource.username=root \
  254. --spring.datasource.password=hn02le.34lkdLKD \
  255. --xxl.job.accessToken=mall4j_token \
  256. --xxl.job.logretentiondays=7
  257. resources: {}
  258. terminationMessagePath: /dev/termination-log
  259. terminationMessagePolicy: File
  260. imagePullPolicy: IfNotPresent
  261. restartPolicy: Always
  262. terminationGracePeriodSeconds: 30
  263. dnsPolicy: ClusterFirst
  264. securityContext: {}
  265. schedulerName: default-scheduler
  266. strategy:
  267. type: RollingUpdate
  268. rollingUpdate:
  269. maxUnavailable: 25%
  270. maxSurge: 25%
  271. revisionHistoryLimit: 10
  272. progressDeadlineSeconds: 600
  273. ---
  274. kind: Deployment
  275. apiVersion: apps/v1
  276. metadata:
  277. name: mall4j-nginx
  278. namespace: mall4j-middleware
  279. labels:
  280. k8s.kuboard.cn/name: mall4j-nginx
  281. annotations: {}
  282. spec:
  283. replicas: 1
  284. selector:
  285. matchLabels:
  286. k8s.kuboard.cn/name: mall4j-nginx
  287. template:
  288. metadata:
  289. creationTimestamp: null
  290. labels:
  291. k8s.kuboard.cn/name: mall4j-nginx
  292. spec:
  293. volumes:
  294. - name: mall4j-nginx
  295. nfs:
  296. server: 192.168.1.28
  297. path: /nfs/data/mall4j-middleware/mall4j-nginx
  298. containers:
  299. - name: mall4j-nginx
  300. image: nginx
  301. ports:
  302. - hostPort: 80
  303. containerPort: 80
  304. protocol: TCP
  305. resources: {}
  306. volumeMounts:
  307. - name: mall4j-nginx
  308. mountPath: /etc/nginx/nginx.conf
  309. subPath: ./conf/nginx.conf
  310. - name: mall4j-nginx
  311. mountPath: /etc/nginx/conf.d
  312. subPath: ./conf/conf.d
  313. terminationMessagePath: /dev/termination-log
  314. terminationMessagePolicy: File
  315. imagePullPolicy: IfNotPresent
  316. restartPolicy: Always
  317. terminationGracePeriodSeconds: 30
  318. dnsPolicy: Default
  319. securityContext: {}
  320. schedulerName: default-scheduler
  321. dnsConfig: {}
  322. strategy:
  323. type: RollingUpdate
  324. rollingUpdate:
  325. maxUnavailable: 25%
  326. maxSurge: 25%
  327. revisionHistoryLimit: 10
  328. progressDeadlineSeconds: 600
  329. ---
  330. kind: Deployment
  331. apiVersion: apps/v1
  332. metadata:
  333. name: mall4j-wukongim
  334. namespace: mall4j-middleware
  335. labels:
  336. k8s.kuboard.cn/name: mall4j-wukongim
  337. annotations: {}
  338. spec:
  339. replicas: 1
  340. selector:
  341. matchLabels:
  342. k8s.kuboard.cn/name: mall4j-wukongim
  343. template:
  344. metadata:
  345. creationTimestamp: null
  346. labels:
  347. k8s.kuboard.cn/name: mall4j-wukongim
  348. spec:
  349. volumes:
  350. - name: mall4j-wukongim
  351. nfs:
  352. server: 192.168.1.28
  353. path: /nfs/data/mall4j-middleware/mall4j-wukongim
  354. containers:
  355. - name: mall4j-wukongim
  356. image: 'wukongim/wukongim:v2.2.0-20250426'
  357. env:
  358. - name: WK_MANAGERTOKEN
  359. value: hn02le.34lkdLKD
  360. - name: WK_WEBHOOK_HTTPADDR
  361. value: http://mall4j-multishop:8113/notice/im/online
  362. resources: {}
  363. volumeMounts:
  364. - name: wukongim
  365. mountPath: /root/wukongim/wk.yaml
  366. subPath: ./wk.yaml
  367. - name: wukongim
  368. mountPath: /root/wukongim/data
  369. subPath: ./data
  370. - name: wukongim
  371. mountPath: /root/wukongim/logs
  372. subPath: ./logs
  373. terminationMessagePath: /dev/termination-log
  374. terminationMessagePolicy: File
  375. imagePullPolicy: IfNotPresent
  376. restartPolicy: Always
  377. terminationGracePeriodSeconds: 30
  378. dnsPolicy: Default
  379. nodeName: k8s-node1
  380. securityContext: {}
  381. schedulerName: default-scheduler
  382. dnsConfig: {}
  383. strategy:
  384. type: RollingUpdate
  385. rollingUpdate:
  386. maxUnavailable: 25%
  387. maxSurge: 25%
  388. revisionHistoryLimit: 10
  389. progressDeadlineSeconds: 600
  390. ---
  391. kind: StatefulSet
  392. apiVersion: apps/v1
  393. metadata:
  394. name: mall4j-mysql
  395. namespace: mall4j-middleware
  396. labels:
  397. k8s.kuboard.cn/name: mall4j-mysql
  398. spec:
  399. replicas: 1
  400. selector:
  401. matchLabels:
  402. k8s.kuboard.cn/name: mall4j-mysql
  403. template:
  404. metadata:
  405. creationTimestamp: null
  406. labels:
  407. k8s.kuboard.cn/name: mall4j-mysql
  408. spec:
  409. volumes:
  410. - name: mall4j-mysql
  411. nfs:
  412. server: 192.168.1.28
  413. path: /nfs/data/mall4j-middleware/mall4j-mysql
  414. containers:
  415. - name: mall4j-mysql
  416. image: 'mysql:8.0.35'
  417. env:
  418. - name: MYSQL_ROOT_PASSWORD
  419. value: 'hn02le.34lkdLKD'
  420. - name: TZ
  421. value: Asia/Shanghai
  422. resources:
  423. limits:
  424. cpu: '10'
  425. memory: 8Gi
  426. volumeMounts:
  427. - name: mall4j-mysql
  428. mountPath: /var/lib/mysql
  429. subPath: ./data
  430. - name: mall4j-mysql
  431. mountPath: /etc/mysql/conf.d
  432. subPath: ./conf.d
  433. terminationMessagePath: /dev/termination-log
  434. terminationMessagePolicy: File
  435. imagePullPolicy: IfNotPresent
  436. restartPolicy: Always
  437. terminationGracePeriodSeconds: 30
  438. dnsPolicy: ClusterFirst
  439. securityContext: {}
  440. schedulerName: default-scheduler
  441. serviceName: mall4j-mysql
  442. podManagementPolicy: OrderedReady
  443. updateStrategy:
  444. type: RollingUpdate
  445. rollingUpdate:
  446. partition: 0
  447. revisionHistoryLimit: 10
  448. ---
  449. kind: Service
  450. apiVersion: v1
  451. metadata:
  452. name: mall4j-minio
  453. namespace: mall4j-middleware
  454. labels:
  455. k8s.kuboard.cn/name: mall4j-minio
  456. spec:
  457. ports:
  458. - name: wsf6yb
  459. protocol: TCP
  460. port: 9000
  461. targetPort: 9000
  462. nodePort: 30681
  463. - name: jxaiy0
  464. protocol: TCP
  465. port: 9001
  466. targetPort: 9001
  467. nodePort: 30682
  468. selector:
  469. k8s.kuboard.cn/name: mall4j-minio
  470. type: NodePort
  471. sessionAffinity: None
  472. externalTrafficPolicy: Cluster
  473. ipFamilies:
  474. - IPv4
  475. ipFamilyPolicy: SingleStack
  476. internalTrafficPolicy: Cluster
  477. ---
  478. kind: Service
  479. apiVersion: v1
  480. metadata:
  481. name: mall4j-mysql
  482. namespace: mall4j-middleware
  483. labels:
  484. k8s.kuboard.cn/name: mall4j-mysql
  485. spec:
  486. ports:
  487. - name: c5ii2b
  488. protocol: TCP
  489. port: 3306
  490. targetPort: 3306
  491. nodePort: 30268
  492. selector:
  493. k8s.kuboard.cn/name: mall4j-mysql
  494. type: NodePort
  495. sessionAffinity: None
  496. externalName: mall4j-mysql.mall4j-middleware
  497. externalTrafficPolicy: Cluster
  498. ipFamilies:
  499. - IPv4
  500. ipFamilyPolicy: SingleStack
  501. internalTrafficPolicy: Cluster
  502. ---
  503. kind: Service
  504. apiVersion: v1
  505. metadata:
  506. name: mall4j-nginx
  507. namespace: mall4j-middleware
  508. labels:
  509. k8s.kuboard.cn/name: mall4j-nginx
  510. spec:
  511. ports:
  512. - protocol: TCP
  513. port: 80
  514. targetPort: 80
  515. selector:
  516. k8s.kuboard.cn/name: mall4j-nginx
  517. type: ClusterIP
  518. sessionAffinity: None
  519. ipFamilies:
  520. - IPv4
  521. ipFamilyPolicy: SingleStack
  522. internalTrafficPolicy: Cluster
  523. ---
  524. kind: Service
  525. apiVersion: v1
  526. metadata:
  527. name: mall4j-xxl-job
  528. namespace: mall4j-middleware
  529. labels:
  530. k8s.kuboard.cn/name: mall4j-xxl-job
  531. spec:
  532. ports:
  533. - protocol: TCP
  534. port: 8080
  535. targetPort: 8080
  536. nodePort: 30218
  537. selector:
  538. k8s.kuboard.cn/name: mall4j-xxl-job
  539. type: NodePort
  540. sessionAffinity: None
  541. externalTrafficPolicy: Cluster
  542. ipFamilies:
  543. - IPv4
  544. ipFamilyPolicy: SingleStack
  545. internalTrafficPolicy: Cluster
  546. ---
  547. kind: Service
  548. apiVersion: v1
  549. metadata:
  550. name: mall4j-redis
  551. namespace: mall4j-middleware
  552. labels:
  553. k8s.kuboard.cn/name: mall4j-redis
  554. spec:
  555. ports:
  556. - name: d7feys
  557. protocol: TCP
  558. port: 6379
  559. targetPort: 6379
  560. nodePort: 30272
  561. selector:
  562. k8s.kuboard.cn/name: mall4j-redis
  563. type: NodePort
  564. sessionAffinity: None
  565. externalTrafficPolicy: Cluster
  566. ipFamilies:
  567. - IPv4
  568. ipFamilyPolicy: SingleStack
  569. internalTrafficPolicy: Cluster
  570. ---
  571. kind: Service
  572. apiVersion: v1
  573. metadata:
  574. name: mall4j-elasticsearch
  575. namespace: mall4j-middleware
  576. labels:
  577. k8s.kuboard.cn/name: mall4j-elasticsearch
  578. spec:
  579. ports:
  580. - name: 7yaisb
  581. protocol: TCP
  582. port: 9200
  583. targetPort: 9200
  584. nodePort: 31752
  585. - name: jxai2k
  586. protocol: TCP
  587. port: 9300
  588. targetPort: 9300
  589. nodePort: 31099
  590. selector:
  591. k8s.kuboard.cn/name: mall4j-elasticsearch
  592. type: NodePort
  593. sessionAffinity: None
  594. externalTrafficPolicy: Cluster
  595. ipFamilies:
  596. - IPv4
  597. ipFamilyPolicy: SingleStack
  598. internalTrafficPolicy: Cluster
  599. ---
  600. kind: Service
  601. apiVersion: v1
  602. metadata:
  603. name: mall4j-wukongim
  604. namespace: mall4j-middleware
  605. labels:
  606. k8s.kuboard.cn/name: mall4j-wukongim
  607. spec:
  608. ports:
  609. - name: x4a3et
  610. protocol: TCP
  611. port: 5001
  612. targetPort: 5001
  613. nodePort: 32372
  614. - name: i2jkzm
  615. protocol: TCP
  616. port: 5200
  617. targetPort: 5200
  618. nodePort: 32665
  619. selector:
  620. k8s.kuboard.cn/name: mall4j-wukongim
  621. type: NodePort
  622. sessionAffinity: None
  623. externalTrafficPolicy: Cluster
  624. ipFamilies:
  625. - IPv4
  626. ipFamilyPolicy: SingleStack
  627. internalTrafficPolicy: Cluster
  628. ---
  629. kind: Service
  630. apiVersion: v1
  631. metadata:
  632. name: mall4j-aof-redis
  633. namespace: mall4j-middleware
  634. labels:
  635. k8s.kuboard.cn/name: mall4j-aof-redis
  636. spec:
  637. ports:
  638. - name: qhmx8a
  639. protocol: TCP
  640. port: 6379
  641. targetPort: 6379
  642. nodePort: 31377
  643. selector:
  644. k8s.kuboard.cn/name: mall4j-aof-redis
  645. type: NodePort
  646. sessionAffinity: None
  647. externalTrafficPolicy: Cluster
  648. ipFamilies:
  649. - IPv4
  650. ipFamilyPolicy: SingleStack
  651. internalTrafficPolicy: Cluster