Files

77 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2026-06-30 16:41:32 +08:00
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