Skip to content

Feature Request: Add checks for container ephemeral-storage resource request and limit  #413

@kmarteaux

Description

@kmarteaux

Add container resource request and limit checks for ephemeral-storage.

New kube-score checks would mirror existing container CPU and Memory checks; including the option to ignore ephemeral-storage limits not being set.

Examples:

$ kube-score score pod-testfile1.yaml

[CRITICAL] Container Resources
· app -> Ephemeral Storage limit is not set
Resource limits are recommended to avoid resource DDOS. Set
resources.limits.ephemeral-storage
· log-aggregator -> CPU limit is not set
Resource limits are recommended to avoid resource DDOS. Set
resources.limits.cpu
· log-aggregator -> Memory limit is not set
Resource limits are recommended to avoid resource DDOS. Set
resources.limits.memory
· log-aggregator -> CPU request is not set
Resource requests are recommended to make sure that the application
can start and run without crashing. Set resources.requests.cpu
· log-aggregator -> Memory request is not set
Resource requests are recommended to make sure that the application
can start and run without crashing. Set resources.requests.memory

$ kube-score score --ignore-container-ephemeral-storage-limit pod-testfile1.yaml
[CRITICAL] Container Resources
· log-aggregator -> CPU limit is not set
Resource limits are recommended to avoid resource DDOS. Set
resources.limits.cpu
· log-aggregator -> Memory limit is not set
Resource limits are recommended to avoid resource DDOS. Set
resources.limits.memory
· log-aggregator -> CPU request is not set
Resource requests are recommended to make sure that the application
can start and run without crashing. Set resources.requests.cpu
· log-aggregator -> Memory request is not set
Resource requests are recommended to make sure that the application
can start and run without crashing. Set resources.requests.memory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions