correct scan rerun command

This commit is contained in:
Yishay Mendelsohn 2023-03-16 10:52:38 +02:00 committed by GitHub
parent 04d1d86f12
commit 3291f3edbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ kubectl -n cms get all
Rerun our scan:
```
kubectl get job "scan-job" -n datree -o json | jq 'del(.spec.selector)' | jq 'del(.spec.template.metadata.labels)' | kubectl replace --force -f -
kubectl delete jobs/scan-job -n datree; kubectl create job --from=cronjob/scan-cronjob scan-job -n datree
```
Now we can follow the dashboard, to check our `namespace` for policy issues and start fixing them. </br>
@ -251,4 +251,4 @@ Try to apply our Wordpress MySQL which violates policies :
```
kubectl -n cms apply -f kubernetes/datree/example/cms/statefulset.yaml
```
```