From 8ff48694480ba6f7e36d1d75444e6ed5b19ab4ae Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 29 Oct 2024 16:01:11 -0400 Subject: [PATCH] Remove Volsync --- kubernetes/apps/volsync/kustomization.yaml | 8 ---- kubernetes/apps/volsync/namespace.yaml | 7 ---- .../apps/volsync/volsync/app/helmrelease.yaml | 42 ------------------- .../volsync/volsync/app/kustomization.yaml | 6 --- .../volsync/volsync/app/prometheusrule.yaml | 23 ---------- kubernetes/apps/volsync/volsync/ks.yaml | 20 --------- 6 files changed, 106 deletions(-) delete mode 100644 kubernetes/apps/volsync/kustomization.yaml delete mode 100644 kubernetes/apps/volsync/namespace.yaml delete mode 100644 kubernetes/apps/volsync/volsync/app/helmrelease.yaml delete mode 100644 kubernetes/apps/volsync/volsync/app/kustomization.yaml delete mode 100644 kubernetes/apps/volsync/volsync/app/prometheusrule.yaml delete mode 100644 kubernetes/apps/volsync/volsync/ks.yaml diff --git a/kubernetes/apps/volsync/kustomization.yaml b/kubernetes/apps/volsync/kustomization.yaml deleted file mode 100644 index ad8aa1b0..00000000 --- a/kubernetes/apps/volsync/kustomization.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - # Pre Flux-Kustomizations - - ./namespace.yaml - # Flux-Kustomizations - # - ./volsync/ks.yaml diff --git a/kubernetes/apps/volsync/namespace.yaml b/kubernetes/apps/volsync/namespace.yaml deleted file mode 100644 index b2062055..00000000 --- a/kubernetes/apps/volsync/namespace.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -apiVersion: v1 -kind: Namespace -metadata: - name: volsync - labels: - kustomize.toolkit.fluxcd.io/prune: disabled diff --git a/kubernetes/apps/volsync/volsync/app/helmrelease.yaml b/kubernetes/apps/volsync/volsync/app/helmrelease.yaml deleted file mode 100644 index e9720b0c..00000000 --- a/kubernetes/apps/volsync/volsync/app/helmrelease.yaml +++ /dev/null @@ -1,42 +0,0 @@ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: volsync -spec: - interval: 30m - chart: - spec: - chart: volsync - version: 0.10.0 - sourceRef: - kind: HelmRepository - name: backube - namespace: flux-system - maxHistory: 2 - install: - remediation: - retries: 3 - upgrade: - cleanupOnFail: true - remediation: - retries: 3 - uninstall: - keepHistory: false - dependsOn: - - name: snapshot-controller - namespace: kube-system - values: - manageCRDs: true - image: - # https://github.com/backube/volsync/issues/828 - repository: &image ghcr.io/onedr0p/volsync - tag: &tag 0.10.0 - rclone: - repository: *image - tag: *tag - restic: - repository: *image - tag: *tag - metrics: - disableAuth: true diff --git a/kubernetes/apps/volsync/volsync/app/kustomization.yaml b/kubernetes/apps/volsync/volsync/app/kustomization.yaml deleted file mode 100644 index 8ae52667..00000000 --- a/kubernetes/apps/volsync/volsync/app/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ./helmrelease.yaml - - ./prometheusrule.yaml diff --git a/kubernetes/apps/volsync/volsync/app/prometheusrule.yaml b/kubernetes/apps/volsync/volsync/app/prometheusrule.yaml deleted file mode 100644 index 9873338f..00000000 --- a/kubernetes/apps/volsync/volsync/app/prometheusrule.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -apiVersion: monitoring.coreos.com/v1 -kind: PrometheusRule -metadata: - name: volsync -spec: - groups: - - name: volsync.rules - rules: - - alert: VolSyncComponentAbsent - annotations: - summary: VolSync component has disappeared from Prometheus target discovery. - expr: absent(up{job="volsync-metrics"}) - for: 15m - labels: - severity: critical - - alert: VolSyncVolumeOutOfSync - annotations: - summary: "{{ $labels.obj_namespace }}/{{ $labels.obj_name }} volume is out of sync." - expr: volsync_volume_out_of_sync == 1 - for: 15m - labels: - severity: critical diff --git a/kubernetes/apps/volsync/volsync/ks.yaml b/kubernetes/apps/volsync/volsync/ks.yaml deleted file mode 100644 index 9913e31e..00000000 --- a/kubernetes/apps/volsync/volsync/ks.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -apiVersion: kustomize.toolkit.fluxcd.io/v1 -kind: Kustomization -metadata: - name: &app volsync - namespace: flux-system -spec: - targetNamespace: volsync - commonMetadata: - labels: - app.kubernetes.io/name: *app - path: ./kubernetes/apps/volsync/volsync/app - prune: true - sourceRef: - kind: GitRepository - name: home-kubernetes - wait: false - interval: 30m - retryInterval: 1m - timeout: 5m