feature: Adds more operational services.
This commit is contained in:
parent
9f85ec639d
commit
a704e75851
47 changed files with 1484 additions and 519 deletions
29
kubernetes/longhorn/project.ini
Normal file
29
kubernetes/longhorn/project.ini
Normal file
|
@ -0,0 +1,29 @@
|
|||
[meta]
|
||||
format_ver = 1
|
||||
|
||||
[longhorn_repo]
|
||||
mode = helm
|
||||
|
||||
[#longhorn_repo/helm]
|
||||
mode = add_repo
|
||||
name = longhorn
|
||||
repo = https://charts.longhorn.io
|
||||
|
||||
[longhorn]
|
||||
mode = helm
|
||||
depends_on = longhorn_repo
|
||||
|
||||
[#longhorn/helm]
|
||||
mode = install
|
||||
name = longhorn
|
||||
repo = longhorn/longhorn
|
||||
namespace = longhorn-system
|
||||
create_namespace = true
|
||||
|
||||
[longhorn_storage_class]
|
||||
depends_on = longhorn
|
||||
mode = k3s
|
||||
|
||||
[#longhorn_storage_class/k3s]
|
||||
mode = install
|
||||
yml_path = ./storage-class.yml
|
11
kubernetes/longhorn/storage-class.yml
Normal file
11
kubernetes/longhorn/storage-class.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
kind: StorageClass
|
||||
apiVersion: storage.k8s.io/v1
|
||||
metadata:
|
||||
name: longhorn
|
||||
provisioner: driver.longhorn.io
|
||||
allowVolumeExpansion: true
|
||||
parameters:
|
||||
numberOfReplicas: "3"
|
||||
staleReplicaTimeout: "2880" # 48 hours in minutes
|
||||
fromBackup: ""
|
||||
fsType: "ext4"
|
Reference in a new issue