remediate

nctl remediate

Remediate Command

The remediate command can be used to show any possible fixes for any Kubernetes resources, if they have a violation against the best practices policies. The output will show the violated resource and the suggested change to fix that resource.

Note: Currently, remediations are available for Pod Security Standards (Baseline and Restricted). We are constantly adding remediations for more standards.

To remediate a resource, use the --resource flag followed by the path of the resource file and the --policy flag followed by the path of the policy file:

nctl remediate --resource <deployment.yaml> --policy <policy.yaml>

Remediate Options

Flag Shorthand Description
--help -h help for remediate command
--output -o shows the output file
--policies <strings> -p specify path to policy files (local path, github URL, helm URL)
--resource <strings> -r specify path to resource files (local path, github URL, helm URL)