mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-09-23 11:17:31 +00:00
fix: make example available
1. fix path error in pkg/nvmf/fabrics.go 2. add nvmf kernel target setup guide 3. update example and deploy yaml Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
This commit is contained in:
@@ -23,5 +23,5 @@ spec:
|
||||
name: nvmf-volume
|
||||
volumes:
|
||||
- name: nvmf-volume
|
||||
persistentVolume:
|
||||
claimName: pvc-example
|
||||
persistentVolumeClaim:
|
||||
claimName: csi-nvmf-pvc
|
@@ -1,18 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nvmfplugin-pv
|
||||
name: csi-nvmf-pv
|
||||
spec:
|
||||
storageClassName: csi.nvmf.com
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
capacity:
|
||||
storage: 20Gi
|
||||
csi:
|
||||
driver: NVMf
|
||||
volumeAttributes:
|
||||
targetTrAddr: "192.168.122.18"
|
||||
targetTrPort: "49153"
|
||||
targetTrType: "tcp"
|
||||
deviceUUID: "58668891-c3e4-45d0-b90e-824525c16080"
|
||||
nqn: "nqn.2021-07.org.test-nvmf.example"
|
||||
storageClassName: cs-nvmf-sc
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
capacity:
|
||||
storage: 20Gi
|
||||
csi:
|
||||
driver: csi.nvmf.com
|
||||
volumeHandle: nvmf-data-id
|
||||
volumeAttributes:
|
||||
targetTrAddr: "192.168.122.18"
|
||||
targetTrPort: "49153"
|
||||
targetTrType: "tcp"
|
||||
deviceUUID: "58668891-c3e4-45d0-b90e-824525c16080"
|
||||
nqn: "nqn.2022-08.org.test-nvmf.example"
|
@@ -1,11 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pvc-example
|
||||
name: csi-nvmf-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: csi-nvmf-test
|
||||
storageClassName: csi-nvmf-sc
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
storage: 20Gi
|
||||
|
@@ -1,7 +1,7 @@
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: csi-nvmf-test
|
||||
name: csi-nvmf-sc
|
||||
provisioner: csi.nvmf.com
|
||||
reclaimPolicy: Delete
|
||||
allowVolumeExpansion: true
|
Reference in New Issue
Block a user