Skip to content

Instantly share code, notes, and snippets.

@AlexsJones
Last active March 6, 2023 08:20
Show Gist options
  • Save AlexsJones/08ec1ac0d070f6f677a51383528f33d7 to your computer and use it in GitHub Desktop.
Save AlexsJones/08ec1ac0d070f6f677a51383528f33d7 to your computer and use it in GitHub Desktop.

hardware

  • pi4 x3 control-plane nodes
  • pi4 x1 worker nodes
  • Attached disks on /dev/sda on each node

Install

I don't think I enabled coreDNS by default

Results

Within 72 hours the control-plane-0 was unconnectable and the other control-plane nodes were unable to serve the API

apiVersion: cstor.openebs.io/v1
kind: CStorPoolCluster
metadata:
name: cstor-disk-pool
namespace: openebs
spec:
pools:
- nodeSelector:
kubernetes.io/hostname: raspbernetes-0
dataRaidGroups:
- blockDevices:
- blockDeviceName: sda
poolConfig:
dataRaidGroupType: "stripe"
- nodeSelector:
kubernetes.io/hostname: raspbernetes-1
dataRaidGroups:
- blockDevices:
- blockDeviceName: sda
poolConfig:
dataRaidGroupType: "stripe"
- nodeSelector:
kubernetes.io/hostname: raspbernetes-2
dataRaidGroups:
- blockDevices:
- blockDeviceName: sda
poolConfig:
dataRaidGroupType: "stripe"
- nodeSelector:
kubernetes.io/hostname: raspbernetes-3
dataRaidGroups:
- blockDevices:
- blockDeviceName: sda
poolConfig:
dataRaidGroupType: "stripe"
helm repo add openebs https://openebs.github.io/charts
helm repo update
helm install openebs --namespace openebs openebs/openebs --set cstor.enabled=true --create-namespace
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: cstor
provisioner: cstor.csi.openebs.io
allowVolumeExpansion: true
parameters:
cas-type: cstor
# cstorPoolCluster should have the name of the CSPC
cstorPoolCluster: cstor-disk-pool
# replicaCount should be <= no. of CSPI created in the selected CSPC
replicaCount: "3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment