Skip to content

Commit

Permalink
Merge pull request #296 from mikemcd3912/hybrid-nodes-addition
Browse files Browse the repository at this point in the history
OpenEBS for Hybrid Node storage
  • Loading branch information
mikemcd3912 authored Oct 9, 2024
2 parents 3ab6aba + 9c871d7 commit 63be3db
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- storage-driver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: openebs
namespace: openebs
spec:
chart:
spec:
chart: openebs
reconcileStrategy: ChartVersion
sourceRef:
kind: HelmRepository
name: openebs
namespace: openebs
version: "3.3.0"
interval: 60s
targetNamespace: openebs

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: openebs
namespace: openebs
spec:
interval: 30s
url: https://openebs.github.io/charts

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- helm-repo.yaml
- helm-release.yaml
- local-hostpath-sc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-hostpath
annotations:
storageclass.kubernetes.io/is-default-class: true
openebs.io/cas-type: local
cas.openebs.io/config: |
- name: StorageType
value: hostpath
- name: BasePath
value: /mnt/lpv
provisioner: openebs.io/local
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: openebs
14 changes: 14 additions & 0 deletions eks-anywhere-hybrid/Addons/Core/storage-driver/storage-driver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: openebs
namespace: flux-system
spec:
path: "./eks-anywhere-hybrid/Addons/Core/storage-driver/openebs"
sourceRef:
kind: GitRepository
name: addons
namespace: flux-system
interval: 5m0s
prune: true
---
34 changes: 17 additions & 17 deletions eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
apiVersion: batch/v1
kind: Job
metadata:
name: sample-hybrid-manifestjob
namespace: default
spec:
backoffLimit: 1
template:
spec:
containers:
- name: job
image: busybox
args:
- /bin/sh
- -c
- date; echo sleeping....; sleep 5s; exit 1;
restartPolicy: Never
# apiVersion: batch/v1
# kind: Job
# metadata:
# name: sample-hybrid-manifestjob
# namespace: default
# spec:
# backoffLimit: 1
# template:
# spec:
# containers:
# - name: job
# image: busybox
# args:
# - /bin/sh
# - -c
# - date; echo sleeping....; sleep 5s; exit 1;
# restartPolicy: Never

0 comments on commit 63be3db

Please sign in to comment.