vim set-limit-range.yml
apiVersion: v1
kind: LimitRange
metadata:
name: set-limit-range
spec:
limits:
- max:
cpu: "800m"
min:
cpu: "200m"
type: ContainerGet a list of existing limit ranges in the default namespace and create the one using the file created in the above step.
kubectl get limitrange
kubectl create -f set-limit-range.yml
kubectl get limitrange
kubectl describe limitrange set-limit-range


No comments:
Post a Comment