Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add example for k8s cronjob automated task example #80

Open
jkone27 opened this issue Apr 28, 2022 · 1 comment
Open

add example for k8s cronjob automated task example #80

jkone27 opened this issue Apr 28, 2022 · 1 comment

Comments

@jkone27
Copy link

jkone27 commented Apr 28, 2022

https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/

how does this translate in estafette, in particular, a cron job might be a "sidecar" of an app.. i didn't understand how i can set a container image (other thant the estafette extension image), so the two arrows above

apiVersion: batch/v1
kind: CronJob
metadata:
  name: hello
spec:
  schedule: "* * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello
            image: busybox:1.28 ##<<<<<<<<< i want to be able to set whatever image to invoke a custom command
            imagePullPolicy: IfNotPresent
            command: #<<<<<<< i want to set a custom command running from that image
            - /bin/sh
            - -c
            - date; echo Hello from the Kubernetes cluster
          restartPolicy: OnFailure
@jkone27
Copy link
Author

jkone27 commented May 2, 2022

i think image and command could be exposed for cronjob type, also maybe another action like deploy-multistage, to have separate manual trigger on stages.

deploy-multistage:
    stagename: first-stage
    
deploy-multistage:
   stagename: second-stage

as now multistage is bound to a single "deployment transaction / activity"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant