diff --git a/eks-anywhere-hybrid/Addons/Core/storage-driver/kustomization.yaml b/eks-anywhere-hybrid/Addons/Core/storage-driver/kustomization.yaml new file mode 100644 index 00000000..62f97ebf --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Core/storage-driver/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - storage-driver.yaml \ No newline at end of file diff --git a/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/helm-release.yaml b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/helm-release.yaml new file mode 100644 index 00000000..58dee1e2 --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/helm-release.yaml @@ -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 + diff --git a/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/helm-repo.yaml b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/helm-repo.yaml new file mode 100644 index 00000000..d9665841 --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/helm-repo.yaml @@ -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 + diff --git a/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/kustomization.yaml b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/kustomization.yaml new file mode 100644 index 00000000..1ce94f6b --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/kustomization.yaml @@ -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 \ No newline at end of file diff --git a/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/local-hostpath-sc.yaml b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/local-hostpath-sc.yaml new file mode 100644 index 00000000..291593cb --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/local-hostpath-sc.yaml @@ -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 \ No newline at end of file diff --git a/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/namespace.yaml b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/namespace.yaml new file mode 100644 index 00000000..21752858 --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Core/storage-driver/openebs/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: openebs \ No newline at end of file diff --git a/eks-anywhere-hybrid/Addons/Core/storage-driver/storage-driver.yaml b/eks-anywhere-hybrid/Addons/Core/storage-driver/storage-driver.yaml new file mode 100644 index 00000000..a99b4deb --- /dev/null +++ b/eks-anywhere-hybrid/Addons/Core/storage-driver/storage-driver.yaml @@ -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 +--- diff --git a/eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml b/eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml index 20e448a6..d8af2e88 100644 --- a/eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml +++ b/eks-anywhere-hybrid/Addons/Partner/Sample/manifestJob.yaml @@ -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