4b801e3444
Adds apps/notesnook (namespace, config, mongo rs0 StatefulSet, minio, identity/sync/sse/monograph deployments + Traefik/cert-manager ingresses) and argocd/notesnook.yaml. Secret applied out-of-band (only .example committed). Includes design spec + implementation plan under docs/superpowers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: notesnook-sync
|
|
namespace: notesnook
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: notesnook-sync
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: notesnook-sync
|
|
spec:
|
|
containers:
|
|
- name: sync
|
|
image: streetwriters/notesnook-sync:latest
|
|
envFrom:
|
|
- configMapRef: { name: notesnook-config }
|
|
- secretRef: { name: notesnook-secret }
|
|
env:
|
|
- name: MONGODB_CONNECTION_STRING
|
|
value: "mongodb://notesnook-db:27017/?replSet=rs0"
|
|
- name: MONGODB_DATABASE_NAME
|
|
value: "notesnook"
|
|
ports:
|
|
- { containerPort: 5264, name: http }
|
|
readinessProbe:
|
|
httpGet: { path: /health, port: 5264 }
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|
|
livenessProbe:
|
|
httpGet: { path: /health, port: 5264 }
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
resources:
|
|
requests: { cpu: "50m", memory: "128Mi" }
|
|
limits: { cpu: "1000m", memory: "512Mi" }
|