Operator for CronJob resources
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
830 B

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: cron-operator
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. name: cron-operator
  10. template:
  11. metadata:
  12. labels:
  13. name: cron-operator
  14. spec:
  15. serviceAccountName: cron-operator
  16. containers:
  17. - name: cron-operator
  18. image: iam21h/cron-operator
  19. command:
  20. - cron-operator
  21. imagePullPolicy: Always
  22. env:
  23. - name: WATCH_NAMESPACE
  24. value: ""
  25. - name: NAMESPACE_NAME
  26. valueFrom:
  27. fieldRef:
  28. fieldPath: metadata.namespace
  29. - name: POD_NAME
  30. valueFrom:
  31. fieldRef:
  32. fieldPath: metadata.name
  33. - name: OPERATOR_NAME
  34. value: "cron-operator"