--- kind: Deployment apiVersion: apps/v1 metadata: name: mall4j-elasticsearch namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-elasticsearch annotations: {} spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-elasticsearch template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-elasticsearch spec: volumes: - name: mall4j-elasticsearch nfs: server: 192.168.1.28 path: /nfs/data/mall4j-middleware/mall4j-elasticsearch/ containers: - name: mall4j-elasticsearch image: 'elasticsearch:7.17.27' env: - name: TAKE_FILE_OWNERSHIP value: 'true' - name: discovery.type value: single-node - name: ES_JAVA_OPTS value: '-Xms2048m -Xmx2048m' - name: ELASTICSEARCH_USERNAME value: 'elastic' - name: ELASTIC_PASSWORD value: 'hn02le.34lkdLKD' - name: xpack.security.enabled value: 'true' resources: {} volumeMounts: - name: mall4j-elasticsearch mountPath: /usr/share/elasticsearch/data subPath: ./data - name: mall4j-elasticsearch mountPath: /usr/share/elasticsearch/plugins subPath: ./plugins - name: mall4j-elasticsearch mountPath: /usr/share/elasticsearch/config/elasticsearch.yml subPath: ./config/elasticsearch.yml terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: Default securityContext: {} schedulerName: default-scheduler dnsConfig: {} strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: Deployment apiVersion: apps/v1 metadata: name: mall4j-minio namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-minio annotations: {} spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-minio template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-minio spec: volumes: - name: mall4j-minio nfs: server: 192.168.1.28 path: /nfs/data/mall4j-middleware/mall4j-minio/ containers: - name: mall4j-minio image: 'minio/minio:RELEASE.2024-04-18T19-09-19Z' args: - "server" - "/data" - "--console-address" - ":9001" env: - name: MINIO_ROOT_USER value: admin - name: MINIO_ROOT_PASSWORD value: 'hn02le.34lkdLKD' # - name: MINIO_BROWSER_REDIRECT_URL # value: http://你的代理服务器IP/域名:30682/minio/ resources: {} volumeMounts: - name: mall4j-minio mountPath: /data subPath: ./data terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} schedulerName: default-scheduler strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: Deployment apiVersion: apps/v1 metadata: name: mall4j-aof-redis namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-aof-redis annotations: {} spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-aof-redis template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-aof-redis spec: volumes: - name: mall4j-aof-redis nfs: path: /nfs/data/mall4j-middleware/mall4j-aof-redis/ server: 192.168.1.28 containers: - name: mall4j-aof-redis image: redis:7.0 - command: - redis-server - /etc/redis/redis.conf - '--requirepass' - hn02le.34lkdLKD resources: {} volumeMounts: - mountPath: /etc/redis/redis.conf name: mall4j-aof-redis subPath: ./redis.conf - mountPath: /data name: mall4j-aof-redis subPath: ./data terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} schedulerName: default-scheduler strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: Deployment apiVersion: apps/v1 metadata: name: mall4j-redis namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-redis annotations: {} spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-redis template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-redis spec: containers: - name: mall4j-redis image: redis resources: {} command: - --requirepass hn02le.34lkdLKD terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} schedulerName: default-scheduler strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: Deployment apiVersion: apps/v1 metadata: name: mall4j-xxl-job namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-xxl-job annotations: {} spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-xxl-job template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-xxl-job spec: containers: - name: mall4j-xxl-job image: 'xuxueli/xxl-job-admin:3.0.0' env: - name: PARAMS value: >- --spring.datasource.url=jdbc:mysql://10.1.246.56:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 \ --spring.datasource.username=root \ --spring.datasource.password=hn02le.34lkdLKD \ --xxl.job.accessToken=mall4j_token \ --xxl.job.logretentiondays=7 resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} schedulerName: default-scheduler strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: Deployment apiVersion: apps/v1 metadata: name: mall4j-nginx namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-nginx annotations: {} spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-nginx template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-nginx spec: volumes: - name: mall4j-nginx nfs: server: 192.168.1.28 path: /nfs/data/mall4j-middleware/mall4j-nginx containers: - name: mall4j-nginx image: nginx ports: - hostPort: 80 containerPort: 80 protocol: TCP resources: {} volumeMounts: - name: mall4j-nginx mountPath: /etc/nginx/nginx.conf subPath: ./conf/nginx.conf - name: mall4j-nginx mountPath: /etc/nginx/conf.d subPath: ./conf/conf.d terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: Default securityContext: {} schedulerName: default-scheduler dnsConfig: {} strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: Deployment apiVersion: apps/v1 metadata: name: mall4j-wukongim namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-wukongim annotations: {} spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-wukongim template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-wukongim spec: volumes: - name: mall4j-wukongim nfs: server: 192.168.1.28 path: /nfs/data/mall4j-middleware/mall4j-wukongim containers: - name: mall4j-wukongim image: 'wukongim/wukongim:v2.2.0-20250426' env: - name: WK_MANAGERTOKEN value: hn02le.34lkdLKD - name: WK_WEBHOOK_HTTPADDR value: http://mall4j-multishop:8113/notice/im/online resources: {} volumeMounts: - name: wukongim mountPath: /root/wukongim/wk.yaml subPath: ./wk.yaml - name: wukongim mountPath: /root/wukongim/data subPath: ./data - name: wukongim mountPath: /root/wukongim/logs subPath: ./logs terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: Default nodeName: k8s-node1 securityContext: {} schedulerName: default-scheduler dnsConfig: {} strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600 --- kind: StatefulSet apiVersion: apps/v1 metadata: name: mall4j-mysql namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-mysql spec: replicas: 1 selector: matchLabels: k8s.kuboard.cn/name: mall4j-mysql template: metadata: creationTimestamp: null labels: k8s.kuboard.cn/name: mall4j-mysql spec: volumes: - name: mall4j-mysql nfs: server: 192.168.1.28 path: /nfs/data/mall4j-middleware/mall4j-mysql containers: - name: mall4j-mysql image: 'mysql:8.0.35' env: - name: MYSQL_ROOT_PASSWORD value: 'hn02le.34lkdLKD' - name: TZ value: Asia/Shanghai resources: limits: cpu: '10' memory: 8Gi volumeMounts: - name: mall4j-mysql mountPath: /var/lib/mysql subPath: ./data - name: mall4j-mysql mountPath: /etc/mysql/conf.d subPath: ./conf.d terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst securityContext: {} schedulerName: default-scheduler serviceName: mall4j-mysql podManagementPolicy: OrderedReady updateStrategy: type: RollingUpdate rollingUpdate: partition: 0 revisionHistoryLimit: 10 --- kind: Service apiVersion: v1 metadata: name: mall4j-minio namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-minio spec: ports: - name: wsf6yb protocol: TCP port: 9000 targetPort: 9000 nodePort: 30681 - name: jxaiy0 protocol: TCP port: 9001 targetPort: 9001 nodePort: 30682 selector: k8s.kuboard.cn/name: mall4j-minio type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster --- kind: Service apiVersion: v1 metadata: name: mall4j-mysql namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-mysql spec: ports: - name: c5ii2b protocol: TCP port: 3306 targetPort: 3306 nodePort: 30268 selector: k8s.kuboard.cn/name: mall4j-mysql type: NodePort sessionAffinity: None externalName: mall4j-mysql.mall4j-middleware externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster --- kind: Service apiVersion: v1 metadata: name: mall4j-nginx namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-nginx spec: ports: - protocol: TCP port: 80 targetPort: 80 selector: k8s.kuboard.cn/name: mall4j-nginx type: ClusterIP sessionAffinity: None ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster --- kind: Service apiVersion: v1 metadata: name: mall4j-xxl-job namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-xxl-job spec: ports: - protocol: TCP port: 8080 targetPort: 8080 nodePort: 30218 selector: k8s.kuboard.cn/name: mall4j-xxl-job type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster --- kind: Service apiVersion: v1 metadata: name: mall4j-redis namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-redis spec: ports: - name: d7feys protocol: TCP port: 6379 targetPort: 6379 nodePort: 30272 selector: k8s.kuboard.cn/name: mall4j-redis type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster --- kind: Service apiVersion: v1 metadata: name: mall4j-elasticsearch namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-elasticsearch spec: ports: - name: 7yaisb protocol: TCP port: 9200 targetPort: 9200 nodePort: 31752 - name: jxai2k protocol: TCP port: 9300 targetPort: 9300 nodePort: 31099 selector: k8s.kuboard.cn/name: mall4j-elasticsearch type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster --- kind: Service apiVersion: v1 metadata: name: mall4j-wukongim namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-wukongim spec: ports: - name: x4a3et protocol: TCP port: 5001 targetPort: 5001 nodePort: 32372 - name: i2jkzm protocol: TCP port: 5200 targetPort: 5200 nodePort: 32665 selector: k8s.kuboard.cn/name: mall4j-wukongim type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster --- kind: Service apiVersion: v1 metadata: name: mall4j-aof-redis namespace: mall4j-middleware labels: k8s.kuboard.cn/name: mall4j-aof-redis spec: ports: - name: qhmx8a protocol: TCP port: 6379 targetPort: 6379 nodePort: 31377 selector: k8s.kuboard.cn/name: mall4j-aof-redis type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack internalTrafficPolicy: Cluster