Add a job definition which runs the kube-hunter from inside the cluster

This commit is contained in:
Cosmin Cojocar
2018-08-17 09:54:08 +02:00
parent 8fa842ae18
commit afc4dd0803

14
job.yaml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: batch/v1
kind: Job
metadata:
name: kube-hunter
spec:
template:
spec:
containers:
- name: kube-hunter
image: aquasec/kube-hunter
command: ["python", "kube-hunter.py"]
args: ["--pod"]
restartPolicy: Never
backoffLimit: 4