xxl.job.admin.addresses=http://xxl-job-admin:8080/xxl-job-admin

xxl.job.executor.address=http://xxl-job-executor-sample:9999

apiVersion: apps/v1
kind: Deployment
metadata:
  name: xxl-job-admin
  labels:
    app: xxl-job-admin
spec:
  replicas: 1
  selector:
    matchLabels:
      app: xxl-job-admin
  template:
    metadata:
      labels:
        app: xxl-job-admin
    spec:
      volumes:
      - name: applogs
        emptyDir: {}
      containers:
        - name: xxl-job-admin
          image: xuxueli/xxl-job-admin:2.2.0
          ports:
            - containerPort: 8080
          env:
          - name: PARAMS
            value: "--spring.datasource.url=jdbc:mysql://mysql-1596267225.database.svc.cluster.local:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai --spring.datasource.password=KNNmVQQhA0"
          volumeMounts:
          - mountPath: /data/applogs
            name: applogs
          resources:
            requests:
              memory: "1024Mi"
              cpu: "1"
            limits:
              memory: "2048Mi"
              cpu: "2"