https://github.com/longhorn/longhorn

https://longhorn.io/docs

apt-get install open-iscsi nfs-common

helm repo add longhorn https://charts.longhorn.io
helm repo update
# helm 2
#helm install longhorn/longhorn --name longhorn --namespace longhorn-system
# helm 3
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace
kubectl -n longhorn-system get pod
git clone https://github.com/longhorn/longhorn.git
cd longhorn/examples
kubectl apply -f simple_pvc.yaml
kubectl apply -f simple_pod.yaml
# 查看大小
ls -lh /var/lib/longhorn/replicas
du -sh /var/lib/longhorn/replicas/*
# 进去容器增加数据
kubectl exec -it longhorn-simple-pod sh
cd /data
dd if=/dev/zero of=test bs=1M count=100
exit
# 再次查看大小
ls -lh /var/lib/longhorn/replicas
du -sh /var/lib/longhorn/replicas/*

相关文章:

  • 2021-06-28
  • 2021-12-12
  • 2021-07-21
  • 2021-05-25
  • 2021-04-02
  • 2021-09-15
  • 2021-12-09
猜你喜欢
  • 2021-09-24
  • 2021-06-27
  • 2021-09-30
  • 2021-06-03
  • 2021-04-05
相关资源
相似解决方案