init
This commit is contained in:
@@ -9,6 +9,28 @@
|
||||
|
||||
## Работа с PolicyReport
|
||||
|
||||
### Пример записи policy report
|
||||
|
||||
```yaml
|
||||
apiVersion: wgpolicyk8s.io/v1alpha2
|
||||
kind: PolicyReport
|
||||
metadata:
|
||||
name: polr-ns-default
|
||||
namespace: default
|
||||
results:
|
||||
- message: "Контейнер 'nginx' должен иметь resource limits"
|
||||
policy: require-resource-limits
|
||||
result: fail
|
||||
rule: check-container-limits
|
||||
scored: true
|
||||
severity: high
|
||||
resources:
|
||||
- apiVersion: v1
|
||||
kind: Pod
|
||||
name: my-app
|
||||
namespace: default
|
||||
```
|
||||
|
||||
```bash
|
||||
# Посмотреть все отчёты
|
||||
kubectl get policyreports -A
|
||||
|
||||
Reference in New Issue
Block a user