diff --git a/samples/RequireNSLimitsQuotas.md b/samples/RequireNSLimitsQuotas.md index 64251449d8..e77703a197 100644 --- a/samples/RequireNSLimitsQuotas.md +++ b/samples/RequireNSLimitsQuotas.md @@ -1,6 +1,6 @@ # Configure namespace limits and quotas -To limit the number of resources like CPU and memory, as well as objects that may be consumed by workloads in a namespace, it is important to configure resource limits and quotas for each namespace. +To limit the number of resources like CPU and memory, as well as objects that may be consumed by workloads in a namespace, it is important to configure resource limits and quotas for each namespace. ## Additional Information @@ -14,10 +14,10 @@ To limit the number of resources like CPU and memory, as well as objects that ma apiVersion: kyverno.io/v1alpha1 kind: ClusterPolicy metadata: - name: validate-namespace-quota + name: generate-namespace-quota spec: rules: - - name: validate-namespace-quota + - name: generate-namespace-quota match: resources: kinds: @@ -25,11 +25,11 @@ spec: generate: kind: ResourceQuota name: "defaultresourcequota" - spec: - hard: - requests.cpu: "*" - requests.memory: "*" - limits.cpu: "*" - limits.memory: "*" -```` - + data: + spec: + hard: + requests.cpu: '4' + requests.memory: '16Gi' + limits.cpu: '4' + limits.memory: '16Gi' +```` \ No newline at end of file