Pv hostPath example

Hello everyone!
I tried to create a PV with hostPath but couldn’t find any examples here or at earlier docs version…

I think maybe every example will be contain simple yaml like local volume?

Can we add something like that? Or is this a bad way due to some reasoning?

---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: test-pv
  labels: 
    some: labels
spec:
  capacity:
    storage: 100Mi
  accessModes:
    - ReadWriteMany
  hostPath:
    path: /opt/path
  storageClassName: sc-test