Kubernetes deployment resource limit Kubernetes deployment resource limit kubernetes kubernetes

Kubernetes deployment resource limit


There is one extra resource attribute under your container definition after ports.

resources: {}

This overrides original resource definition.Remove this one and apply it again.


The simple way to avoid such issue is to use a YAML validator.

yamllint Seems like a great tool to validate and parse the YAML.

Once you run the validation, it provides a list of all the wrong things you have been doing.

Example:-

    # yamllint file.yml38:9      error    duplication of key "resources" in mapping  (key-duplicates)