Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions docs/3-User-Manuals/07-csi.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,21 +152,21 @@ $ kubectl exec curvine-test-pod -n default -- /usr/bin/cat /usr/share/nginx/html

Using Helm chart to deploy the Curvine CSI (Container Storage Interface) driver on a Kubernetes cluster.

## Prerequisites
### Prerequisites

- Kubernetes 1.19+
- Helm 3.0+

## Installation
### Installation

### Add Helm Repository (if available)
#### Add Helm Repository (if available)

```bash
helm repo add curvine https://charts.curvine.io
helm repo update
```

### Install from Local Chart
#### Install from Local Chart

```bash
# Install with default values
Expand All @@ -179,7 +179,7 @@ helm install curvine-csi ./curvine-csi -f custom-values.yaml
helm install curvine-csi ./curvine-csi --namespace curvine-system --create-namespace
```

## Configuration
### Configuration

The following table lists the configurable parameters and their default values:

Expand All @@ -198,9 +198,9 @@ The following table lists the configurable parameters and their default values:
| `rbac.create` | Create RBAC resources | `true` |
| `configMap.name` | ConfigMap name | `curvine-config` |

## Customization
### Customization

### Custom Curvine Configuration
#### Custom Curvine Configuration

You can customize the Curvine configuration by modifying the `configMap.data.curvineClusterToml` value:

Expand All @@ -219,7 +219,7 @@ configMap:
file_name = "curvine.log"
```

### Custom Images
#### Custom Images

```yaml
image:
Expand All @@ -235,7 +235,7 @@ controller:
image: registry.k8s.io/sig-storage/csi-attacher:v4.5.0
```

### Node Tolerations
#### Node Tolerations

```yaml
node:
Expand All @@ -248,7 +248,7 @@ node:
effect: "NoSchedule"
```

## Usage
### Usage

After installation, create a StorageClass:

Expand Down Expand Up @@ -279,22 +279,22 @@ spec:
storageClassName: curvine-csi
```

## Uninstallation
### Uninstallation

```bash
helm uninstall curvine-csi
```

## Troubleshooting
### Troubleshooting

### Check CSI Driver Status
#### Check CSI Driver Status

```bash
kubectl get csidriver curvine
kubectl get pods -l app.kubernetes.io/name=curvine-csi
```

### Check Logs
#### Check Logs

```bash
# Controller logs
Expand All @@ -304,7 +304,7 @@ kubectl logs -l app=curvine-csi-controller -c csi-plugin
kubectl logs -l app=curvine-csi-node -c csi-plugin
```

### Common Issues
#### Common Issues

1. **CSI Driver not registered**: Check if the node-driver-registrar sidecar is running
2. **Mount failures**: Verify Curvine cluster connectivity and configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,21 @@ $ kubectl exec curvine-test-pod -n default -- /usr/bin/cat /usr/share/nginx/html

使用 Helm Chart 在 Kubernetes 集群上部署 Curvine CSI(容器存储接口)驱动程序。

## 前置条件
### 前置条件

- Kubernetes 1.19+
- Helm 3.0+

## 安装
### 安装

### 添加 Helm 仓库(如果可用)
#### 添加 Helm 仓库(如果可用)

```bash
helm repo add curvine https://charts.curvine.io
helm repo update
```

### 从本地 Chart 安装
#### 从本地 Chart 安装

```bash
# 使用默认值安装
Expand All @@ -181,7 +181,7 @@ helm install curvine-csi ./curvine-csi -f custom-values.yaml
helm install curvine-csi ./curvine-csi --namespace curvine-system --create-namespace
```

## 配置
### 配置

下表列出了可配置的参数及其默认值:

Expand All @@ -200,9 +200,9 @@ helm install curvine-csi ./curvine-csi --namespace curvine-system --create-names
| `rbac.create` | 创建 RBAC 资源 | `true` |
| `configMap.name` | ConfigMap 名称 | `curvine-config` |

## 自定义配置
### 自定义配置

### 自定义 Curvine 配置
#### 自定义 Curvine 配置

您可以通过修改 `configMap.data.curvineClusterToml` 值来自定义 Curvine 配置:

Expand All @@ -221,7 +221,7 @@ configMap:
file_name = "curvine.log"
```

### 自定义镜像
#### 自定义镜像

```yaml
image:
Expand All @@ -237,7 +237,7 @@ controller:
image: registry.k8s.io/sig-storage/csi-attacher:v4.5.0
```

### 节点容忍度
#### 节点容忍度

```yaml
node:
Expand All @@ -250,7 +250,7 @@ node:
effect: "NoSchedule"
```

## 使用方法
### 使用方法

安装后,创建 StorageClass:

Expand Down Expand Up @@ -281,22 +281,22 @@ spec:
storageClassName: curvine-csi
```

## 卸载
### 卸载

```bash
helm uninstall curvine-csi
```

## 故障排除
### 故障排除

### 检查 CSI 驱动状态
#### 检查 CSI 驱动状态

```bash
kubectl get csidriver curvine
kubectl get pods -l app.kubernetes.io/name=curvine-csi
```

### 检查日志
#### 检查日志

```bash
# 控制器日志
Expand All @@ -306,7 +306,7 @@ kubectl logs -l app=curvine-csi-controller -c csi-plugin
kubectl logs -l app=curvine-csi-node -c csi-plugin
```

### 常见问题
#### 常见问题

1. **CSI 驱动未注册**:检查 node-driver-registrar sidecar 是否正在运行
2. **挂载失败**:验证 Curvine 集群连接性和配置
Expand Down