From c0c44995d6217ef7e510c3f51a6d399b6358954a Mon Sep 17 00:00:00 2001 From: shadowlegend Date: Wed, 9 Apr 2025 16:44:39 +0700 Subject: [PATCH] chore: deploy snapshotter via app instead --- k8s-infra/apps.yml | 43 +++++++++++++++++++++++++++++++++++++ k8s-infra/kustomization.yml | 2 -- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/k8s-infra/apps.yml b/k8s-infra/apps.yml index 5f030a0..eaa1977 100644 --- a/k8s-infra/apps.yml +++ b/k8s-infra/apps.yml @@ -159,3 +159,46 @@ spec: destination: server: https://kubernetes.default.svc namespace: longhorn-system + +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: external-snapshotter-crd + namespace: argocd +spec: + syncPolicy: + automated: + selfHeal: true + syncOptions: + - CreateNamespace=true + project: default + sources: + - repoURL: https://github.com/kubernetes-csi/external-snapshotter + targetRevision: v8.2.0 + path: client/config/crd + destination: + server: https://kubernetes.default.svc + namespace: kube-system + +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: external-snapshotter-crd + namespace: argocd +spec: + syncPolicy: + automated: + selfHeal: true + syncOptions: + - CreateNamespace=true + project: default + sources: + - repoURL: https://github.com/kubernetes-csi/external-snapshotter + targetRevision: v8.2.0 + path: deploy/kubernetes/snapshot-controller + destination: + server: https://kubernetes.default.svc + namespace: kube-system + diff --git a/k8s-infra/kustomization.yml b/k8s-infra/kustomization.yml index 1b8e241..807cff1 100644 --- a/k8s-infra/kustomization.yml +++ b/k8s-infra/kustomization.yml @@ -3,8 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- https://github.com/kubernetes-csi/external-snapshotter/tree/v8.2.0/client/config/crd -- https://github.com/kubernetes-csi/external-snapshotter/tree/v8.2.0/deploy/kubernetes/snapshot-controller - apps.yml - https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/dragonfly-operator.yaml - postgresql-image.yml