init
This commit is contained in:
83
talos-k8s-flux/soft/piraeus/piraeus-cluster.yaml
Normal file
83
talos-k8s-flux/soft/piraeus/piraeus-cluster.yaml
Normal file
@@ -0,0 +1,83 @@
|
||||
apiVersion: piraeus.io/v1
|
||||
kind: LinstorCluster
|
||||
metadata:
|
||||
name: linstorcluster
|
||||
spec: {}
|
||||
# nodeAffinity:
|
||||
# nodeSelectorTerms:
|
||||
# - matchExpressions:
|
||||
# - key: node-role.kubernetes.io/control-plane
|
||||
# operator: DoesNotExist
|
||||
---
|
||||
|
||||
apiVersion: piraeus.io/v1
|
||||
kind: LinstorSatelliteConfiguration
|
||||
metadata:
|
||||
name: talos-loader-override
|
||||
spec:
|
||||
podTemplate:
|
||||
spec:
|
||||
initContainers:
|
||||
- name: drbd-shutdown-guard
|
||||
$patch: delete
|
||||
- name: drbd-module-loader
|
||||
$patch: delete
|
||||
volumes:
|
||||
- name: run-systemd-system
|
||||
$patch: delete
|
||||
- name: run-drbd-shutdown-guard
|
||||
$patch: delete
|
||||
- name: systemd-bus-socket
|
||||
$patch: delete
|
||||
- name: lib-modules
|
||||
$patch: delete
|
||||
- name: usr-src
|
||||
$patch: delete
|
||||
- name: etc-lvm-backup
|
||||
hostPath:
|
||||
path: /var/etc/lvm/backup
|
||||
type: DirectoryOrCreate
|
||||
- name: etc-lvm-archive
|
||||
hostPath:
|
||||
path: /var/etc/lvm/archive
|
||||
type: DirectoryOrCreate
|
||||
---
|
||||
|
||||
# apiVersion: piraeus.io/v1
|
||||
# kind: LinstorSatelliteConfiguration
|
||||
# metadata:
|
||||
# name: storage-pool
|
||||
# spec:
|
||||
# storagePools:
|
||||
# - name: pool1
|
||||
# lvmThinPool:
|
||||
# volumeGroup: vg1
|
||||
# thinPool: thin
|
||||
# source:
|
||||
# hostDevices:
|
||||
# - /dev/sdb
|
||||
# ---
|
||||
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: piraeus-storage
|
||||
# annotations:
|
||||
# storageclass.kubernetes.io/is-default-class: "true"
|
||||
provisioner: linstor.csi.linbit.com
|
||||
allowVolumeExpansion: true
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
parameters:
|
||||
linstor.csi.linbit.com/storagePool: pool1
|
||||
---
|
||||
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: piraeus-storage-replicated
|
||||
provisioner: linstor.csi.linbit.com
|
||||
allowVolumeExpansion: true
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
parameters:
|
||||
linstor.csi.linbit.com/storagePool: pool1
|
||||
linstor.csi.linbit.com/placementCount: "2"
|
Reference in New Issue
Block a user