From 8f480657efd446cf9b8bf0e681ab9585a003ff26 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 2 Sep 2026 19:35:16 +0000 Subject: [PATCH] Delete directory 'apps/obsidian-livesync' --- apps/obsidian-livesync/couchdb-configmap.yaml | 24 ------ .../obsidian-livesync/couchdb-deployment.yaml | 81 ------------------- apps/obsidian-livesync/couchdb-ingress.yaml | 25 ------ apps/obsidian-livesync/couchdb-pvc.yaml | 11 --- .../couchdb-secret.yaml.example | 22 ----- apps/obsidian-livesync/couchdb-service.yaml | 12 --- apps/obsidian-livesync/kustomization.yaml | 10 --- apps/obsidian-livesync/namespace.yaml | 4 - 8 files changed, 189 deletions(-) delete mode 100644 apps/obsidian-livesync/couchdb-configmap.yaml delete mode 100644 apps/obsidian-livesync/couchdb-deployment.yaml delete mode 100644 apps/obsidian-livesync/couchdb-ingress.yaml delete mode 100644 apps/obsidian-livesync/couchdb-pvc.yaml delete mode 100644 apps/obsidian-livesync/couchdb-secret.yaml.example delete mode 100644 apps/obsidian-livesync/couchdb-service.yaml delete mode 100644 apps/obsidian-livesync/kustomization.yaml delete mode 100644 apps/obsidian-livesync/namespace.yaml diff --git a/apps/obsidian-livesync/couchdb-configmap.yaml b/apps/obsidian-livesync/couchdb-configmap.yaml deleted file mode 100644 index d794809..0000000 --- a/apps/obsidian-livesync/couchdb-configmap.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: couchdb-config - namespace: obsidian -data: - livesync.ini: | - [couchdb] - single_node = true - - [chttpd] - bind_address = any - port = 5984 - require_valid_user = true - require_valid_user_except_for_up = true - - [httpd] - enable_cors = true - - [cors] - origins = app://obsidian.md,capacitor://localhost,http://localhost - credentials = true - headers = accept, authorization, content-type, origin, referer - methods = GET, PUT, POST, HEAD, DELETE diff --git a/apps/obsidian-livesync/couchdb-deployment.yaml b/apps/obsidian-livesync/couchdb-deployment.yaml deleted file mode 100644 index 7f525b2..0000000 --- a/apps/obsidian-livesync/couchdb-deployment.yaml +++ /dev/null @@ -1,81 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: couchdb - namespace: obsidian -spec: - replicas: 1 - selector: - matchLabels: - app: couchdb - strategy: - type: Recreate - template: - metadata: - labels: - app: couchdb - spec: - initContainers: - - name: config-copy - image: busybox - command: ["cp", "/cm/livesync.ini", "/local-d/livesync.ini"] - volumeMounts: - - name: couchdb-config - mountPath: /cm - - name: couchdb-local-d - mountPath: /local-d - containers: - - name: couchdb - image: couchdb:3 - env: - - name: COUCHDB_USER - valueFrom: - secretKeyRef: - name: couchdb-secret - key: COUCHDB_USER - - name: COUCHDB_PASSWORD - valueFrom: - secretKeyRef: - name: couchdb-secret - key: COUCHDB_PASSWORD - - name: COUCHDB_SECRET - valueFrom: - secretKeyRef: - name: couchdb-secret - key: COUCHDB_SECRET - ports: - - containerPort: 5984 - name: http - volumeMounts: - - name: couchdb-data - mountPath: /opt/couchdb/data - - name: couchdb-local-d - mountPath: /opt/couchdb/etc/local.d - livenessProbe: - httpGet: - path: /_up - port: 5984 - initialDelaySeconds: 30 - periodSeconds: 30 - readinessProbe: - httpGet: - path: /_up - port: 5984 - initialDelaySeconds: 10 - periodSeconds: 10 - resources: - requests: - cpu: 50m - memory: 128Mi - limits: - cpu: 500m - memory: 256Mi - volumes: - - name: couchdb-data - persistentVolumeClaim: - claimName: couchdb-data - - name: couchdb-config - configMap: - name: couchdb-config - - name: couchdb-local-d - emptyDir: {} diff --git a/apps/obsidian-livesync/couchdb-ingress.yaml b/apps/obsidian-livesync/couchdb-ingress.yaml deleted file mode 100644 index 972a196..0000000 --- a/apps/obsidian-livesync/couchdb-ingress.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: couchdb - namespace: obsidian - annotations: - cert-manager.io/cluster-issuer: letsencrypt-prod - traefik.ingress.kubernetes.io/router.entrypoints: websecure -spec: - ingressClassName: traefik - rules: - - host: obsidian.aleshym.co - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: couchdb - port: - name: http - tls: - - hosts: - - obsidian.aleshym.co - secretName: couchdb-tls diff --git a/apps/obsidian-livesync/couchdb-pvc.yaml b/apps/obsidian-livesync/couchdb-pvc.yaml deleted file mode 100644 index 58eddaf..0000000 --- a/apps/obsidian-livesync/couchdb-pvc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: couchdb-data - namespace: obsidian -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 2Gi diff --git a/apps/obsidian-livesync/couchdb-secret.yaml.example b/apps/obsidian-livesync/couchdb-secret.yaml.example deleted file mode 100644 index 621dbc2..0000000 --- a/apps/obsidian-livesync/couchdb-secret.yaml.example +++ /dev/null @@ -1,22 +0,0 @@ -# DO NOT COMMIT THE REAL VERSION OF THIS FILE. -# apps/obsidian-livesync/couchdb-secret.yaml is gitignored — apply it manually once: -# -# cp apps/obsidian-livesync/couchdb-secret.yaml.example apps/obsidian-livesync/couchdb-secret.yaml -# # fill in real values below, then: -# kubectl apply -f apps/obsidian-livesync/couchdb-secret.yaml -# kubectl annotate secret couchdb-secret -n obsidian \ -# argocd.argoproj.io/sync-options=Prune=false --overwrite -# -# Generate strong values with: -# python3 -c "import secrets; print(secrets.token_urlsafe(18))" # password -# python3 -c "import secrets; print(secrets.token_hex(32))" # COUCHDB_SECRET -apiVersion: v1 -kind: Secret -metadata: - name: couchdb-secret - namespace: obsidian -stringData: - COUCHDB_USER: "admin" - COUCHDB_PASSWORD: "CHANGE_ME" - # Erlang/OTP cookie — must be a long random hex string - COUCHDB_SECRET: "CHANGE_ME_HEX_32_BYTES" diff --git a/apps/obsidian-livesync/couchdb-service.yaml b/apps/obsidian-livesync/couchdb-service.yaml deleted file mode 100644 index 3ec3e1f..0000000 --- a/apps/obsidian-livesync/couchdb-service.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: couchdb - namespace: obsidian -spec: - selector: - app: couchdb - ports: - - name: http - port: 5984 - targetPort: 5984 diff --git a/apps/obsidian-livesync/kustomization.yaml b/apps/obsidian-livesync/kustomization.yaml deleted file mode 100644 index e809388..0000000 --- a/apps/obsidian-livesync/kustomization.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -resources: - - namespace.yaml - - couchdb-configmap.yaml - - couchdb-pvc.yaml - - couchdb-deployment.yaml - - couchdb-service.yaml - - couchdb-ingress.yaml diff --git a/apps/obsidian-livesync/namespace.yaml b/apps/obsidian-livesync/namespace.yaml deleted file mode 100644 index 23f7db7..0000000 --- a/apps/obsidian-livesync/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: obsidian