Difference between revisions of "Longhorn by Rancher"
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
``` | ``` | ||
kubectl create namespace longhorn-system | kubectl create namespace longhorn-system | ||
− | + | mkdir /var/lib/kubelet/plugins_registry | |
helm install longhorn longhorn/longhorn --namespace longhorn-system --set csi.kubeletRootDir=/var/lib/kubelet # https://github.com/longhorn/longhorn/issues/1861 | helm install longhorn longhorn/longhorn --namespace longhorn-system --set csi.kubeletRootDir=/var/lib/kubelet # https://github.com/longhorn/longhorn/issues/1861 | ||
curl https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml | sed -e 's/#- name: KUBELET_ROOT_DIR/- name: KUBELET_ROOT_DIR/g' -e 's$# value: /var/lib/rancher/k3s/agent/kubelet$ value: /var/lib/kubelet$g' | kubectl apply -f - | curl https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml | sed -e 's/#- name: KUBELET_ROOT_DIR/- name: KUBELET_ROOT_DIR/g' -e 's$# value: /var/lib/rancher/k3s/agent/kubelet$ value: /var/lib/kubelet$g' | kubectl apply -f - | ||
Line 44: | Line 44: | ||
``` | ``` | ||
longhorn-csi-plugin-bkmnz 0/2 ContainerCreating 0 3m14s | longhorn-csi-plugin-bkmnz 0/2 ContainerCreating 0 3m14s | ||
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | # no work ## helm install longhorn longhorn/longhorn --namespace longhorn-system --set kubelet-root-dir=/var/lib/kubelet | ||
``` | ``` |
Revision as of 18:52, 27 June 2021
Install
kubectl create namespace longhorn-system helm install longhorn longhorn/longhorn --namespace longhorn-system --set kubelet-root-dir=/var/lib/kubelet curl https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml | sed -e 's/#- name: KUBELET_ROOT_DIR/- name: KUBELET_ROOT_DIR/g' -e 's$# value: /var/lib/rancher/k3s/agent/kubelet$ value: /var/lib/kubelet$g' | kubectl apply -f -
https://longhorn.io/docs/1.1.1/references/examples/
https://longhorn.io/docs/1.0.0/concepts/
https://longhorn.io/docs/1.0.0/deploy/install/install-with-helm/
https://longhorn.io/docs/1.1.1/references/longhorn-client-python/
Troubleshooting
1
kubectl get pods -n longhorn-system | grep longhorn-driver-deployer longhorn-driver-deployer-5d45dcdc5d-w48c4 0/1 CrashLoopBackOff 6 10m # This will be Error or CrashLoopBackOff
https://github.com/longhorn/longhorn/issues/1861
kubectl create namespace longhorn-system mkdir /var/lib/kubelet/plugins_registry helm install longhorn longhorn/longhorn --namespace longhorn-system --set csi.kubeletRootDir=/var/lib/kubelet # https://github.com/longhorn/longhorn/issues/1861 curl https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml | sed -e 's/#- name: KUBELET_ROOT_DIR/- name: KUBELET_ROOT_DIR/g' -e 's$# value: /var/lib/rancher/k3s/agent/kubelet$ value: /var/lib/kubelet$g' | kubectl apply -f -
longhorn-csi-plugin-bkmnz 0/2 ContainerCreating 0 3m14s
# no work ## helm install longhorn longhorn/longhorn --namespace longhorn-system --set kubelet-root-dir=/var/lib/kubelet