Skip to content

Commit

Permalink
Merge pull request #20 from vipyrsec/cronjob
Browse files Browse the repository at this point in the history
Add Dragonfly cronjob manifest
  • Loading branch information
Robin5605 authored Jul 31, 2023
2 parents 48cff78 + 8cd1f19 commit 31f072e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions kubernetes/manifests/dragonfly/loader/README.md
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
20 changes: 20 additions & 0 deletions kubernetes/manifests/dragonfly/loader/deployment.yaml
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

0 comments on commit 31f072e

Please sign in to comment.