Rename infra dir
This commit is contained in:
7
infra-scripts/openebs/Makefile
Normal file
7
infra-scripts/openebs/Makefile
Normal file
@@ -0,0 +1,7 @@
|
||||
install:
|
||||
helm repo add openebs https://openebs.github.io/openebs
|
||||
helm repo update openebs
|
||||
helm upgrade -i -n openebs --create-namespace openebs openebs/openebs -f values.yml
|
||||
|
||||
kubectl apply -f diskpools/zoma-dibaiyin-hdd.yml
|
||||
kubectl apply -f single-hdd-sc.yml
|
||||
11
infra-scripts/openebs/diskpools/zoma-dibaiyin-hdd.yml
Normal file
11
infra-scripts/openebs/diskpools/zoma-dibaiyin-hdd.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: "openebs.io/v1beta2"
|
||||
kind: DiskPool
|
||||
metadata:
|
||||
name: zoma-dibaiyin-hdd
|
||||
namespace: openebs
|
||||
spec:
|
||||
node: zoma-dibaiyin
|
||||
disks: ["aio:///dev/disk/by-id/wwn-0x5000c500ba15dcf7"]
|
||||
topology:
|
||||
labelled:
|
||||
type: hdd
|
||||
18
infra-scripts/openebs/single-hdd-sc.yml
Normal file
18
infra-scripts/openebs/single-hdd-sc.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: mayastor-single-hdd
|
||||
parameters:
|
||||
protocol: nvmf
|
||||
# Single replica
|
||||
repl: "1"
|
||||
# Thin provision volumes
|
||||
thin: "true"
|
||||
# Allow expansion of volumes
|
||||
allowVolumeExpansion: "true"
|
||||
# Generate new filesystem's uuid when cloning
|
||||
cloneFsIdAsVolumeId: "true"
|
||||
# Schedule this sconly on hdd
|
||||
poolAffinityTopologyLabel: |
|
||||
type: hdd
|
||||
provisioner: io.openebs.csi-mayastor
|
||||
77
infra-scripts/openebs/values.yml
Normal file
77
infra-scripts/openebs/values.yml
Normal file
@@ -0,0 +1,77 @@
|
||||
zfs-localpv:
|
||||
cidrs:
|
||||
zfsLocalPv:
|
||||
enabled: false
|
||||
|
||||
lvm-localpv:
|
||||
crds:
|
||||
lmvLocalPv:
|
||||
enabled: false
|
||||
|
||||
mayastor:
|
||||
csi:
|
||||
node:
|
||||
initContainers:
|
||||
# We need to disable the init container that checks for the nvme_tcp module, since Talos has that module built-in.
|
||||
# https://www.talos.dev/v1.9/kubernetes-guides/configuration/storage/#deploy-mayastor
|
||||
enabled: false
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
controller:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
|
||||
etcd:
|
||||
clusterDomain: homelab.lumpiasty.xyz
|
||||
# Single node cluster for now
|
||||
replicaCount: 1
|
||||
io_engine:
|
||||
# Workaround for crashing io-engine
|
||||
# https://github.com/openebs/mayastor/issues/1763#issuecomment-2481922234
|
||||
envcontext: "iova-mode=pa"
|
||||
agents:
|
||||
core:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
ha:
|
||||
node:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
cluster:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
apis:
|
||||
rest:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
obs:
|
||||
callhome:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
stats:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
|
||||
operators:
|
||||
pool:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
|
||||
engines:
|
||||
local:
|
||||
lvm:
|
||||
enabled: false
|
||||
zfs:
|
||||
enabled: false
|
||||
replicated:
|
||||
mayastor:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user