diff --git a/apps-kustomized/local-path-provisioner/configmap.yaml b/apps-kustomized/local-path-provisioner/configmap.yaml new file mode 100644 index 0000000..0f1691b --- /dev/null +++ b/apps-kustomized/local-path-provisioner/configmap.yaml @@ -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 diff --git a/apps-kustomized/local-path-provisioner/kustomization.yaml b/apps-kustomized/local-path-provisioner/kustomization.yaml new file mode 100644 index 0000000..3841461 --- /dev/null +++ b/apps-kustomized/local-path-provisioner/kustomization.yaml @@ -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 diff --git a/apps-kustomized/localpath-storageclasses/fast.yaml b/apps-kustomized/localpath-storageclasses/fast.yaml new file mode 100644 index 0000000..bb3b914 --- /dev/null +++ b/apps-kustomized/localpath-storageclasses/fast.yaml @@ -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 diff --git a/apps-kustomized/localpath-storageclasses/slow.yaml b/apps-kustomized/localpath-storageclasses/slow.yaml new file mode 100644 index 0000000..be6ecaa --- /dev/null +++ b/apps-kustomized/localpath-storageclasses/slow.yaml @@ -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 diff --git a/apps-kustomized/localpath-storageclasses/small.yaml b/apps-kustomized/localpath-storageclasses/small.yaml new file mode 100644 index 0000000..093330b --- /dev/null +++ b/apps-kustomized/localpath-storageclasses/small.yaml @@ -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 diff --git a/everything-app/local-path-provisioner.yaml b/everything-app/local-path-provisioner.yaml new file mode 100644 index 0000000..23e8154 --- /dev/null +++ b/everything-app/local-path-provisioner.yaml @@ -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 diff --git a/everything-app/localpath-storageclasses.yaml b/everything-app/localpath-storageclasses.yaml new file mode 100644 index 0000000..c2cd8be --- /dev/null +++ b/everything-app/localpath-storageclasses.yaml @@ -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