DEV Community

Roman Belshevitz
Roman Belshevitz

Posted on

Answer: Can a PVC be bound to a specific PV?

There is a way to pre-bind PVs to PVCs today, here is an example showing how:

  1. Create a PV object with a ClaimRef field referencing a PVC that you will subsequently create
     $ kubectl create -f pv.yaml
     persistentvolume "pv0003" created
    
    where pv.yaml contains
     apiVersion: v1
     kind: PersistentVolume
     metadata
       name: pv0003

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs