2019-09-03 11:27:04 -07:00
# Best Practice Policies
| Best practice | Policy
2019-09-07 10:12:20 -07:00
|------------------------------------------------|-----------------------------------------------------------------------|
2019-09-08 10:41:07 -07:00
| Run as non-root user | [policy_validate_deny_runasrootuser.yaml ](policy_validate_deny_runasrootuser.yaml ) |
| Disallow privileged and privilege escalation | [policy_validate_container_disallow_priviledgedprivelegesecalation.yaml ](policy_validate_container_disallow_priviledgedprivelegesecalation.yaml ) |
| Disallow use of host networking and ports | [policy_validate_host_network_port.yaml ](policy_validate_host_network_port.yaml ) |
| Disallow use of host filesystem | [policy_validate_host_path.yaml ](policy_validate_host_path.yaml ) |
2019-09-09 23:40:05 -07:00
| Disallow hostPID and hostIPC | [policy_validate_hostpid_hosipc.yaml ](policy_validate_hostpid_hosipc.yaml ) |
2019-09-09 18:13:38 -07:00
| Require read only root filesystem | [policy_validate_not_readonly_rootfilesystem.yaml ](policy_validate_not_readonly_rootfilesystem.yaml ) |
2019-09-10 11:57:33 -07:00
| Disallow node ports | [policy_validate_disallow_node_port.yaml ](policy_validate_disallow_node_port.yaml ) |
2019-09-08 10:41:07 -07:00
| Allow trusted registries | [policy_validate_image_registries.yaml ](policy_validate_image_registries.yaml ) |
| Require resource requests and limits | [policy_validate_pod_resources.yaml ](policy_validate_pod_resources.yaml ) |
| Require pod liveness and readiness probes | [policy_validate_pod_probes.yaml ](policy_validate_pod_probes.yaml ) |
| Require an image tag | [policy_validate_image_tag_notspecified_deny.yaml ](policy_validate_image_tag_notspecified_deny.yaml ) |
| Disallow latest tag and pull IfNotPresent | [policy_validate_image_latest_ifnotpresent_deny.yaml ](policy_validate_image_latest_ifnotpresent_deny.yaml ) |
2019-09-09 14:55:12 -07:00
| Require a namespace (disallow default) | [policy_validate_default_namespace.yaml ](policy_validate_default_namespace.yaml ) |
2019-09-07 10:12:20 -07:00
| Disallow use of kube-system namespace | |
2019-09-16 14:16:54 -07:00
| Prevent mounting of default service account | [policy_validate_disallow_default_serviceaccount.yaml ](policy_validate_disallow_default_serviceaccount.yaml ) |
2019-09-09 23:38:16 -07:00
| Require a default network policy | [policy_validate_default_network_policy.yaml ](policy_validate_default_network_policy.yaml ) |
| Require namespace quotas and limit ranges | [policy_validate_namespace_quota.yaml ](policy_validate_namespace_quota.yaml ) |
2019-10-04 17:28:42 -07:00
| Require an FSGroup that owns the pod's volumes | [policy_validate_fsgroup.yaml ](policy_validate_fsgroup.yaml ) |
| Require the SELinux level of the container | [policy_validate_selinux_context.yaml ](policy_validate_selinux_context.yaml ) |