feat: add external-snapshotter

This commit is contained in:
auricom
2021-04-17 11:38:15 +02:00
parent b6548dda6b
commit f4e1627cc0
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: GitRepository
metadata:
name: external-snapshotter-source
namespace: flux-system
spec:
interval: 30m
url: https://github.com/kubernetes-csi/external-snapshotter.git
ref:
tag: v4.0.0
ignore: |
# exclude all
/*
# include deploy crds dir
!/client/config/crd
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: external-snapshotter-crds
namespace: flux-system
spec:
interval: 15m
prune: false
sourceRef:
kind: GitRepository
name: external-snapshotter-source
healthChecks:
- apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: volumesnapshotclasses.snapshot.storage.k8s.io
- apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: volumesnapshotcontents.snapshot.storage.k8s.io
- apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: volumesnapshots.snapshot.storage.k8s.io

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- crds.yaml

View File

@@ -3,6 +3,7 @@ kind: Kustomization
resources:
- cert-manager
- descheduler
- external-snapshotter
- flux
- intel-gpu-plugin
- kube-prometheus-stack