Switch from piraeus to ceph

This commit is contained in:
Dreaded_X 2025-02-09 00:46:46 +01:00
parent 24c1451d54
commit 8248e913b0
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA
13 changed files with 41 additions and 91 deletions

View File

@ -7,4 +7,3 @@ resources:
- ./middleware.yaml
- ./intel-devices
- ./piraeus

View File

@ -1,5 +0,0 @@
apiVersion: piraeus.io/v1
kind: LinstorCluster
metadata:
name: linstorcluster
spec: {}

View File

@ -1,8 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./cluster.yaml
- ./pool.yaml
- ./storage.yaml
- ./storage-replicated.yaml
- ./volume_snapshot_class.yaml

View File

@ -1,10 +0,0 @@
apiVersion: piraeus.io/v1
kind: LinstorSatelliteConfiguration
metadata:
name: storage-pool
spec:
storagePools:
- name: rl-pool
lvmThinPool:
volumeGroup: rl
thinPool: pool

View File

@ -1,12 +0,0 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: piraeus-storage-replicated
annotations:
storageclass.kubernetes.io/is-default-class: true
provisioner: linstor.csi.linbit.com
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
parameters:
linstor.csi.linbit.com/storagePool: rl-pool
linstor.csi.linbit.com/placementCount: "2"

View File

@ -1,10 +0,0 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: piraeus-storage
provisioner: linstor.csi.linbit.com
allowVolumeExpansion: true
volumeBindingMode: WaitForFirstConsumer
parameters:
linstor.csi.linbit.com/storagePool: rl-pool
linstor.csi.linbit.com/allowRemoteVolumeAccess: "false"

View File

@ -1,6 +0,0 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: piraeus-snapshots
driver: linstor.csi.linbit.com
deletionPolicy: Delete

View File

@ -5,11 +5,10 @@ resources:
- cert-manager.yaml
- traefik.yaml
- cloudnative-pg.yaml
# - rook.yaml
- ./rook
- ./node-feature-discovery
- ./velero
- https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/refs/tags/v1.1.8/manifests/dragonfly-operator.yaml
- https://github.com/piraeusdatastore/piraeus-operator//config/default?ref=v2.7.1
- https://github.com/kubernetes-csi/external-snapshotter//client/config/crd?ref=v8.2.0
- https://github.com/kubernetes-csi/external-snapshotter//deploy/kubernetes/snapshot-controller?ref=v8.2.0
- github.com/kubernetes-sigs/descheduler/kubernetes/cronjob?ref=release-1.32

View File

@ -1,33 +1,3 @@
apiVersion: v1
kind: Namespace
metadata:
name: rook-ceph
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: rook-release
namespace: rook-ceph
spec:
interval: 1m0s
url: https://charts.rook.io/release
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: rook-ceph
namespace: rook-ceph
spec:
chart:
spec:
chart: rook-ceph
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: rook-release
version: 1.15.3
interval: 1m0s
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
@ -41,20 +11,20 @@ spec:
sourceRef:
kind: HelmRepository
name: rook-release
version: 1.15.3
version: 1.16.3
interval: 1m0s
timeout: 10m
values:
toolbox:
enabled: true
# Uncomment once prometheus stack has been added
# monitoring:
# enabled: true
# createPrometheusRules: true
cephClusterSpec:
storage:
useAllDevices: false
deviceFilter: "^nvme."
mon:
# For testing we only have one node
allowMultiplePerNode: true
mgr:
# For testing we only have one node
allowMultiplePerNode: true
resources:
mgr:
limits:

View File

@ -0,0 +1,14 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: rook-ceph
spec:
chart:
spec:
chart: rook-ceph
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: rook-release
version: 1.16.3
interval: 1m0s

View File

@ -0,0 +1,7 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: rook-release
spec:
interval: 1m0s
url: https://charts.rook.io/release

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rook-ceph
resources:
- ./namespace.yaml
- ./helm-repository.yaml
- ./helm-release-operator.yaml
- ./helm-release-cluster.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: rook-ceph