Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 965 Bytes

pod-security-policy.md

File metadata and controls

13 lines (8 loc) · 965 Bytes

Using PodSecurityPolicy for MinIO Pods Slack

This document explains how to apply PodSecurityPolicy to MinIO Pods created by the MinIO Operator. A Pod Security Policy is a cluster-level resource that controls security sensitive aspects of the pod specification. Read more in Kubernetes PodSecurityPolicy Documentation.

Getting Started

Use the example to apply a custom PodSecurityPolicy to all the MinIO Pods created by the Operator.

kubectl create -f https://github.com/TheCodeCargo/minio-operator/tree/master/examples/tenant-pod-security-policy.yaml

This file creates a custom PodSecurityPolicy. Then it creates a ClusterRole attached to the PodSecurityPolicy. Finally a ClusterRoleBinding bounds the ClusterRole to a ServiceAccount which is added to all the MinIO Pods created by the MinIO Operator.