From 144e6d20536114ed4134d3f6eb01f837d937afc4 Mon Sep 17 00:00:00 2001 From: abacus Date: Tue, 30 Jun 2026 16:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20xxljob/xxljob.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xxljob/xxljob.yaml | 77 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 xxljob/xxljob.yaml diff --git a/xxljob/xxljob.yaml b/xxljob/xxljob.yaml new file mode 100644 index 0000000..9db007b --- /dev/null +++ b/xxljob/xxljob.yaml @@ -0,0 +1,77 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + v10: xxljob + namespace: mall + name: xxljob +spec: + replicas: 1 + selector: + matchLabels: + v10: xxljob + template: + metadata: + labels: + v10: xxljob + namespace: mall + name: xxljob + spec: + hostAliases: + - ip: 192.168.2.33 + hostnames: + - v10sys.abacus.private + containers: + - image: abahub.abacus.com.cn/v10/xxljob:2.8.0 + imagePullPolicy: Always + name: xxljob + envFrom: + - configMapRef: + name: mall-config + env: + - name: JAVA_OPTS + value: "-Xms600m -Xmx600m" + ports: + - containerPort: 9000 + resources: + limits: + cpu: "800m" + memory: "800Mi" + requests: + cpu: "100m" + memory: "800Mi" + readinessProbe: + tcpSocket: + port: 9000 + periodSeconds: 30 + initialDelaySeconds: 30 + volumeMounts: + - mountPath: /apps/log + name: appslog + - mountPath: /apps/file + name: appsfile + volumes: + - persistentVolumeClaim: + claimName: mall-appslog-pvc + name: appslog + - persistentVolumeClaim: + claimName: mall-appsfile-pvc + name: appsfile +--- +apiVersion: v1 +kind: Service +metadata: + namespace: mall + name: xxljob-svc + annotations: + lb.kubesphere.io/v1alpha1: openelb + eip.openelb.kubesphere.io/v1alpha1: "192.168.2.136" +spec: + selector: + v10: xxljob + ports: + - port: 9900 + targetPort: 9000 + name: xxljob-svc-port + type: LoadBalancer + loadBalancerIP: 192.168.2.136 \ No newline at end of file