Add local path storage provisioner

This commit is contained in:
2025-03-22 20:28:55 +01:00
parent 9881344d7c
commit 6b51017d9f
2 changed files with 32 additions and 0 deletions

View File

@@ -2,4 +2,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- local-path-provisioner.yaml
- storage-class.yaml

View File

@@ -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