1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/fastdfs100-fastcfs-csi

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 2.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
zhiming Отправлено 26.02.2022 18:39 d1b0a58

FastCFS Config

English | 简体中文

This example shows how to create a FastCFS configuration for FastCFS CSI

Usage

FastCFS CSI can use the following two ways

  1. Use the container's filesystem path directly

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
  1. Use http/https paths

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

the directory structure and required configuration files

<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 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/fastdfs100-fastcfs-csi.git
git@api.gitlife.ru:oschina-mirror/fastdfs100-fastcfs-csi.git
oschina-mirror
fastdfs100-fastcfs-csi
fastdfs100-fastcfs-csi
main