Skip to main content

Creating a ClusterRole to Access a PV in Kubernetes

Hands-On Lab


Photo of

Training Architect





ClusterRoles in Kubernetes are meant to define what change can be made to what resource. ClusterRoleBindings determine who can perform the change. By default, PVs (Persistent Volumes) are unable to be queried by pods directly. Therefore, there must be a custom role in Kubernetes that will help us achieve this direct access from a pod.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.