local-path-provisioner and extra storage classes for local samba

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2023-11-17 14:14:59 +01:00
parent 93707f3cf5
commit 6462e90d8e
7 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,15 @@
apiVersion: v1
data:
config.json: |-
{
"nodePathMap":[
{
"node":"DEFAULT_PATH_FOR_NON_LISTED_NODES",
"paths":["/var/mnt/sdc/localstorage","/var/mnt/sda/localstorage","/var/mnt/sdb/localstorage"]
}
]
}
kind: ConfigMap
metadata:
name: local-path-config
namespace: local-path-storage

View File

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/rancher/local-path-provisioner/deploy?ref=v0.0.24
patches:
- path: configmap.yaml

View File

@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path-slow
provisioner: rancher.io/local-path
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
parameters:
nodePath: /var/mnt/sda/localstorage

View File

@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path-fast
provisioner: rancher.io/local-path
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
parameters:
nodePath: /var/mnt/sdb/localstorage

View File

@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path-small
provisioner: rancher.io/local-path
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
parameters:
nodePath: /var/mnt/sdc/localstorage

View File

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: local-path-provisioner
namespace: argocd
spec:
destination:
namespace: local-path-storage
server: https://kubernetes.default.svc
project: infra
source:
path: apps-kustomized/local-path-provisioner
repoURL: https://git.martyn.berlin/martyn/infra4talos
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true

View File

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: localpath-storageclasses
namespace: argocd
spec:
destination:
namespace: localpath-storageclasses
server: https://kubernetes.default.svc
project: infra
source:
path: apps-kustomized/localpath-storageclasses
repoURL: https://git.martyn.berlin/martyn/infra4talos
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true