policy-1¶
Description¶
None
Install¶
In cluster¶
kubectl apply -f https://raw.githubusercontent.com/kyverno/kyverno-json/main/catalog/ecs/policy-1.yaml
Download locally¶
curl -O https://raw.githubusercontent.com/kyverno/kyverno-json/main/catalog/ecs/policy-1.yaml
Manifest¶
apiVersion: json.kyverno.io/v1alpha1
kind: ValidatingPolicy
metadata:
  creationTimestamp: null
  name: test
spec:
  rules:
  - assert:
      all:
      - check:
          foo:
            /(bar)/: 10
    name: foo-bar