Welcome to the Linux Foundation Forum!

[LFS258 Kubernetes fundamentals][Lab 4.2 - Resource Limits for a Namespace]

Hi there I am on Lab 4.2 - Resource Limits for a Namespace of the course Kubernetes Fundamentals (LFS258), I am struggling since yesterday to create a LimitRange resource in a namespace using the following spec:

However when I run the command kubectl --namespace=low-usage-limit apply -f limitrange.yaml, i got the following error
error: error validating "limitrange.yaml": error validating data: unknown object type "nil" in LimitRange.spec.limits[0].default.cpu; if you choose to ignore these errors, turn validation off with --validate=false

Comments

  • MouhamadouGueye
    MouhamadouGueye Posts: 4
    edited August 2020

    The spec is valid according to the yamllint
    .
    However, I forgot in to set the value of the cpu parameter to 1, that was the origin of the error

    default:
    cpu: 1
    memory: 500Mi

Categories

Upcoming Training