Delete directory 'apps/obsidian-livesync'

This commit is contained in:
2026-09-02 19:35:16 +00:00
parent 1261e238aa
commit 8f480657ef
8 changed files with 0 additions and 189 deletions
@@ -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
@@ -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: {}
@@ -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
-11
View File
@@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: couchdb-data
namespace: obsidian
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
@@ -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"
@@ -1,12 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: couchdb
namespace: obsidian
spec:
selector:
app: couchdb
ports:
- name: http
port: 5984
targetPort: 5984
-10
View File
@@ -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
-4
View File
@@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: obsidian