From 4354a6b120c866501c133209e4bbbf7b336b5870 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 18 Oct 2025 10:32:29 -0500 Subject: [PATCH] remove adguard --- home/cluster/adguard/deployment-simple.yaml | 38 ---------------- home/cluster/adguard/deployment.yaml | 50 --------------------- home/cluster/adguard/migrate-data.yaml | 36 --------------- home/cluster/adguard/namespace.yaml | 4 -- home/cluster/adguard/pvc-local.yaml | 25 ----------- home/cluster/adguard/pvc-rbd.yaml | 25 ----------- home/cluster/adguard/pvc.yaml | 25 ----------- home/cluster/adguard/service.yaml | 22 --------- 8 files changed, 225 deletions(-) delete mode 100644 home/cluster/adguard/deployment-simple.yaml delete mode 100644 home/cluster/adguard/deployment.yaml delete mode 100644 home/cluster/adguard/migrate-data.yaml delete mode 100644 home/cluster/adguard/namespace.yaml delete mode 100644 home/cluster/adguard/pvc-local.yaml delete mode 100644 home/cluster/adguard/pvc-rbd.yaml delete mode 100644 home/cluster/adguard/pvc.yaml delete mode 100644 home/cluster/adguard/service.yaml diff --git a/home/cluster/adguard/deployment-simple.yaml b/home/cluster/adguard/deployment-simple.yaml deleted file mode 100644 index 0142fc1..0000000 --- a/home/cluster/adguard/deployment-simple.yaml +++ /dev/null @@ -1,38 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: adguard - namespace: adguard -spec: - replicas: 1 - selector: - matchLabels: - app: adguard - template: - metadata: - labels: - app: adguard - spec: - containers: - - name: adguard - image: adguard/adguardhome:latest - ports: - - containerPort: 3000 # Web UI - name: web - - containerPort: 53 # DNS - name: dns - protocol: UDP - - containerPort: 53 # DNS TCP - name: dns-tcp - protocol: TCP - - containerPort: 80 # HTTP - name: http - - containerPort: 443 # HTTPS - name: https - resources: - requests: - memory: "256Mi" - cpu: "100m" - limits: - memory: "512Mi" - cpu: "500m" \ No newline at end of file diff --git a/home/cluster/adguard/deployment.yaml b/home/cluster/adguard/deployment.yaml deleted file mode 100644 index d421b93..0000000 --- a/home/cluster/adguard/deployment.yaml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: adguard - namespace: adguard -spec: - replicas: 1 - selector: - matchLabels: - app: adguard - template: - metadata: - labels: - app: adguard - spec: - containers: - - name: adguard - image: adguard/adguardhome:latest - ports: - - containerPort: 3000 # Web UI - name: web - - containerPort: 53 # DNS - name: dns - protocol: UDP - - containerPort: 53 # DNS TCP - name: dns-tcp - protocol: TCP - - containerPort: 80 # HTTP - name: http - - containerPort: 443 # HTTPS - name: https - volumeMounts: - - name: config - mountPath: /opt/adguardhome/conf - - name: data - mountPath: /opt/adguardhome/work - resources: - requests: - memory: "256Mi" - cpu: "100m" - limits: - memory: "512Mi" - cpu: "500m" - volumes: - - name: config - persistentVolumeClaim: - claimName: adguard-config-rbd - - name: data - persistentVolumeClaim: - claimName: adguard-data-rbd \ No newline at end of file diff --git a/home/cluster/adguard/migrate-data.yaml b/home/cluster/adguard/migrate-data.yaml deleted file mode 100644 index eb13572..0000000 --- a/home/cluster/adguard/migrate-data.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: adguard-data-migration - namespace: adguard -spec: - template: - spec: - restartPolicy: Never - containers: - - name: migrate - image: busybox:1.36 - command: - - sh - - -c - - | - echo "Starting AdGuard data migration..." - if [ -d /old-data/AdGuardHome ]; then - echo "Copying AdGuard data..." - cp -av /old-data/* /new-data/ - else - echo "No data to migrate" - fi - echo "Migration complete!" - volumeMounts: - - name: old-data - mountPath: /old-data - - name: new-data - mountPath: /new-data - volumes: - - name: old-data - persistentVolumeClaim: - claimName: adguard-data - - name: new-data - persistentVolumeClaim: - claimName: adguard-data-rbd \ No newline at end of file diff --git a/home/cluster/adguard/namespace.yaml b/home/cluster/adguard/namespace.yaml deleted file mode 100644 index 9aa98c6..0000000 --- a/home/cluster/adguard/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: adguard \ No newline at end of file diff --git a/home/cluster/adguard/pvc-local.yaml b/home/cluster/adguard/pvc-local.yaml deleted file mode 100644 index 79ec9e5..0000000 --- a/home/cluster/adguard/pvc-local.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: adguard-config - namespace: adguard -spec: - accessModes: - - ReadWriteOnce - storageClassName: local-path - resources: - requests: - storage: 2Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: adguard-data - namespace: adguard -spec: - accessModes: - - ReadWriteOnce - storageClassName: local-path - resources: - requests: - storage: 10Gi \ No newline at end of file diff --git a/home/cluster/adguard/pvc-rbd.yaml b/home/cluster/adguard/pvc-rbd.yaml deleted file mode 100644 index 81f66ff..0000000 --- a/home/cluster/adguard/pvc-rbd.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: adguard-config-rbd - namespace: adguard -spec: - accessModes: - - ReadWriteOnce - storageClassName: ceph-rbd - resources: - requests: - storage: 2Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: adguard-data-rbd - namespace: adguard -spec: - accessModes: - - ReadWriteOnce - storageClassName: ceph-rbd - resources: - requests: - storage: 10Gi \ No newline at end of file diff --git a/home/cluster/adguard/pvc.yaml b/home/cluster/adguard/pvc.yaml deleted file mode 100644 index d8425d5..0000000 --- a/home/cluster/adguard/pvc.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: adguard-config - namespace: adguard -spec: - accessModes: - - ReadWriteOnce - storageClassName: ceph-rbd - resources: - requests: - storage: 2Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: adguard-data - namespace: adguard -spec: - accessModes: - - ReadWriteOnce - storageClassName: ceph-rbd - resources: - requests: - storage: 10Gi \ No newline at end of file diff --git a/home/cluster/adguard/service.yaml b/home/cluster/adguard/service.yaml deleted file mode 100644 index b6961d4..0000000 --- a/home/cluster/adguard/service.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: adguard - namespace: adguard -spec: - type: LoadBalancer - selector: - app: adguard - ports: - - port: 80 - targetPort: 3000 - protocol: TCP - name: web - - port: 53 - targetPort: 53 - protocol: UDP - name: dns-udp - - port: 53 - targetPort: 53 - protocol: TCP - name: dns-tcp \ No newline at end of file