> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# kubernetes-privileged-container

> A Kubernetes workload explicitly requests a privileged container.

## What it flags

Reads Kubernetes YAML as a document tree and reviews explicit boolean `privileged: true` values in regular, init, and ephemeral containers. Recognizes Pods and the built-in apps and batch workload kinds at their supported v1 API versions. Review legitimate infrastructure and node administration uses against the deployment policy. [Pod Security Standards](https://kubernetes.io/docs/concepts/security/pod-security-standards/)

Render supported deployment manifests before scanning when the source uses unresolved Helm templates. Findings are contextual and carry no automatic edit.

If a recognized workload needs rendering or cannot be parsed, the security scan prints a coverage note on stderr for that file. The note does not change the exit code, the security baseline or `sec --fix`. Templates and unparsable YAML for other resources, such as Services, ConfigMaps and Ingresses, are left alone without a note.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` or pass `--ignore kubernetes-privileged-container` to skip its YAML checks. File overrides can re-enable a rule disabled in the configuration. Files remain eligible for other security checks.

```json theme={null}
{ "rules": { "kubernetes-privileged-container": "off" } }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.