How can I apply this file to all namespaces:
apiVersion: v1
kind: LimitRange
metadata:
name: resource-limits
spec:
limits:
-
type: Pod
max:
cpu: 1000m
memory: 1Gi
min:
cpu: 500m
memory: 500Mi
By default it gets applied to namespace I am into. I want to make this setting a common one
How can I do that. Make this a global setting.
After doing a lot of research, I got a better solution,
Kyverno
which is adopted as CNCF Incubating project maturity level. It can implement cluster level policies which suffices my usecase. Link is here :https://kyverno.io/