mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: kubescape
|
|
labels:
|
|
app: kubescape
|
|
namespace: kubescape
|
|
spec:
|
|
# ┌────────────────── timezone (optional)
|
|
# | ┌───────────── minute (0 - 59)
|
|
# | │ ┌───────────── hour (0 - 23)
|
|
# | │ │ ┌───────────── day of the month (1 - 31)
|
|
# | │ │ │ ┌───────────── month (1 - 12)
|
|
# | │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday;
|
|
# | │ │ │ │ │ 7 is also Sunday on some systems)
|
|
# | │ │ │ │ │
|
|
# | │ │ │ │ │
|
|
# CRON_TZ=UTC * * * * *
|
|
schedule: "0 0 1 * *"
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: kubescape
|
|
image: quay.io/armosec/kubescape:latest
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["/bin/sh","-c"]
|
|
args:
|
|
- kubescape scan framework nsa --submit
|
|
volumeMounts:
|
|
- name: kubescape-config-volume
|
|
mountPath: /root/.kubescape/config.json
|
|
subPath: config.json
|
|
restartPolicy: OnFailure
|
|
serviceAccountName: kubescape-discovery
|
|
volumes:
|
|
- name: kubescape-config-volume
|
|
configMap:
|
|
name: kubescape
|