File tree Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Expand file tree Collapse file tree 3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ name : static-pvc-pod
5
+ labels :
6
+ app : static-pvc-pod
7
+ spec :
8
+ selector :
9
+ matchLabels :
10
+ app : static-pvc-pod
11
+ template :
12
+ metadata :
13
+ labels :
14
+ app : static-pvc-pod
15
+ spec :
16
+ containers :
17
+ - image : rabbitmq
18
+ name : rabbitmq-container
19
+ volumeMounts :
20
+ - name : my-static-vol
21
+ mountPath : /my-static-vol
22
+ volumes :
23
+ - name : my-static-vol
24
+ persistentVolumeClaim :
25
+ claimName : static-pvc # Update your pvc name here
26
+ nodeSelector :
27
+ kubernetes.io/hostname : " 10.240.0.7" # Update hostname as node name which should match as per volume's zone
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : PersistentVolume
3
+ metadata :
4
+ name : static-pv
5
+ spec :
6
+ accessModes :
7
+ - ReadWriteOnce # Should be matched as per PVC's requested accessMode
8
+ capacity :
9
+ storage : 10Gi # Should be matched as per PVC's request storage
10
+ csi :
11
+ driver : vpc.block.csi.ibm.io
12
+ fsType : ext4
13
+ volumeAttributes :
14
+ iops : " 3000"
15
+ volumeId : r006-ab62267d-ad2f-43ec-a22e-23007a9d2618
16
+ zone : us-south-1
17
+ region : us-south
18
+ volumeHandle : r006-ab62267d-ad2f-43ec-a22e-23007a9d2618
19
+ persistentVolumeReclaimPolicy : Retain
20
+ storageClassName : " "
21
+ volumeMode : Filesystem
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : PersistentVolumeClaim
3
+ metadata :
4
+ name : static-pvc
5
+ spec :
6
+ accessModes :
7
+ - ReadWriteOnce
8
+ resources :
9
+ requests :
10
+ storage : 10 # Update vpc data volume size which should match as per pv's size
11
+ storageClassName : " "
You can’t perform that action at this time.
0 commit comments