Giter Club home page Giter Club logo

helm-cronjobs's Introduction

helm-cronjobs

You can define an array of jobs in values.yaml helm will take care of creating all the CronJobs.

Create kubernetes kind cluster
cd kind
kind create cluster --config kind-multi-node.yaml
https://kind.sigs.k8s.io/docs/user/quick-start/
Argo CD Installation
https://argoproj.github.io/argo-cd/getting_started/#1-install-argo-cd

Deployment

Deployment using Argo CD
helm template --name cronjob --namespace=crons ./helm-cronjobs --namespace=crons -f ./helm-cronjobs/values.yaml --output-dir cronjob
argocd app create cronjob-argo --repo https://github.com/pnduati/helm-cronjobs.git --path cron --dest-server https://kubernetes.default.svc --dest-namespace crons
argocd app sync cronjob-argo

Examples


\$ helm install .
NAME: cold-fly
LAST DEPLOYED: Fri Feb 1 15:29:21 2019
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> v1beta1/CronJob
NAME AGE
cold-fly-hello-world 1s
cold-fly-hello-ubuntu 1s
cold-fly-hello-env-var 1s

list cronjobs:


\$ kubectl get cronjob
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
cold-fly-hello-env-var \* \* \* \* _ False 0 23s 1m
cold-fly-hello-ubuntu _/5 \* \* \* _ False 0 23s 1m
cold-fly-hello-world _ \* \* \* \* False 0 23s 1m

list jobs:


\$ kubectl get jobs
NAME DESIRED SUCCESSFUL AGE
cold-fly-hello-env-var-1549056600 1 1 45s
cold-fly-hello-ubuntu-1549056600 1 1 45s
cold-fly-hello-world-1549056600 1 1 45s

helm-cronjobs's People

Contributors

pnduati avatar

Watchers

 avatar

Forkers

ravjot28 pckt1993

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.