Use our own install of local path

This commit is contained in:
2024-08-19 01:40:03 +01:00
parent 46988b5a12
commit adab3ce553
9 changed files with 47 additions and 50 deletions

View File

@@ -0,0 +1,25 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: local-path-repo
namespace: kube-system
spec:
interval: 5m
releaseName: local-path-repo
chart:
spec:
chart: local-path-provisioner
sourceRef:
kind: GitRepository
name: local-path-repo
values:
storageClass:
defaultClass: true
reclaimPolicy: Retain
nodePathMap: [
{
node: DEFAULT_PATH_FOR_NON_LISTED_NODES,
paths: [/usr/local]
}
]

View File

@@ -0,0 +1,15 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: local-path-repo
namespace: kube-system
spec:
interval: 15m
url: https://github.com/rancher/local-path-provisioner
ref:
branch: main
ignore: |-
# exclude all
/*
# include charts directory
!/deploy/chart/

View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helmrelease.yaml
- helmrepo.yaml