Benchmark: Containers should have a memory request
Description
Containers should have memory request. If required Kubernetes will make sure your containers get the memory they requested.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-kubernetes-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select Containers should have a memory request.
Run this benchmark in your terminal:
powerpipe benchmark run kubernetes_compliance.benchmark.nsa_cisa_v1_network_hardening_memory_request
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run kubernetes_compliance.benchmark.nsa_cisa_v1_network_hardening_memory_request --share
Controls
- CronJob containers should have a memory request
- DaemonSet containers should have a memory request
- Deployment containers should have a memory request
- Job containers should have a memory request
- Namespaces should have default memory request in limitRange policy
- Namespaces should have resourceQuota memory request
- ReplicaSet containers should have a memory request
- ReplicationController containers should have a memory request
- StatefulSet containers should have a memory request