Remediation in Nctl

Remediation in Nctl

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. When applied, the output will show the remediated yaml.

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>

SEE ALSO