-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Packaged invoice container into Kubernetes cronjob
The manifests needed for the cronjob includes the cronjob, and two secret files which sets the private key for the nonbillable repo's deploykey and the s3 app_key and key_id The cronjob is set to run at 12:00AM on the 1st of each month
- Loading branch information
Showing
5 changed files
with
51 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,30 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: invoice-processing | ||
spec: | ||
schedule: "0 14 1 * *" | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: invoice-processing | ||
image: ghcr.io/cci-moc/process-csv-report:latest | ||
env: | ||
- name: GH_NONBILLABLE_DEPLOYKEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: gh-nonbillables | ||
key: ssh-deploykey | ||
- name: S3_KEY_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: nerc-invoices-s3-bucket | ||
key: s3-key-id | ||
- name: S3_APP_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: nerc-invoices-s3-bucket | ||
key: s3-app-key | ||
restartPolicy: OnFailure |
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,2 @@ | ||
resources: | ||
- invoice-processing.yaml |
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,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: gh-nonbillables | ||
type: kubernetes.io/ssh-auth | ||
data: | ||
ssh-deploykey: test |
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,4 @@ | ||
resources: | ||
- ../base | ||
- secret-b2-old-pi.yaml | ||
- secret-gh-nonbillables.yaml |
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,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: nerc-invoices-s3-bucket | ||
type: Opaque | ||
data: | ||
s3-app-key: test | ||
s3-key-id: test |