mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
feat(pip): Prepare for PyPI (#1531)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
## K8S - Cronjob
|
||||
Simple instructions to add a cronjob on K8S to execute a prowler and save the results on AWS S3.
|
||||
|
||||
### Files:
|
||||
### Files:
|
||||
cronjob.yml ---> is a **cronjob** for K8S, you must set the frequency and probes from yours scans \
|
||||
secret.yml -----> is a **secret** file with AWS ID/Secret and the name of bucket
|
||||
secret.yml -----> is a **secret** file with AWS ID/Secret and the name of bucket
|
||||
|
||||
### To apply:
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ spec:
|
||||
- name: prowler
|
||||
image: toniblyx/prowler:latest
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
command:
|
||||
- "./prowler"
|
||||
args: [ "-g", "hipaa", "-M", "csv,json,html", "-B", "$(awsS3Bucket)" ]
|
||||
env:
|
||||
@@ -30,11 +30,11 @@ spec:
|
||||
secretKeyRef:
|
||||
name: devsecops-prowler-cronjob-secret
|
||||
key: awsSecretKey
|
||||
- name: awsS3Bucket
|
||||
- name: awsS3Bucket
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: devsecops-prowler-cronjob-secret
|
||||
key: awsS3Bucket
|
||||
key: awsS3Bucket
|
||||
imagePullPolicy: IfNotPresent
|
||||
restartPolicy: OnFailure
|
||||
backoffLimit: 3
|
||||
|
||||
Reference in New Issue
Block a user