Configuring IPv6 During the Initial Installation of Huawei CSI
This section describes how to specify IPv6 during the initial installation of Huawei CSI.
Prerequisites
- IPv6 can be configured only when the storage backend type is oceanstor-nas, oceanstor-san, or oceanstor-dtree.
- The host environment and Kubernetes cluster environment support IPv6. For details, see IPv4/IPv6 dual-stack of Kubernetes .
Procedure
Install the CSI-dependent components by following the instructions in 1 to 7 in Installation Procedure .
Run the vi values.yaml command to open the configuration file and modify the service.ipFamilyPolicy and service.ipFamilies configuration items. For details about the parameters, see Table 5 .
The following is an example:
service: ipFamilyPolicy: SingleStack ipFamilies: - IPv6
Install and deploy Huawei CSI by following the instructions in 8 to 9 in Installation Procedure .
Run the following command to check the status of the service in the huawei-csi namespace.
kubectl get service -n huawei-csi
The following is an example of the command output.
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE huawei-csi-controller ClusterIP fd00:10:96::8136 <none> 4433/TCP 19m
Run the following command to check the value of ipFamilies for the huawei-csi-controller service.
kubectl get svc -n huawei-csi huawei-csi-controller -o=jsonpath='{.spec.ipFamilies}'
The following is an example of the command output.
["IPv6"]
Run the following command to check the value of ipFamilyPolicy for the huawei-csi-controller service.
kubectl get svc -n huawei-csi huawei-csi-controller -o=jsonpath='{.spec.ipFamilyPolicy}'
The following is an example of the command output.
SingleStack