Skip to content
프로젝트

caoyingjunz/csi-driver-localstorage

GitHub에서 보기

소개

이 드라이버를 사용하면 Kubernetes에서 Linux 노드의 로컬 스토리지에 접근할 수 있습니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

LocalStorage

Build Status Release License

Overview

This driver allows Kubernetes to access LocalStorage on Linux node.

Getting Started

Installation

  • 选择运行 localstorage 的 kubernetes 节点

    kubectl label node <node-name> storage.caoyingjunz.io/node=
    
  • 安装 localstorage 组件

    kubectl apply -f deploy/crds
    kubectl apply -f deploy/latest
    
    # 验证
    root@pixiu01:~# kubectl get pod -n kube-system | grep pixiu
    pixiu-ls-controller-7997b8c446-8hndc        1/1     Running            0                87s
    pixiu-ls-node-gfd78                         4/4     Running            0                87s
    pixiu-ls-node-mb4x6                         4/4     Running            0                87s
    
  • 安装 LocalStorage 调度扩展

  • 创建 localstorage 资源

    # 自动创建
    kubectl apply -f deploy/ls-job.yaml
    
    # 手动创建
    # 修改 examples/ls.yaml, 多个 node 节点需要多次创建
    kubectl apply -f examples/ls.yaml
    
    # 验证
    kubectl get ls
    NAME         STATUS   KUBENODE   ALLOCATABLE   CAPACITY   AGE
    ls-pixiu01   Ready    pixiu01    360Gi         360Gi      16d
    
  • 安装 storageclass

    kubectl apply -f deploy/ls-storageclass.yaml
    
    # 验证
    kubectl get sc pixiu-localstorage
    NAME                 PROVISIONER                       RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
    pixiu-localstorage   localstorage.csi.caoyingjunz.io   Delete          WaitForFirstConsumer   false                  2m54s
    
  • 创建 pvc 验证

    kubectl apply -f examples/pvc.yaml
    
    # 验证
    kubectl get pvc
    NAME                 STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS              AGE
    test-pvc             Bound    pvc-2b2c809f-33b5-437f-a4b8-61906c10a3e1   1Mi        RWX            pixiu-localstorage        5s
    

Feature

  • Schedule with volume status
  • Volume metrics

学习分享

沟通交流

  • 搜索微信号 yingjuncz, 备注(ls), 验证通过会加入群聊
  • bilibili 技术分享

Copyright 2019 caoyingjun ([email protected]) Apache License 2.0

관련 프로젝트 살펴보기

불러오는 중…