An open API service indexing awesome lists of open source software.

https://github.com/kubewarden/volumes-psp-policy

Replacement for the Kubernetes Pod Security Policy that controls the usage of volumes
https://github.com/kubewarden/volumes-psp-policy

hacktoberfest kubernetes kubernetes-security kubewarden-policy pod-security-policy policy-as-code webassembly

Last synced: 6 months ago
JSON representation

Replacement for the Kubernetes Pod Security Policy that controls the usage of volumes

Awesome Lists containing this project

README

        

[![Kubewarden Policy Repository](https://github.com/kubewarden/community/blob/main/badges/kubewarden-policies.svg)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#policy-scope)
[![Stable](https://img.shields.io/badge/status-stable-brightgreen?style=for-the-badge)](https://github.com/kubewarden/community/blob/main/REPOSITORIES.md#stable)

# psp-volumes-policy

Replacement for the Kubernetes Pod Security Policy that controls the usage of
volumes in pods.

## Settings

The policy takes the list of the allowed volume types using the `allowedTypes`
setting. Example:

```yaml
allowedTypes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- secret
- projected
```

The default value of allowedTypes is `[ ]`. The special value `*` can be used
to allow all kind of volumes.

No other value can be specified together with `*`. For example,
`allowedTypes: ['*', 'configMap']` is not a valid configuration setting.