diff --git a/infrastructure/core/kustomization.yaml b/infrastructure/core/kustomization.yaml index 874af4d..7ea1a3e 100644 --- a/infrastructure/core/kustomization.yaml +++ b/infrastructure/core/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: + - local-path-provisioner.yaml - storage-class.yaml \ No newline at end of file diff --git a/infrastructure/core/local-path-provisioner.yaml b/infrastructure/core/local-path-provisioner.yaml new file mode 100644 index 0000000..5ba5034 --- /dev/null +++ b/infrastructure/core/local-path-provisioner.yaml @@ -0,0 +1,31 @@ +# /infrastructure/core/local-path-provisioner.yaml +apiVersion: source.toolkit.fluxcd.io/v1 +kind: GitRepository +metadata: + name: local-path-provisioner + namespace: flux-system +spec: + interval: 30m + url: https://github.com/rancher/local-path-provisioner.git + ref: + tag: v0.0.31 +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: local-path-provisioner + namespace: flux-system +spec: + interval: 15m + prune: true + sourceRef: + kind: GitRepository + name: local-path-provisioner + namespace: flux-system + path: ./deploy + targetNamespace: local-path-storage + healthChecks: + - apiVersion: apps/v1 + kind: Deployment + name: local-path-provisioner + namespace: local-path-storage \ No newline at end of file