feat: Added local-path-provisioner
This commit is contained in:
@@ -7,6 +7,7 @@ resources:
|
||||
- ../../controllers/cert-manager/cert-manager.yaml
|
||||
- ../../controllers/spegel/spegel.yaml
|
||||
- ../../controllers/longhorn/longhorn.yaml
|
||||
- ../../controllers/local-path-provisioner/local-path-provisioner.yaml
|
||||
- ../../configs/artifacts.yaml
|
||||
- ../../configs/letsencrypt/letsencrypt.yaml
|
||||
- ../../configs/certificates/certificates.yaml
|
||||
|
||||
@@ -34,3 +34,8 @@ spec:
|
||||
copy:
|
||||
- from: "@foundation/controllers/longhorn/**"
|
||||
to: "@artifact/"
|
||||
- name: local-path-provisioner
|
||||
originRevision: "@foundation"
|
||||
copy:
|
||||
- from: "@foundation/controllers/local-path-provisioner/**"
|
||||
to: "@artifact/"
|
||||
|
||||
28
controllers/local-path-provisioner/kustomization.yaml
Normal file
28
controllers/local-path-provisioner/kustomization.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- github.com/rancher/local-path-provisioner/deploy?ref=v0.0.32
|
||||
patches:
|
||||
- patch: |-
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: local-path-config
|
||||
namespace: local-path-storage
|
||||
data:
|
||||
config.json: |-
|
||||
{
|
||||
"nodePathMap":[
|
||||
{
|
||||
"node":"DEFAULT_PATH_FOR_NON_LISTED_NODES",
|
||||
"paths":["/var/mnt/local-path-provisioner"]
|
||||
}
|
||||
]
|
||||
}
|
||||
- patch: |-
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: local-path-storage
|
||||
labels:
|
||||
pod-security.kubernetes.io/enforce: privileged
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: local-path-provisioner
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h
|
||||
retryInterval: 2m
|
||||
timeout: 5m
|
||||
sourceRef:
|
||||
kind: ExternalArtifact
|
||||
name: local-path-provisioner
|
||||
path: ./
|
||||
prune: true
|
||||
wait: true
|
||||
Reference in New Issue
Block a user