From 8ab01dec6d981f253a7887f044b5c12a6315dfec Mon Sep 17 00:00:00 2001 From: Andrei Kartashov Date: Mon, 4 Sep 2023 20:38:42 +0700 Subject: [PATCH] local-path-provisioner --- README.rst | 14 ++++++--- .../local-path-provisioner/application.yaml | 29 +++++++++++++++++++ 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 state/gullfaxi/system/local-path-provisioner/application.yaml diff --git a/README.rst b/README.rst index 2b63d95..412b750 100644 --- a/README.rst +++ b/README.rst @@ -20,11 +20,13 @@ Applications & Projects +------------------------------+----------------------------------------------------------------+-------------------------+ | ArgoCD_ | `GitOps tool for Kubernetes`_ | |argocd_status| | +------------------------------+----------------------------------------------------------------+-------------------------+ +| Cert-Manager_ | `Certificate Management`_ | |cert-manager_status| | ++------------------------------+----------------------------------------------------------------+-------------------------+ | Cilium_ | `Cluster CNI plugin`_ | |cilium_status| | +------------------------------+----------------------------------------------------------------+-------------------------+ | Ingress-Nginx_ | `Ingress Controller`_ | |ingress-nginx_status| | +------------------------------+----------------------------------------------------------------+-------------------------+ -| Cert-Manager_ | `Certificate Management`_ | |cert-manager_status| | +| Local-Path-Provisioner_ | `Rancher Local-Path`_ | |local-path_status| | +------------------------------+----------------------------------------------------------------+-------------------------+ | `Apps Project`_, **user level applications** | +------------------------------+----------------------------------------------------------------+-------------------------+ @@ -43,6 +45,10 @@ Applications & Projects .. _GitOps tool for Kubernetes: https://argo-cd.readthedocs.io .. |argocd_status| image:: https://argocd.ioot.xyz/api/badge?name=argocd&revision=true +.. _Cert-Manager: https://argocd.ioot.xyz/applications/argocd/cert-manager +.. _Certificate Management: https://cert-manager.io/ +.. |cert-manager_status| image:: https://argocd.ioot.xyz/api/badge?name=cert-manager&revision=true + .. _Cilium: https://argocd.ioot.xyz/applications/argocd/cilium .. _Cluster CNI plugin: https://github.com/cilium/cilium .. |cilium_status| image:: https://argocd.ioot.xyz/api/badge?name=cilium&revision=true @@ -51,9 +57,9 @@ Applications & Projects .. _Ingress Controller: https://github.com/kubernetes/ingress-nginx .. |ingress-nginx_status| image:: https://argocd.ioot.xyz/api/badge?name=ingress-nginx&revision=true -.. _Cert-Manager: https://argocd.ioot.xyz/applications/argocd/cert-manager -.. _Certificate Management: https://cert-manager.io/ -.. |cert-manager_status| image:: https://argocd.ioot.xyz/api/badge?name=cert-manager&revision=true +.. _Local-Path-Provisioner: https://argocd.ioot.xyz/applications/argocd/local-path-provisioner +.. _Rancher Local-Path: https://github.com/rancher/local-path-provisioner +.. |local-path_status| image:: https://argocd.ioot.xyz/api/badge?name=local-path-provisioner&revision=true Cluster initialization diff --git a/state/gullfaxi/system/local-path-provisioner/application.yaml b/state/gullfaxi/system/local-path-provisioner/application.yaml new file mode 100644 index 0000000..502ceaa --- /dev/null +++ b/state/gullfaxi/system/local-path-provisioner/application.yaml @@ -0,0 +1,29 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: local-path-provisioner +spec: + destination: + server: https://kubernetes.default.svc + namespace: local-path-storage + project: system + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + # https://argo-cd.readthedocs.io/en/stable/user-guide/multiple_sources/#helm-value-files-from-external-git-repository + source: + repoURL: https://github.com/rancher/local-path-provisioner.git + targetRevision: v0.0.24 + path: deploy/chart/local-path-provisioner + helm: + values: | + # https://github.com/rancher/local-path-provisioner/blob/v0.0.24/deploy/chart/local-path-provisioner/values.yaml + storageClass: + defaultClass: true + nodePathMap: + - node: DEFAULT_PATH_FOR_NON_LISTED_NODES + paths: + - /data/local-path-provisioner