Merge pull request #376 from 3dwardch3ng/infra/local-path-provisioner

add infra app local-path-provisioner
This commit is contained in:
2024-06-27 09:47:52 +10:00
committed by GitHub
5 changed files with 41 additions and 11 deletions

View File

@@ -1,7 +0,0 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-mount-nfs
provisioner: rancher.io/local-path
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer

View File

@@ -7,7 +7,7 @@ resources:
- ./grafana-dashboards/grafana-dashboards.yaml
- ./ingress-nginx/ingress-nginx.yaml
- ./ingress-nginx/ingress-nginx-config.yaml
- ./kube-system/kube-system-misc.yaml
- ./local-path-provisioner/local-path-provisioner.yaml
- ./minio/minio.yaml
- ./namespaces/namespaces.yaml
- ./postgresql/postgresql.yaml

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

@@ -2,15 +2,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: kube-system-misc
namespace: kube-system
name: local-path-provisioner
namespace: local-path-storage
spec:
interval: 10m
timeout: 1m30s
retryInterval: 30s
path: ./kubernetes/infrastructure/kube-system/misc
path: ./kubernetes/infrastructure/local-path-provisioner/app
prune: true
sourceRef:
kind: GitRepository
namespace: flux-system
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system

View File

@@ -0,0 +1,13 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: local-path-provisioner
namespace: flux-system
spec:
interval: 5m
ref:
branch: main
secretRef:
name: flux-system
timeout: 60s
url: https://github.com/rancher/local-path-provisioner.git