This driver allows Kubernetes to access LocalStorage on Linux node.
-
选择运行
localstorage
的kubernetes
节点kubectl label node <node-name> storage.caoyingjunz.io/node=
-
创建
localstorage
资源# 修改 examples/ls.yaml kubectl apply -f examples/ls.yaml
-
安装
localstorage
组件kubectl apply -f deploy/v1.0.1 # 验证 root@pixiu01:~# kubectl get pod -n kube-system | grep pixiu-localstorage pixiu-localstorage-controller-6d4d7f4684-h5ds9 1/1 Running 14 (3m32s ago) 24h pixiu-localstorage-node-8k94w 4/4 Running 11 (48s ago) 24h pixiu-localstorage-node-nkhvk 4/4 Running 24 (6m9s ago) 24h
-
安装
storageclass
kubectl apply -f deploy/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
- Schedule with volume status
- Volume metrics
- 搜索微信号
yingjuncz
, 备注(ls), 验证通过会加入群聊 - bilibili 技术分享
Copyright 2019 caoyingjun ([email protected]) Apache License 2.0