mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
Merge pull request #193 from myishay/patch-1
correct scan rerun command
This commit is contained in:
commit
634ba47ba1
@ -141,7 +141,7 @@ kubectl -n cms get all
|
|||||||
Rerun our scan:
|
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>
|
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
|
kubectl -n cms apply -f kubernetes/datree/example/cms/statefulset.yaml
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user