deployment.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: xxl-jobs
  5. namespace: base
  6. labels:
  7. app.kubernetes.io/name: xxl-jobs
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: xxl-jobs
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: xxl-jobs
  17. spec:
  18. containers:
  19. - name: admin
  20. image: reg.cestong.com.cn/cecf/xxl-jobs-admin:0.0.3
  21. imagePullPolicy: IfNotPresent
  22. env:
  23. - name: OTEL_GO_AUTO_TARGET_EXE
  24. value: /app/observe
  25. securityContext:
  26. runAsUser: 0
  27. privileged: true
  28. ports:
  29. - name: web
  30. containerPort: 8080
  31. protocol: TCP
  32. - name: executor
  33. image: reg.cestong.com.cn/cecf/xxl-jobs-excutetor:0.0.3
  34. imagePullPolicy: Always
  35. resources:
  36. limits:
  37. cpu: "1"
  38. memory: "1Gi"
  39. requests:
  40. cpu: "1"
  41. memory: "1Gi"
  42. securityContext:
  43. allowPrivilegeEscalation: false
  44. #runAsGroup: ''
  45. env:
  46. - name: TZ
  47. value: "Asia/Shanghai"