English | 简体中文
This example shows how to create a FastCFS configuration for FastCFS CSI
FastCFS CSI can use the following two ways
Define ConfigMap, and then mount it to the container.
More details, please see controller.yaml or node.yaml
The following is a partial configuration, just for illustration:
containers:
- volumeMounts:
- mountPath: /etc/fastcfs-client-config
name: fcfs-config
volumes:
- name: fcfs-config
configMap:
name: fastcfs-client-config
items:
- key: fdir-cluster
path: fastcfs/fdir/cluster.conf
- key: fstore-cluster
path: fastcfs/fstore/cluster.conf
- key: auth-cluster
path: fastcfs/auth/cluster.conf
- key: auth-config
path: fastcfs/auth/auth.conf
- key: auth-client
path: fastcfs/auth/client.conf
- key: fuse-config
path: fastcfs/fcfs/fuse.conf
Place the FastCFS configuration file on the web server, and set the storage class parameter fastcfs-config-base-path
to the access address of the web server
i.e.
# storageclass.yaml, the rest of the configuration is omitted
parameters:
fastcfs-config-base-path: http://192.168.99.170:8080
<fastcfs-config-base-path>
|
|__ fastcfs
|
|__ auth:
| |__ auth.conf
| |__ client.conf
| |__ cluster.conf
|
|__ fcfs:
| |__ fuse.conf
|
|__ fdir:
| |__ cluster.conf
|
|__ fstore:
|__ cluster.conf
i.e. fuse.conf
is located at /mypath//fastcfs/fcfs/fuse.conf
or http://ip:port/fastcfs/fcfs/fuse.conf
Note: The value of fastcfs-config-base-path
should not be too long, the sum of the length of fastcfs-config-base-path
of this storage class and the length of the username of secret
of this storage class should not exceed 63
characters.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )