add infra app local-path-provisioner

This commit is contained in:
2024-06-27 09:46:52 +10:00
parent 8fd615eb68
commit 2904ec7aca
4 changed files with 40 additions and 10 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: local-path-provisioner
namespace: local-path-storage
spec:
interval: 1h
driftDetection:
mode: enabled
chart:
spec:
chart: local-path-provisioner
version: master-head
sourceRef:
kind: GitRepository
namespace: flux-system
name: local-path-provisioner
interval: 1d
values:
storageClass:
reclaimPolicy: Retain

View File

@@ -0,0 +1,19 @@
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/gitrepository_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: local-path-provisioner
namespace: local-path-storage
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/local-path-provisioner/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system