Compare commits

..

2 commits

Author SHA1 Message Date
2651c3efff
add openebs localpv 2024-09-05 01:11:07 -05:00
2f17e3f3bd
add extra mounts to all workers for openebs local 2024-09-05 01:03:54 -05:00
6 changed files with 113 additions and 11 deletions

View file

@ -0,0 +1,9 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
# Flux-Kustomizations
- ./openebs/ks.yaml

View file

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: openebs-system
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled

View file

@ -0,0 +1,55 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: openebs
spec:
interval: 30m
chart:
spec:
chart: openebs
version: 4.1.0
sourceRef:
kind: HelmRepository
name: openebs
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
localpv-provisioner:
localpv:
image:
registry: quay.io/
repository: openebs/provisioner-localpv
hostpathClass:
enabled: true
name: openebs-hostpath
isDefaultClass: false
basePath: /var/openebs/local
openebs-crds:
csi:
volumeSnapshots:
enabled: false
keep: false
zfs-localpv:
enabled: false
lvm-localpv:
enabled: false
mayastor:
enabled: false
engines:
local:
lvm:
enabled: false
zfs:
enabled: true
replicated:
mayastor:
enabled: false

View file

@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml

View file

@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app openebs
namespace: flux-system
spec:
targetNamespace: openebs-system
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/apps/openebs-system/openebs/app
prune: true
sourceRef:
kind: GitRepository
name: theshire
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

View file

@ -72,6 +72,17 @@ nodes:
machine: machine:
sysctls: sysctls:
vm.nr_hugepages: "1024" vm.nr_hugepages: "1024"
- &kubelet_extra_mounts |-
machine:
kubelet:
extraMounts:
- destination: /var/openebs/local
type: bind
source: /var/openebs/local
options:
- bind
- rshared
- rw
- hostname: merry - hostname: merry
disableSearchDomain: true disableSearchDomain: true
@ -87,6 +98,7 @@ nodes:
machine: machine:
sysctls: sysctls:
vm.nr_hugepages: "1024" vm.nr_hugepages: "1024"
- *kubelet_extra_mounts
- hostname: rosie - hostname: rosie
disableSearchDomain: true disableSearchDomain: true
@ -102,6 +114,7 @@ nodes:
machine: machine:
sysctls: sysctls:
vm.nr_hugepages: "1024" vm.nr_hugepages: "1024"
- *kubelet_extra_mounts
- hostname: gandalf-01 - hostname: gandalf-01
disableSearchDomain: true disableSearchDomain: true
ipAddress: 10.1.1.68 ipAddress: 10.1.1.68
@ -116,17 +129,8 @@ nodes:
machine: machine:
sysctls: sysctls:
vm.nr_hugepages: "1024" vm.nr_hugepages: "1024"
- &kubelet_extra_mounts |- - *kubelet_extra_mounts
machine:
kubelet:
extraMounts:
- destination: /var/openebs/local
type: bind
source: /var/openebs/local
options:
- bind
- rshared
- rw
- hostname: shadowfax-01 - hostname: shadowfax-01
disableSearchDomain: true disableSearchDomain: true
ipAddress: 10.1.1.69 ipAddress: 10.1.1.69