Skip to content

Commit

Permalink
replace openebs jiva by mayastor
Browse files Browse the repository at this point in the history
  • Loading branch information
damoun committed May 8, 2024
1 parent fcd5793 commit e0c740b
Show file tree
Hide file tree
Showing 9 changed files with 108 additions and 31 deletions.
36 changes: 9 additions & 27 deletions infrastructure/talos/home/talconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,9 @@ nodes:
patches:
- |-
- op: add
path: /machine/kubelet/extraMounts
path: /machine/sysctls
value:
- destination: /var/openebs/local
type: bind
source: /var/openebs/local
options:
- bind
- rshared
- rw
vm.nr_hugepages: "1024"
schematic:
customization:
extraKernelArgs:
Expand All @@ -112,7 +106,7 @@ nodes:
hardwareAddr: "ec:8e:b5:6f:0d:73"
disableSearchDomain: true
nodeLabels:
openebs.io/data-plane: "true"
openebs.io/engine: mayastor
installDiskSelector:
type: ssd
busPath: /pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0/
Expand All @@ -126,15 +120,9 @@ nodes:
patches:
- |-
- op: add
path: /machine/kubelet/extraMounts
path: /machine/sysctls
value:
- destination: /var/openebs/local
type: bind
source: /var/openebs/local
options:
- bind
- rshared
- rw
vm.nr_hugepages: "1024"
schematic:
customization:
extraKernelArgs:
Expand All @@ -150,7 +138,7 @@ nodes:
hardwareAddr: "ec:8e:b5:6f:0b:df"
disableSearchDomain: true
nodeLabels:
openebs.io/data-plane: "true"
openebs.io/engine: mayastor
installDiskSelector:
type: ssd
busPath: /pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0/
Expand All @@ -164,15 +152,9 @@ nodes:
patches:
- |-
- op: add
path: /machine/kubelet/extraMounts
path: /machine/sysctls
value:
- destination: /var/openebs/local
type: bind
source: /var/openebs/local
options:
- bind
- rshared
- rw
vm.nr_hugepages: "1024"
schematic:
customization:
extraKernelArgs:
Expand All @@ -188,7 +170,7 @@ nodes:
hardwareAddr: "40:b0:34:fa:e0:d3"
disableSearchDomain: true
nodeLabels:
openebs.io/data-plane: "true"
openebs.io/engine: mayastor
installDiskSelector:
type: ssd
busPath: /pci0000:00/0000:00:17.0/ata1/host0/target0:0:0/0:0:0:0/
Expand Down
3 changes: 2 additions & 1 deletion kubernetes/home/apps/storage/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- ./openebs-jiva/ks.yaml
# - ./openebs-jiva/ks.yaml
- ./openebs-mayastor/ks.yaml
26 changes: 26 additions & 0 deletions kubernetes/home/apps/storage/openebs-mayastor/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: openebs-mayastor
namespace: storage
spec:
chart:
spec:
chart: mayastor
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: openebs-mayastor
namespace: flux-system
version: 2.6.0
interval: 1m0s
values:
etcd:
localpvScConfig:
basePath: "/var/openebs/local/localpv-hostpath/etcd"
loki-stack:
enabled: false
obs:
callhome:
enabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helmrelease.yaml
26 changes: 26 additions & 0 deletions kubernetes/home/apps/storage/openebs-mayastor/config/diskpool.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: "openebs.io/v1beta2"
kind: DiskPool
metadata:
name: pool-jsai
namespace: storage
spec:
node: worker-jsai
disks: ["/dev/nvme0n1"]
---
apiVersion: "openebs.io/v1beta2"
kind: DiskPool
metadata:
name: pool-dsfg
namespace: storage
spec:
node: worker-dsfg
disks: ["/dev/nvme0n1"]
---
apiVersion: "openebs.io/v1beta2"
kind: DiskPool
metadata:
name: pool-ajkf
namespace: storage
spec:
node: worker-ajkf
disks: ["/dev/nvme0n1"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- diskpool.yaml
32 changes: 32 additions & 0 deletions kubernetes/home/apps/storage/openebs-mayastor/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: openebs-mayastor-app
namespace: flux-system
spec:
targetNamespace: storage
interval: 10m
path: "./kubernetes/home/apps/storage/openebs-mayastor/app"
prune: true
sourceRef:
kind: GitRepository
name: flux-system
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: openebs-mayastor-config
namespace: flux-system
spec:
targetNamespace: storage
interval: 10m
path: "./kubernetes/home/apps/storage/openebs-mayastor/config"
prune: true
sourceRef:
kind: GitRepository
name: flux-system
wait: true
dependsOn:
- name: openebs-mayastor-app
2 changes: 1 addition & 1 deletion kubernetes/home/flux/repositories/helm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resources:
- ./itzg-minecraft.yaml
- ./jetstack.yaml
- ./mongodb.yaml
- ./openebs-jiva.yaml
- ./openebs-mayastor.yaml
- ./ot-container-kit.yaml
- ./prometheus-community.yaml
- ./renovate.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: openebs-jiva
name: openebs-mayastor
namespace: flux-system
spec:
interval: 1m0s
url: https://openebs.github.io/jiva-operator
url: https://openebs.github.io/mayastor-extensions/

0 comments on commit e0c740b

Please sign in to comment.