-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from vipyrsec/cronjob
Add Dragonfly cronjob manifest
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Dragonfly Loader | ||
|
||
Infra configuration for the [Dragonfly Loader](https://github.com/vipyrsec/dragonfly-loader). | ||
|
||
## Secrets | ||
This deployment expects a number of secrets and environment variables to exist in a secret called `dragonfly-loader-env`. | ||
|
||
|
||
| Environment | Description | | ||
|-------------------------|----------------------------------------------------------| | ||
| BASE_URL | Base URL of the Dragonfly API | | ||
| AUTH0_DOMAIN | Domain of the AUTH0 authentication server | | ||
| CLIENT_ID | Client ID | | ||
| CLIENT_SECRET | Client secret | | ||
| USERNAME | Username | | ||
| PASSWORD | Password | | ||
| AUDIENCE | Authentication audience |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
namespace: dragonfly | ||
name: dragonfly-loader | ||
spec: | ||
schedule: "* * * * *" | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: dragonfly-loader | ||
image: ghcr.io/vipyrsec/dragonfly-loader:11030a287f9db03e23afa75c997b88b3f6388c3e | ||
imagePullPolicy: Always | ||
envFrom: | ||
- secretRef: | ||
name: dragonfly-loader-env | ||
restartPolicy: Never |