Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ceph_cluster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_masters
PA
ceph_cluster
Commits
97432af6
Commit
97432af6
authored
4 weeks ago
by
david.truong.hes
Browse files
Options
Downloads
Patches
Plain Diff
Notes des commandes pour installation Longhorn
parent
b02e91d7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
longhorn/setup.txt
+33
-0
33 additions, 0 deletions
longhorn/setup.txt
longhorn/values.yaml
+12
-0
12 additions, 0 deletions
longhorn/values.yaml
with
45 additions
and
0 deletions
longhorn/setup.txt
0 → 100644
+
33
−
0
View file @
97432af6
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
This diff is collapsed.
Click to expand it.
longhorn/values.yaml
0 → 100644
+
12
−
0
View file @
97432af6
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment