DMCA.com Protection Status Trending Topics About Devops: Create a LimitRange in the default namespace

Tuesday, 25 May 2021

Create a LimitRange in the default namespace

 vim set-limit-range.yml

apiVersion: v1
kind: LimitRange
metadata:
  name: set-limit-range
spec:
  limits:
  - max:
      cpu: "800m"
    min:
      cpu: "200m"
    type: Container

set-limit-range-definition

Get 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

create-limit-range

No comments: