Skip to content
Snippets Groups Projects
Commit 97432af6 authored by david.truong.hes's avatar david.truong.hes
Browse files

Notes des commandes pour installation Longhorn

parent b02e91d7
Branches
No related tags found
No related merge requests found
Envoi sur berry:
scp ./values.yaml admin@<NODE_ADDRESS>:/home/admin
sudo su
lsblk
mkdir -p /mnt/longhorn
mount /dev/sda1 /mnt/longhorn
Installation Helm:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
Installation Longhorn:
kubectl:
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml
Helm:
helm repo add longhorn https://charts.longhorn.io
helm repo update
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace -f values.yaml
Observation:
kubectl -n longhorn-system get svc
http://<IP_NOEUD>:30400
Désinstallation (Helm):
kubectl -n longhorn-system patch -p '{"value": "true"}' --type=merge lhs deleting-confirmation-flag
helm uninstall longhorn -n longhorn-system
kubectl delete namespace longhorn-system
service:
ui:
type: NodePort
nodePort: 30400
defaultSettings:
defaultReplicaCount: 1
createDefaultDiskLabeledNodes: true
defaultDataPath: /mnt/longhorn
replicaSoftAntiAffinity: true
replicaAutoBalance: best-effort
nodeDownPodDeletionPolicy: delete-both-statefulset-and-deployment-pod
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment