|
22 | 22 |
|
23 | 23 | ## Step-by-Step
|
24 | 24 |
|
25 |
| -1. Set up a Fibre Channel Target |
| 25 | +### Set up a Fibre Channel Target |
26 | 26 |
|
27 |
| - Using your Fibre Channel SAN Zone manager you must allocate and mask LUNs so that all hosts in the Kubernetes cluster can access them |
| 27 | +Using your Fibre Channel SAN Zone manager you must allocate and mask LUNs so that all hosts in the Kubernetes cluster can access them |
28 | 28 |
|
29 |
| -2. Prepare nodes in your Kubernetes cluster |
| 29 | +### Prepare nodes in your Kubernetes cluster |
30 | 30 |
|
31 |
| - You will need to install and configured a Fibre Channel initiator on the hosts within your Kubernetes cluster. |
| 31 | +You will need to install and configured a Fibre Channel initiator on the hosts within your Kubernetes cluster. |
32 | 32 |
|
33 |
| -3. Create a Pod using Fibre Channel persistent storage |
| 33 | +### Create a Pod using Fibre Channel persistent storage |
34 | 34 |
|
35 |
| - Create a pod manifest based on [fc.yaml](fc.yaml). You will need to provide *targetWWNs* (array of Fibre Channel target's World Wide Names), *lun*, and the type of the filesystem that has been created on the LUN if it is not _ext4_ |
| 35 | +Create a pod manifest based on [fc.yaml](fc.yaml). You will need to provide *targetWWNs* (array of Fibre Channel target's World Wide Names), *lun*, and the type of the filesystem that has been created on the LUN if it is not _ext4_ |
36 | 36 |
|
37 |
| - Once you have created a pod manifest you can deploy it by running: |
| 37 | +Once you have created a pod manifest you can deploy it by running: |
38 | 38 |
|
39 |
| - ```console |
40 |
| - kubectl apply -f ./your_new_pod.yaml |
41 |
| - ``` |
| 39 | +```console |
| 40 | +kubectl apply -f ./your_new_pod.yaml |
| 41 | +``` |
42 | 42 |
|
43 |
| - You can then confirm that the pod hase been sucessfully deployed by running `kubectl get pod fibre-channel-example-pod -o wide` |
| 43 | +You can then confirm that the pod hase been sucessfully deployed by running `kubectl get pod fibre-channel-example-pod -o wide` |
44 | 44 |
|
45 |
| - ```console |
46 |
| - # kubectl get pod fibre-channel-example-pod -o wide |
47 |
| - NAME READY STATUS RESTARTS AGE |
48 |
| - 1/1 Running 0 1m |
49 |
| - NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES |
50 |
| - fibre-channel-example-pod 1/1 READY 0 1m8s 192.168.172.11 node0 <none> <none> |
| 45 | +```console |
| 46 | +# kubectl get pod fibre-channel-example-pod -o wide |
| 47 | +NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES |
| 48 | +fibre-channel-example-pod 1/1 READY 0 1m8s 192.168.172.11 node0 <none> <none> |
51 | 49 |
|
52 |
| - ``` |
| 50 | +``` |
53 | 51 |
|
54 |
| - If you connect to the console on the Kubernetes node that the pod has been assigned to you can see that the volume is mounted to the pod by running `mount | grep /var/lib/kubelet/plugins/kubernetes.io/fc/` |
| 52 | +If you connect to the console on the Kubernetes node that the pod has been assigned to you can see that the volume is mounted to the pod by running `mount | grep /var/lib/kubelet/plugins/kubernetes.io/fc/` |
55 | 53 |
|
56 |
| - ```console |
57 |
| - # mount | grep /var/lib/kubelet/plugins/kubernetes.io/fc/ |
58 |
| - /dev/mapper/360a98000324669436c2b45666c567946 on /var/lib/kubelet/plugins/kubernetes.io/fc/500a0982991b8dc5-lun-2 type ext4 (relatime,seclabel,stripe=16,data=ordered) |
| 54 | +```console |
| 55 | +# mount | grep /var/lib/kubelet/plugins/kubernetes.io/fc/ |
| 56 | +/dev/mapper/360a98000324669436c2b45666c567946 on /var/lib/kubelet/plugins/kubernetes.io/fc/500a0982991b8dc5-lun-2 type ext4 (relatime,seclabel,stripe=16,data=ordered) |
59 | 57 | ```
|
60 | 58 |
|
61 | 59 | ## Multipath Considerations
|
|
0 commit comments