2025-09-19 09:30:02 +08:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: xxl-job-admin
|
|
|
|
|
namespace: default
|
|
|
|
|
labels:
|
|
|
|
|
app: xxl-job-admin
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: xxl-job-admin
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: xxl-job-admin
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: xxl-job-admin
|
2025-09-26 11:55:43 +08:00
|
|
|
image: registry.t-aaron.com/xuxueli/xxl-job-admin.0
|
2025-09-19 09:30:02 +08:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
|
|
|
|
name: http
|
|
|
|
|
env:
|
|
|
|
|
- name: PARAMS
|
2025-09-26 11:55:43 +08:00
|
|
|
value: "--spring.datasource.url=jdbc:h2:mem:xxl_job;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE --spring.datasource.username=sa --spring.datasource.password= --spring.datasource.driver-class-name=org.h2.Driver --xxl.job.accessToken=default_token"
|
2025-09-19 09:30:02 +08:00
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
memory: "512Mi"
|
|
|
|
|
cpu: "250m"
|
|
|
|
|
limits:
|
|
|
|
|
memory: "1Gi"
|
|
|
|
|
cpu: "500m"
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /actuator/health
|
|
|
|
|
port: 8080
|
|
|
|
|
initialDelaySeconds: 60
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
timeoutSeconds: 5
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /actuator/health
|
|
|
|
|
port: 8080
|
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
|
periodSeconds: 5
|
|
|
|
|
timeoutSeconds: 3
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: xxl-job-logs
|
|
|
|
|
mountPath: /data/applogs
|
|
|
|
|
volumes:
|
|
|
|
|
- name: xxl-job-logs
|
|
|
|
|
emptyDir: {}
|
|
|
|
|
restartPolicy: Always
|
|
|
|
|
|