mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-04 16:56:56 +00:00
correct scan rerun command
This commit is contained in:
parent
04d1d86f12
commit
3291f3edbb
@ -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
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user