Skip to content

Commit

Permalink
feat(openebs): setup volume-snapshot-class
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Jan 10, 2025
1 parent 29fcd79 commit 8bd0c80
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 0 deletions.
22 changes: 22 additions & 0 deletions kubernetes/kube-nas/apps/openebs-system/openebs/flux-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,25 @@ spec:
wait: true
retryInterval: 1m
timeout: 5m

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &appname openebs-volume-snapshot-class
namespace: flux-system
spec:
targetNamespace: openebs-system
commonMetadata:
labels:
app.kubernetes.io/name: *appname
interval: 10m
path: ./kubernetes/kube-nas/apps/openebs-system/openebs/volume-snapshot-class
prune: false
sourceRef:
kind: GitRepository
name: home-ops
wait: true
retryInterval: 1m
timeout: 5m
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: openebs-volume-snapshot-class
spec:
dependsOn:
- name: openebs
- name: snapshot-controller
namespace: kube-tools
interval: 15m
chart:
spec:
chart: k8s-resource
version: 0.2.0
sourceRef:
kind: HelmRepository
name: mirceanton-charts
namespace: flux-system
maxHistory: 15
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
valuesFrom:
- kind: ConfigMap
name: openebs-volume-snapshot-class
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
configMapGenerator:
- name: openebs-volume-snapshot-class
files:
- values.yaml=./volume-snapshot-class.yaml
generatorOptions:
disableNameSuffixHash: true
configurations:
- kustomize-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease

0 comments on commit 8bd0c80

Please sign in to comment.