forked from qnap-dev/QNAP-CSI-PlugIn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc
80 lines (54 loc) · 2.31 KB
/
doc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
====================================================================
Trident Install
====================================================================
(Option 1) Kustomize
kubectl apply -k Deploy/crds
kubectl apply -k Deploy/Trident
(Option 2) Helm
helm install qnap-trident ./qnap-trident -n trident --create-namespace
(Option 3) Step By Step
kubectl apply -f Deploy/Trident/namespace.yaml
kubectl apply -f Deploy/crds/trident_CRD.yaml
kubectl apply -f Deploy/Trident/bundle.yaml
kubectl apply -f Deploy/Trident/tridentorchestrator.yaml
// check if trident is ready
kubectl get pods -n trident
====================================================================
VolumeSnapshot Install (If need)
====================================================================
kubectl apply -k VolumeSnapshot
Or
Deploy from https://github.com/kubernetes-csi/external-snapshotter
- Install Snapshot CRDs
- Install Common Snapshot Controller
====================================================================
Backend / StorageClass / Volume Simple Test
====================================================================
(Step 1) Add Backend
./tridentctl create backend -f Samples/backend-qts1.json -n trident
./tridentctl get backend -n trident
(Step 2) Deploy StorageClass
kubectl apply -f Samples/storage-class-qnap-qos.yaml
kubectl get sc
(Step 3) Deploy PVC
kubectl apply -f Samples/pvc-basic.yaml
kubectl get pvc
(Step 4) Deploy Pod
kubectl apply -f Samples/pod.yaml
kubectl get pods
====================================================================
Snapshot Simple Test
====================================================================
kubectl apply -f Samples/snapshot-class.yaml
kubectl apply -f Samples/vol-snapshot.yaml
====================================================================
Uninstall (Non-Helm)
====================================================================
kubectl delete deployment trident-operator -n trident
./tridentctl uninstall -n trident
kubectl delete tridentorchestrator trident
====================================================================
Reboot Trident
====================================================================
kubectl delete tridentorchestrator trident
kubectl apply -f Deploy/Trident/tridentorchestrator.yaml