Use PVC Storage in Kubernetes Deployment yml

hi every one

i have one question about using PVC storage in deployment yml file!

can i craete PVC and then create Deployment file with replicas “more than one” POD ?

apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 2
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-deployment-container
image: nginx
volumeMounts:
- mountPath: /log
name: log-volume
volumes:

  • name: log-volume
    persistentVolumeClaim:
    claimName: claim-log-1