Add paperless-ngx (v2.20.13) as a new ArgoCD-managed service on indri with Authentik OIDC SSO, PostgreSQL on blumeops-pg, Redis sidecar, and NFS document storage on sifaka. Includes Dockerfile built from forge mirror, full k8s manifests, Caddy route, 1Password secrets, and reference documentation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
124 lines
3.7 KiB
YAML
124 lines
3.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: paperless
|
|
namespace: paperless
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: paperless
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: paperless
|
|
spec:
|
|
securityContext:
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: paperless
|
|
image: registry.ops.eblu.me/blumeops/paperless:kustomized
|
|
ports:
|
|
- containerPort: 8000
|
|
name: http
|
|
env:
|
|
- name: PAPERLESS_URL
|
|
value: "https://paperless.ops.eblu.me"
|
|
- name: PAPERLESS_REDIS
|
|
value: "redis://localhost:6379"
|
|
- name: PAPERLESS_DBHOST
|
|
value: "pg.ops.eblu.me"
|
|
- name: PAPERLESS_DBPORT
|
|
value: "5432"
|
|
- name: PAPERLESS_DBNAME
|
|
value: "paperless"
|
|
- name: PAPERLESS_DBUSER
|
|
value: "paperless"
|
|
- name: PAPERLESS_DBPASS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-secrets
|
|
key: db-password
|
|
- name: PAPERLESS_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-secrets
|
|
key: secret-key
|
|
- name: PAPERLESS_TIME_ZONE
|
|
value: "America/Los_Angeles"
|
|
- name: PAPERLESS_OCR_LANGUAGE
|
|
value: "eng"
|
|
- name: PAPERLESS_TASK_WORKERS
|
|
value: "1"
|
|
# Admin account (created on first startup)
|
|
- name: PAPERLESS_ADMIN_USER
|
|
value: "erich"
|
|
- name: PAPERLESS_ADMIN_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-secrets
|
|
key: admin-password
|
|
- name: PAPERLESS_ADMIN_MAIL
|
|
value: "erich@eblu.me"
|
|
# OIDC via Authentik
|
|
# Full JSON blob pulled from 1Password (includes client secret)
|
|
- name: PAPERLESS_APPS
|
|
value: "allauth.socialaccount.providers.openid_connect"
|
|
- name: PAPERLESS_SOCIALACCOUNT_PROVIDERS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: paperless-secrets
|
|
key: socialaccount-providers
|
|
- name: PAPERLESS_SOCIALACCOUNT_ALLOW_SIGNUPS
|
|
value: "true"
|
|
- name: PAPERLESS_SOCIAL_AUTO_SIGNUP
|
|
value: "true"
|
|
- name: PAPERLESS_REDIRECT_LOGIN_TO_SSO
|
|
value: "false"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /usr/src/paperless/data
|
|
- name: media
|
|
mountPath: /usr/src/paperless/media
|
|
- name: consume
|
|
mountPath: /usr/src/paperless/consume
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "2Gi"
|
|
cpu: "1000m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
|
|
- name: redis
|
|
image: docker.io/library/redis:kustomized
|
|
ports:
|
|
- containerPort: 6379
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "128Mi"
|
|
|
|
volumes:
|
|
- name: data
|
|
emptyDir: {}
|
|
- name: media
|
|
persistentVolumeClaim:
|
|
claimName: paperless-media
|
|
- name: consume
|
|
emptyDir: {}
|