Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove volsync #660

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Remove volsync #660

merged 1 commit into from
Oct 29, 2024

Conversation

chrisbsmith
Copy link
Owner

Don't need this with a single node cluster

Copy link

--- kubernetes/apps/volsync/volsync/app Kustomization: flux-system/volsync HelmRelease: volsync/volsync

+++ kubernetes/apps/volsync/volsync/app Kustomization: flux-system/volsync HelmRelease: volsync/volsync

@@ -1,47 +0,0 @@

----
-apiVersion: helm.toolkit.fluxcd.io/v2
-kind: HelmRelease
-metadata:
-  labels:
-    app.kubernetes.io/name: volsync
-    kustomize.toolkit.fluxcd.io/name: volsync
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: volsync
-  namespace: volsync
-spec:
-  chart:
-    spec:
-      chart: volsync
-      sourceRef:
-        kind: HelmRepository
-        name: backube
-        namespace: flux-system
-      version: 0.10.0
-  dependsOn:
-  - name: snapshot-controller
-    namespace: kube-system
-  install:
-    remediation:
-      retries: 3
-  interval: 30m
-  maxHistory: 2
-  uninstall:
-    keepHistory: false
-  upgrade:
-    cleanupOnFail: true
-    remediation:
-      retries: 3
-  values:
-    image:
-      repository: ghcr.io/onedr0p/volsync
-      tag: 0.10.0
-    manageCRDs: true
-    metrics:
-      disableAuth: true
-    rclone:
-      repository: ghcr.io/onedr0p/volsync
-      tag: 0.10.0
-    restic:
-      repository: ghcr.io/onedr0p/volsync
-      tag: 0.10.0
-
--- kubernetes/apps/volsync/volsync/app Kustomization: flux-system/volsync PrometheusRule: volsync/volsync

+++ kubernetes/apps/volsync/volsync/app Kustomization: flux-system/volsync PrometheusRule: volsync/volsync

@@ -1,30 +0,0 @@

----
-apiVersion: monitoring.coreos.com/v1
-kind: PrometheusRule
-metadata:
-  labels:
-    app.kubernetes.io/name: volsync
-    kustomize.toolkit.fluxcd.io/name: volsync
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: volsync
-  namespace: 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
-
--- kubernetes/apps Kustomization: flux-system/cluster-apps Namespace: flux-system/volsync

+++ kubernetes/apps Kustomization: flux-system/cluster-apps Namespace: flux-system/volsync

@@ -1,10 +0,0 @@

----
-apiVersion: v1
-kind: Namespace
-metadata:
-  labels:
-    kustomize.toolkit.fluxcd.io/name: cluster-apps
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-    kustomize.toolkit.fluxcd.io/prune: disabled
-  name: volsync
-

Copy link

--- HelmRelease: volsync/volsync ServiceAccount: volsync/volsync

+++ HelmRelease: volsync/volsync ServiceAccount: volsync/volsync

@@ -1,10 +0,0 @@

----
-apiVersion: v1
-kind: ServiceAccount
-metadata:
-  name: volsync
-  labels:
-    app.kubernetes.io/name: volsync
-    app.kubernetes.io/instance: volsync
-    app.kubernetes.io/managed-by: Helm
-
--- HelmRelease: volsync/volsync ClusterRole: volsync/volsync-manager

+++ HelmRelease: volsync/volsync ClusterRole: volsync/volsync-manager

@@ -1,302 +0,0 @@

----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
-  name: volsync-manager
-  labels:
-    app.kubernetes.io/name: volsync
-    app.kubernetes.io/instance: volsync
-    app.kubernetes.io/managed-by: Helm
-rules:
-- apiGroups:
-  - apps
-  resources:
-  - deployments
-  verbs:
-  - create
-  - delete
-  - deletecollection
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - batch
-  resources:
-  - jobs
-  verbs:
-  - create
-  - delete
-  - deletecollection
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - configmaps
-  verbs:
-  - get
-  - list
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - events
-  verbs:
-  - create
-  - patch
-  - update
-- apiGroups:
-  - ''
-  resources:
-  - namespaces
-  verbs:
-  - get
-  - list
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - nodes
-  verbs:
-  - get
-  - list
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - persistentvolumeclaims
-  verbs:
-  - create
-  - delete
-  - deletecollection
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - persistentvolumeclaims/finalizers
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - persistentvolumes
-  verbs:
-  - get
-  - list
-  - patch
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - pods
-  verbs:
-  - get
-  - list
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - pods/log
-  verbs:
-  - get
-  - list
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - secrets
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - serviceaccounts
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - ''
-  resources:
-  - services
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - events.k8s.io
-  resources:
-  - events
-  verbs:
-  - create
-  - patch
-  - update
-- apiGroups:
-  - populator.storage.k8s.io
-  resources:
-  - volumepopulators
-  verbs:
-  - create
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - rbac.authorization.k8s.io
-  resources:
-  - rolebindings
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - rbac.authorization.k8s.io
-  resources:
-  - roles
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - security.openshift.io
-  resources:
-  - securitycontextconstraints
-  verbs:
-  - create
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - security.openshift.io
-  resourceNames:
-  - volsync-privileged-mover
-  resources:
-  - securitycontextconstraints
-  verbs:
-  - use
-- apiGroups:
-  - snapshot.storage.k8s.io
-  resources:
-  - volumesnapshots
-  verbs:
-  - create
-  - delete
-  - deletecollection
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - storage.k8s.io
-  resources:
-  - storageclasses
-  verbs:
-  - get
-  - list
-  - watch
-- apiGroups:
-  - volsync.backube
-  resources:
-  - replicationdestinations
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - volsync.backube
-  resources:
-  - replicationdestinations/finalizers
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - volsync.backube
-  resources:
-  - replicationdestinations/status
-  verbs:
-  - get
-  - patch
-  - update
-- apiGroups:
-  - volsync.backube
-  resources:
-  - replicationsources
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - volsync.backube
-  resources:
-  - replicationsources/finalizers
-  verbs:
-  - create
-  - delete
-  - get
-  - list
-  - patch
-  - update
-  - watch
-- apiGroups:
-  - volsync.backube
-  resources:
-  - replicationsources/status
-  verbs:
-  - get
-  - patch
-  - update
-
--- HelmRelease: volsync/volsync ClusterRoleBinding: volsync/volsync-manager

+++ HelmRelease: volsync/volsync ClusterRoleBinding: volsync/volsync-manager

@@ -1,18 +0,0 @@

----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
-  name: volsync-manager
-  labels:
-    app.kubernetes.io/name: volsync
-    app.kubernetes.io/instance: volsync
-    app.kubernetes.io/managed-by: Helm
-roleRef:
-  apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
-  name: volsync-manager
-subjects:
-- kind: ServiceAccount
-  name: volsync
-  namespace: volsync
-
--- HelmRelease: volsync/volsync Role: volsync/volsync-leader-election

+++ HelmRelease: volsync/volsync Role: volsync/volsync-leader-election

@@ -1,42 +0,0 @@

----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: Role
-metadata:
-  name: volsync-leader-election
-  labels:
-    app.kubernetes.io/name: volsync
-    app.kubernetes.io/instance: volsync
-    app.kubernetes.io/managed-by: Helm
-rules:
-- apiGroups:
-  - ''
-  resources:
-  - configmaps
-  verbs:
-  - get
-  - list
-  - watch
-  - create
-  - update
-  - patch
-  - delete
-- apiGroups:
-  - coordination.k8s.io
-  resources:
-  - leases
-  verbs:
-  - get
-  - list
-  - watch
-  - create
-  - update
-  - patch
-  - delete
-- apiGroups:
-  - ''
-  resources:
-  - events
-  verbs:
-  - create
-  - patch
-
--- HelmRelease: volsync/volsync RoleBinding: volsync/volsync-leader-election

+++ HelmRelease: volsync/volsync RoleBinding: volsync/volsync-leader-election

@@ -1,18 +0,0 @@

----
-apiVersion: rbac.authorization.k8s.io/v1
-kind: RoleBinding
-metadata:
-  name: volsync-leader-election
-  labels:
-    app.kubernetes.io/name: volsync
-    app.kubernetes.io/instance: volsync
-    app.kubernetes.io/managed-by: Helm
-roleRef:
-  apiGroup: rbac.authorization.k8s.io
-  kind: Role
-  name: volsync-leader-election
-subjects:
-- kind: ServiceAccount
-  name: volsync
-  namespace: volsync
-
--- HelmRelease: volsync/volsync Service: volsync/volsync-metrics

+++ HelmRelease: volsync/volsync Service: volsync/volsync-metrics

@@ -1,18 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  name: volsync-metrics
-  labels:
-    control-plane: volsync-controller
-    app.kubernetes.io/name: volsync
-    app.kubernetes.io/instance: volsync
-    app.kubernetes.io/managed-by: Helm
-spec:
-  ports:
-  - name: https
-    port: 8443
-    targetPort: https
-  selector:
-    control-plane: volsync-controller
-
--- HelmRelease: volsync/volsync Deployment: volsync/volsync

+++ HelmRelease: volsync/volsync Deployment: volsync/volsync

@@ -1,106 +0,0 @@

----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
-  name: volsync
-  labels:
-    control-plane: volsync-controller
-    app.kubernetes.io/name: volsync
-    app.kubernetes.io/instance: volsync
-    app.kubernetes.io/managed-by: Helm
-spec:
-  replicas: 1
-  selector:
-    matchLabels:
-      control-plane: volsync-controller
-      app.kubernetes.io/name: volsync
-      app.kubernetes.io/instance: volsync
-  template:
-    metadata:
-      annotations:
-        kubectl.kubernetes.io/default-container: manager
-      labels:
-        control-plane: volsync-controller
-        app.kubernetes.io/name: volsync
-        app.kubernetes.io/instance: volsync
-    spec:
-      serviceAccountName: volsync
-      securityContext:
-        runAsNonRoot: true
-        runAsUser: 65534
-      containers:
-      - name: kube-rbac-proxy
-        securityContext:
-          allowPrivilegeEscalation: false
-          capabilities:
-            drop:
-            - ALL
-          readOnlyRootFilesystem: true
-        image: quay.io/brancz/kube-rbac-proxy:v0.17.1
-        args:
-        - --secure-listen-address=0.0.0.0:8443
-        - --upstream=http://127.0.0.1:8080/
-        - --logtostderr=true
-        - --tls-min-version=VersionTLS12
-        - --v=0
-        - --ignore-paths=/metrics
-        ports:
-        - containerPort: 8443
-          protocol: TCP
-          name: https
-        resources:
-          limits:
-            cpu: 500m
-            memory: 128Mi
-          requests:
-            cpu: 5m
-            memory: 64Mi
-      - name: manager
-        args:
-        - --health-probe-bind-address=:8081
-        - --metrics-bind-address=127.0.0.1:8080
-        - --leader-elect
-        - --rclone-container-image=ghcr.io/onedr0p/volsync:0.10.0
-        - --restic-container-image=ghcr.io/onedr0p/volsync:0.10.0
-        - --rsync-container-image=quay.io/backube/volsync:0.10.0
-        - --rsync-tls-container-image=quay.io/backube/volsync:0.10.0
-        - --syncthing-container-image=quay.io/backube/volsync:0.10.0
-        - --scc-name=volsync-privileged-mover
-        command:
-        - /manager
-        image: ghcr.io/onedr0p/volsync:0.10.0
-        imagePullPolicy: IfNotPresent
-        livenessProbe:
-          httpGet:
-            path: /healthz
-            port: 8081
-          initialDelaySeconds: 15
-          periodSeconds: 20
-        readinessProbe:
-          httpGet:
-            path: /readyz
-            port: 8081
-          initialDelaySeconds: 5
-          periodSeconds: 10
-        resources:
-          limits:
-            cpu: 1000m
-            memory: 1Gi
-          requests:
-            cpu: 100m
-            memory: 64Mi
-        securityContext:
-          allowPrivilegeEscalation: false
-          capabilities:
-            drop:
-            - ALL
-          readOnlyRootFilesystem: true
-        volumeMounts:
-        - name: tempdir
-          mountPath: /tmp
-      terminationGracePeriodSeconds: 10
-      volumes:
-      - name: tempdir
-        emptyDir:
-          medium: Memory
-

@chrisbsmith chrisbsmith merged commit 3af0d57 into main Oct 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant