1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: xxl-jobs
- namespace: base
- labels:
- app.kubernetes.io/name: xxl-jobs
- spec:
- selector:
- matchLabels:
- app.kubernetes.io/name: xxl-jobs
- replicas: 1
- template:
- metadata:
- labels:
- app.kubernetes.io/name: xxl-jobs
- spec:
- containers:
- - name: admin
- image: reg.cestong.com.cn/cecf/xxl-jobs-admin:0.0.3
- imagePullPolicy: IfNotPresent
- env:
- - name: OTEL_GO_AUTO_TARGET_EXE
- value: /app/observe
- securityContext:
- runAsUser: 0
- privileged: true
- ports:
- - name: web
- containerPort: 8080
- protocol: TCP
- - name: executor
- image: reg.cestong.com.cn/cecf/xxl-jobs-excutetor:0.0.3
- imagePullPolicy: Always
- resources:
- limits:
- cpu: "1"
- memory: "1Gi"
- requests:
- cpu: "1"
- memory: "1Gi"
- securityContext:
- allowPrivilegeEscalation: false
- #runAsGroup: ''
- env:
- - name: TZ
- value: "Asia/Shanghai"
|