shaikhsalman commited on
Commit
b5a9bba
·
verified ·
1 Parent(s): 1a33e9f

Upload finops/finops-cronjob.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. finops/finops-cronjob.yaml +23 -0
finops/finops-cronjob.yaml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FinOps Daily Cost Scanner
2
+ apiVersion: batch/v1
3
+ kind: CronJob
4
+ metadata:
5
+ name: finops-scanner
6
+ namespace: platform-system
7
+ spec:
8
+ schedule: "0 6 * * 1-5" # 6am weekdays
9
+ jobTemplate:
10
+ spec:
11
+ template:
12
+ spec:
13
+ serviceAccountName: finops-scanner
14
+ containers:
15
+ - name: scanner
16
+ image: "ecr.aws/devsecops/finops-scanner:latest"
17
+ command: ["python3", "finops_scanner.py"]
18
+ env:
19
+ - name: AWS_REGION
20
+ value: "us-east-1"
21
+ restartPolicy: Never
22
+ concurrencyPolicy: Forbid
23
+ successfulJobsHistoryLimit: 7