Kubernetes best practices
ProprietaryApplies best practices to Kubernetes manifests.
org. openrewrite. kubernetes. KubernetesBestPracticesmod run . --recipe= org. openrewrite. kubernetes. KubernetesBestPracticesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Ensure liveness probe is configured
- Ensure readiness probe is configured
- Ensure CPU request is set
- Ensure CPU limits are set
- Ensure memory request is set
- Ensure memory limits are set
- No privileged containers
- Ensure lifecycle rule on
StorageBucket - No host process ID sharing
- No host IPC sharing
- No root containers
- Ensure image pull policy is
Always - No privilege escalation
- No host network sharing
- Read-only root filesystem
- Limit root capabilities in a container