Added topolvm for node local storage
This commit is contained in:
parent
8248e913b0
commit
343b098453
|
@ -22,7 +22,7 @@ spec:
|
|||
topologyKey: kubernetes.io/hostname
|
||||
podAntiAffinityType: required
|
||||
storage:
|
||||
storageClass: piraeus-storage
|
||||
storageClass: topolvm-provisioner
|
||||
backups:
|
||||
enabled: true
|
||||
provider: s3
|
||||
|
|
|
@ -6,6 +6,7 @@ resources:
|
|||
- traefik.yaml
|
||||
- cloudnative-pg.yaml
|
||||
- ./rook
|
||||
- ./topolvm
|
||||
- ./node-feature-discovery
|
||||
- ./velero
|
||||
- https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/refs/tags/v1.1.8/manifests/dragonfly-operator.yaml
|
||||
|
|
34
infrastructure/controllers/topolvm/helm-release.yaml
Normal file
34
infrastructure/controllers/topolvm/helm-release.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: topolvm
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: topolvm
|
||||
reconcileStrategy: ChartVersion
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: topolvm
|
||||
version: 15.5.1
|
||||
interval: 1m0s
|
||||
values:
|
||||
lvmd:
|
||||
deviceClasses:
|
||||
- name: "thin"
|
||||
volume-group: rl
|
||||
default: true
|
||||
type: thin
|
||||
thin-pool:
|
||||
name: "pool"
|
||||
overprovision-ratio: 2.0
|
||||
|
||||
storageClasses:
|
||||
- name: topolvm-provisioner
|
||||
storageClass:
|
||||
fsType: xfs
|
||||
isDefaultClass: false
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
allowVolumeExpansion: true
|
||||
additionalParameters:
|
||||
'{{ include "topolvm.pluginName" . }}/device-class': "thin"
|
7
infrastructure/controllers/topolvm/helm-repository.yaml
Normal file
7
infrastructure/controllers/topolvm/helm-repository.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: topolvm
|
||||
spec:
|
||||
interval: 1m0s
|
||||
url: https://topolvm.github.io/topolvm
|
7
infrastructure/controllers/topolvm/kustomization.yaml
Normal file
7
infrastructure/controllers/topolvm/kustomization.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: topolvm-system
|
||||
resources:
|
||||
- ./namespace.yaml
|
||||
- ./helm-repository.yaml
|
||||
- ./helm-release.yaml
|
7
infrastructure/controllers/topolvm/namespace.yaml
Normal file
7
infrastructure/controllers/topolvm/namespace.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: topolvm-system
|
||||
# TODO: We need to do the same thing for the kube-system namespace
|
||||
labels:
|
||||
topolvm.io/webhook: ignore
|
Loading…
Reference in New Issue
Block a user