Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/city-of-helsinki/setup-cronjob-action
Action to setup Kubernetes cronjob
https://github.com/city-of-helsinki/setup-cronjob-action
Last synced: about 1 month ago
JSON representation
Action to setup Kubernetes cronjob
- Host: GitHub
- URL: https://github.com/city-of-helsinki/setup-cronjob-action
- Owner: City-of-Helsinki
- License: mit
- Created: 2021-01-07T08:51:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T12:01:42.000Z (over 2 years ago)
- Last Synced: 2024-04-08T16:43:00.791Z (9 months ago)
- Size: 15.6 KB
- Stars: 2
- Watchers: 18
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-cronjob-action
Action to set up cronjob to Kubernetes namespace.
## Configuration
Following input variables are used in the action. Values without default value are mandatory.
| Name | Description | Default value |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------: |
| `kubeconfig_raw` | Kubeconfig as text to allow access to cluster and namespaces (RBAC) having Tunnistamo and review environment. | |
| `target_namespace` | Namespace of where cronjob is deployed to | |
| `secret_name` | Secret including environment variables for the job. Has to exist when job is started (not necessarily at the time CronJob created). | "" |
| `file_secret_name` | Secret including files needed for the job. Has to exist when job is started (not necessarily at the time CronJob created). | "" |
| `file_secret_mount_path` | Path where file secrets should be mounted to | "" |
| `configmap_name` | ConfigMap including environment variables for the job. Has to exist when job is started (not necessarily at the time CronJob created). | "" |
| `schedule` | Schedule of job to run. Remember to give time according Kubernetes node timezone (preferably UTC). Comma needs to be escaped if used. | `0 0 * * *` |
| `command` | Command (Entrypoint in container image) to use. Note notation with curly braces | `{bin/sh}` |
| `args` | Arguments (Command in container image) to use. Note notation with curly braces. Comma needs to be escaped if used. | `{-c,date; echo Hello from the Kubernetes cluster}` |
| `envs` | Direct environment variables to job. Note format (https://helm.sh/docs/intro/using_helm/#the-format-and-limitations-of---set). Key is `env.` | "" |
| `name` | Name to use in job. Mandatory if multiple cronjobs in one namespace | action-cronjob |
| `single_run` | If true, creates single job instaed of cronjob. This allows testing of job easier. Allows also dynamically search for secrets with suffix (suffix should be given to name, and start with `-`-) | `false` |
| `image_pull_secrets_name` | Secrets name to use for pull image. | "" |
| `request_cpu` | CPU request to created pod | 100m |
| `request_memory` | Memory request to created pod | 256Mi |
| `limit_cpu` | CPU limit to created pod | 500m |
| `limit_memory` | Memory limit to created pod | 1024Mi |
| `max_duration` | Jobs max duration (in seconds) | 300 |