Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
033a69bc1e | ||
|
|
8a5d23b560 | ||
|
|
fb46fb48b5 |
No files matched your search
@@ -0,0 +1,16 @@
|
||||
PAPERLESS_URL=https://papers.forust.xyz
|
||||
PAPERLESS_ALLOWED_HOSTS=papers.forust.xyz,papers.workstation.internal
|
||||
PAPERLESS_CSRF_TRUSTED_ORIGINS=https://papers.forust.xyz,https://papers.workstation.internal
|
||||
PAPERLESS_TIME_ZONE=Europe/Bratislava
|
||||
PAPERLESS_REDIS=redis://valkey:6379
|
||||
PAPERLESS_DBENGINE=postgresql
|
||||
PAPERLESS_DBHOST=homelab-postgres
|
||||
PAPERLESS_DBNAME=paperless
|
||||
PAPERLESS_DBUSER=paperless
|
||||
PAPERLESS_DBPASS=<SET_THE_SAME_VALUE_AS_SHARED_POSTGRES_PAPERLESS_DB_PASSWORD>
|
||||
PAPERLESS_OCR_LANGUAGE=rus+eng
|
||||
PAPERLESS_OCR_LANGUAGES=rus
|
||||
PAPERLESS_TASK_WORKERS=1
|
||||
PAPERLESS_ADMIN_USER=admin
|
||||
PAPERLESS_SECRET_KEY=<GENERATE_WITH_python3_-c_import_secrets;_print(secrets.token_urlsafe(64))>
|
||||
PAPERLESS_ADMIN_PASSWORD=<SET_A_LONG_UNIQUE_PASSWORD>
|
||||
@@ -0,0 +1,79 @@
|
||||
# Paperless-ngx
|
||||
|
||||
Paperless-ngx runs in the `paperless` namespace. It uses the shared PostgreSQL
|
||||
service in the `database` namespace and Valkey for its task queue. The document
|
||||
library, exports, and consume folder are stored on the `local-path-retain`
|
||||
volume. The PVC size is fixed at 50 GiB because this storage class does not
|
||||
support volume expansion.
|
||||
|
||||
The local route is `https://papers.workstation.internal`; the public route is
|
||||
`https://papers.forust.xyz`. Both use TLS. Paperless keeps its own login and
|
||||
password authentication. OCR is configured for Russian and English documents.
|
||||
Keep `papers.forust.xyz` in the existing Cloudflare DDNS `DOMAINS` setting so
|
||||
the public record follows the workstation address.
|
||||
|
||||
## Compose alternative
|
||||
|
||||
`compose.yaml` is an alternative to the active Kubernetes deployment. Do not
|
||||
run both at the same time: they use the same Paperless database and route
|
||||
names, but have separate document volumes.
|
||||
|
||||
The Compose variant uses the shared Compose PostgreSQL service on the
|
||||
`homelab-database` Docker network. It does not start a PostgreSQL container.
|
||||
The shared Compose database must be running and must have the `paperless`
|
||||
database and role. Set `PAPERLESS_DBPASS` to the same password as
|
||||
`PAPERLESS_DB_PASSWORD` in the shared PostgreSQL configuration.
|
||||
|
||||
To prepare and start the Compose variant:
|
||||
|
||||
```sh
|
||||
cp paperless/.env.example paperless/.env
|
||||
cd paperless
|
||||
docker compose -f compose.yaml config --quiet
|
||||
docker compose -f compose.yaml up -d
|
||||
```
|
||||
|
||||
Create unique values for `PAPERLESS_SECRET_KEY` and
|
||||
`PAPERLESS_ADMIN_PASSWORD` in `.env`. This directory has no Compose `active`
|
||||
marker, so the repository deploy workflow does not start this alternative.
|
||||
Stop the Kubernetes Paperless deployment before switching to Compose. Back up
|
||||
and migrate the media files as well as the database; the Compose named volumes
|
||||
are separate from the Kubernetes PVC.
|
||||
|
||||
## Prepare the secret
|
||||
|
||||
Create `k8s/secrets.yaml` on the workstation from
|
||||
`k8s/secrets.yaml.example`. Set a unique random `PAPERLESS_SECRET_KEY`, a long
|
||||
`PAPERLESS_ADMIN_PASSWORD`, and `PAPERLESS_DB_PASSWORD`.
|
||||
|
||||
Add the same `PAPERLESS_DB_PASSWORD` value to the local
|
||||
`postgres/k8s/secrets.yaml` file. Keep both secret files out of Git. The
|
||||
database bootstrap Job creates the `paperless` role and database from the
|
||||
shared PostgreSQL secret. The job runs in the `database` namespace and needs
|
||||
that namespace's existing `postgres-shared-secrets` Secret.
|
||||
|
||||
For example, generate a key with:
|
||||
|
||||
```sh
|
||||
python3 -c 'import secrets; print(secrets.token_urlsafe(64))'
|
||||
```
|
||||
|
||||
Then apply the secret before enabling the service:
|
||||
|
||||
```sh
|
||||
kubectl apply -f paperless/k8s/namespace.yaml
|
||||
kubectl apply -f postgres/k8s/secrets.yaml
|
||||
kubectl apply -f paperless/k8s/secrets.yaml
|
||||
```
|
||||
|
||||
The normal deploy workflow applies the remaining manifests when
|
||||
`paperless/k8s/active` is present. Verify the rollout and ingress after deploy:
|
||||
|
||||
```sh
|
||||
kubectl -n paperless rollout status deployment/paperless
|
||||
kubectl -n paperless get pods,pvc,services
|
||||
```
|
||||
|
||||
Back up the `paperless-data` PVC and the shared PostgreSQL database. The PVC
|
||||
contains the originals, archived PDFs, and export/consume folders. Valkey has
|
||||
no persistent volume; queued tasks are recreated after a restart.
|
||||
@@ -0,0 +1,77 @@
|
||||
services:
|
||||
paperless:
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:3.2.1
|
||||
container_name: paperless
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
valkey:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "2.0"
|
||||
memory: 2G
|
||||
reservations:
|
||||
cpus: "0.10"
|
||||
memory: 512M
|
||||
volumes:
|
||||
- paperless-data:/usr/src/paperless/data
|
||||
- paperless-media:/usr/src/paperless/media
|
||||
- paperless-export:/usr/src/paperless/export
|
||||
- paperless-consume:/usr/src/paperless/consume
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
- database
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=proxy"
|
||||
- "traefik.http.services.paperless-compose.loadbalancer.server.port=8000"
|
||||
- "traefik.http.routers.paperless-compose.rule=Host(`papers.forust.xyz`)"
|
||||
- "traefik.http.routers.paperless-compose.entrypoints=websecure"
|
||||
- "traefik.http.routers.paperless-compose.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.paperless-compose-local.rule=Host(`papers.workstation.internal`)"
|
||||
- "traefik.http.routers.paperless-compose-local.entrypoints=websecure"
|
||||
- "traefik.http.routers.paperless-compose-local.tls=true"
|
||||
|
||||
valkey:
|
||||
image: valkey/valkey:9.0.3-alpine
|
||||
container_name: paperless-valkey
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- valkey-server
|
||||
- --save
|
||||
- ""
|
||||
- --appendonly
|
||||
- "no"
|
||||
healthcheck:
|
||||
test: ["CMD", "valkey-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.25"
|
||||
memory: 256M
|
||||
reservations:
|
||||
cpus: "0.025"
|
||||
memory: 64M
|
||||
networks:
|
||||
- default
|
||||
|
||||
volumes:
|
||||
paperless-data:
|
||||
paperless-media:
|
||||
paperless-export:
|
||||
paperless-consume:
|
||||
|
||||
networks:
|
||||
default:
|
||||
proxy:
|
||||
external: true
|
||||
database:
|
||||
name: homelab-database
|
||||
external: true
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: paperless-prod-tls
|
||||
namespace: paperless
|
||||
spec:
|
||||
secretName: paperless-prod-tls
|
||||
dnsNames:
|
||||
- papers.forust.xyz
|
||||
issuerRef:
|
||||
name: letsencrypt-prod
|
||||
kind: ClusterIssuer
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: internal-wildcard-tls
|
||||
namespace: paperless
|
||||
spec:
|
||||
secretName: internal-wildcard-tls
|
||||
dnsNames:
|
||||
- "*.workstation.internal"
|
||||
- "*.gigaforust.internal"
|
||||
- workstation.internal
|
||||
- gigaforust.internal
|
||||
issuerRef:
|
||||
name: internal-ca
|
||||
kind: ClusterIssuer
|
||||
@@ -0,0 +1,58 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: paperless-database-init
|
||||
namespace: database
|
||||
spec:
|
||||
backoffLimit: 5
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: paperless-database-init
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
containers:
|
||||
- name: create-database
|
||||
image: postgres:17.11-alpine
|
||||
command:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
- |
|
||||
PGPASSWORD="$POSTGRES_ADMIN_PASSWORD" psql \
|
||||
--host postgres \
|
||||
--username postgres \
|
||||
--dbname postgres \
|
||||
--set ON_ERROR_STOP=1 \
|
||||
--set paperless_password="$PAPERLESS_DB_PASSWORD" <<'SQL'
|
||||
SELECT format(
|
||||
'CREATE ROLE paperless LOGIN PASSWORD %L',
|
||||
:'paperless_password'
|
||||
)
|
||||
WHERE NOT EXISTS (
|
||||
SELECT FROM pg_roles WHERE rolname = 'paperless'
|
||||
)
|
||||
\gexec
|
||||
SELECT format('CREATE DATABASE paperless OWNER paperless')
|
||||
WHERE NOT EXISTS (
|
||||
SELECT FROM pg_database WHERE datname = 'paperless'
|
||||
)
|
||||
\gexec
|
||||
SQL
|
||||
env:
|
||||
- name: POSTGRES_ADMIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgres-shared-secrets
|
||||
key: POSTGRES_ADMIN_PASSWORD
|
||||
- name: PAPERLESS_DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgres-shared-secrets
|
||||
key: PAPERLESS_DB_PASSWORD
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 32Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
@@ -0,0 +1,33 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: paperless-prod
|
||||
namespace: paperless
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`papers.forust.xyz`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: paperless
|
||||
port: 8000
|
||||
tls:
|
||||
secretName: paperless-prod-tls
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: paperless-local
|
||||
namespace: paperless
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`papers.workstation.internal`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: paperless
|
||||
port: 8000
|
||||
tls:
|
||||
secretName: internal-wildcard-tls
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: paperless
|
||||
@@ -0,0 +1,39 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: paperless-ingress
|
||||
namespace: paperless
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: paperless
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: traefik
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8000
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: paperless-valkey-ingress
|
||||
namespace: paperless
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: paperless-valkey
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: paperless
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 6379
|
||||
@@ -0,0 +1,210 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: paperless
|
||||
namespace: paperless
|
||||
labels:
|
||||
app.kubernetes.io/name: paperless
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: paperless
|
||||
ports:
|
||||
- name: http
|
||||
port: 8000
|
||||
targetPort: http
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: paperless
|
||||
namespace: paperless
|
||||
labels:
|
||||
app.kubernetes.io/name: paperless
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: paperless
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: paperless
|
||||
spec:
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: paperless
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:3.2.1
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8000
|
||||
env:
|
||||
- name: PAPERLESS_URL
|
||||
value: https://papers.forust.xyz
|
||||
- name: PAPERLESS_ALLOWED_HOSTS
|
||||
value: papers.forust.xyz,papers.workstation.internal
|
||||
- name: PAPERLESS_CSRF_TRUSTED_ORIGINS
|
||||
value: https://papers.forust.xyz,https://papers.workstation.internal
|
||||
- name: PAPERLESS_TIME_ZONE
|
||||
value: Europe/Bratislava
|
||||
- name: PAPERLESS_REDIS
|
||||
value: redis://paperless-valkey:6379
|
||||
- name: PAPERLESS_DBENGINE
|
||||
value: postgresql
|
||||
- name: PAPERLESS_DBHOST
|
||||
value: postgres.database.svc.cluster.local
|
||||
- name: PAPERLESS_DBNAME
|
||||
value: paperless
|
||||
- name: PAPERLESS_DBUSER
|
||||
value: paperless
|
||||
- name: PAPERLESS_DBPASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: paperless-secrets
|
||||
key: PAPERLESS_DB_PASSWORD
|
||||
- name: PAPERLESS_OCR_LANGUAGE
|
||||
value: rus+eng
|
||||
- name: PAPERLESS_OCR_LANGUAGES
|
||||
value: rus
|
||||
- name: PAPERLESS_TASK_WORKERS
|
||||
value: "1"
|
||||
- name: PAPERLESS_ADMIN_USER
|
||||
value: admin
|
||||
- name: PAPERLESS_SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: paperless-secrets
|
||||
key: PAPERLESS_SECRET_KEY
|
||||
- name: PAPERLESS_ADMIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: paperless-secrets
|
||||
key: PAPERLESS_ADMIN_PASSWORD
|
||||
volumeMounts:
|
||||
- name: documents
|
||||
mountPath: /usr/src/paperless/data
|
||||
subPath: data
|
||||
- name: documents
|
||||
mountPath: /usr/src/paperless/media
|
||||
subPath: media
|
||||
- name: documents
|
||||
mountPath: /usr/src/paperless/export
|
||||
subPath: export
|
||||
- name: documents
|
||||
mountPath: /usr/src/paperless/consume
|
||||
subPath: consume
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
httpHeaders:
|
||||
- name: Host
|
||||
value: papers.workstation.internal
|
||||
failureThreshold: 60
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
httpHeaders:
|
||||
- name: Host
|
||||
value: papers.workstation.internal
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
httpHeaders:
|
||||
- name: Host
|
||||
value: papers.workstation.internal
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: "2"
|
||||
memory: 2Gi
|
||||
volumes:
|
||||
- name: documents
|
||||
persistentVolumeClaim:
|
||||
claimName: paperless-data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: paperless-data
|
||||
namespace: paperless
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: local-path-retain
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: paperless-valkey
|
||||
namespace: paperless
|
||||
labels:
|
||||
app.kubernetes.io/name: paperless-valkey
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: paperless-valkey
|
||||
ports:
|
||||
- name: redis
|
||||
port: 6379
|
||||
targetPort: redis
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: paperless-valkey
|
||||
namespace: paperless
|
||||
labels:
|
||||
app.kubernetes.io/name: paperless-valkey
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: paperless-valkey
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: paperless-valkey
|
||||
spec:
|
||||
containers:
|
||||
- name: valkey
|
||||
image: valkey/valkey:9.0.3-alpine
|
||||
args:
|
||||
- valkey-server
|
||||
- --save
|
||||
- ""
|
||||
- --appendonly
|
||||
- "no"
|
||||
ports:
|
||||
- name: redis
|
||||
containerPort: 6379
|
||||
readinessProbe:
|
||||
exec:
|
||||
command: ["valkey-cli", "ping"]
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
exec:
|
||||
command: ["valkey-cli", "ping"]
|
||||
periodSeconds: 30
|
||||
resources:
|
||||
requests:
|
||||
cpu: 25m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: paperless-secrets
|
||||
namespace: paperless
|
||||
type: Opaque
|
||||
stringData:
|
||||
PAPERLESS_SECRET_KEY: "<GENERATE_WITH_python3_-c_import_secrets;_print(secrets.token_urlsafe(64))>"
|
||||
PAPERLESS_ADMIN_PASSWORD: "<SET_A_LONG_UNIQUE_PASSWORD>"
|
||||
PAPERLESS_DB_PASSWORD: "<SET_THE_SAME_VALUE_AS_database_PAPERLESS_DB_PASSWORD>"
|
||||
@@ -4,4 +4,5 @@ GITEA_DB_PASSWORD=
|
||||
NETBOX_DB_PASSWORD=
|
||||
NETRONOME_DB_PASSWORD=
|
||||
PENPOT_DB_PASSWORD=
|
||||
PAPERLESS_DB_PASSWORD=
|
||||
STATUSPAGE_DB_PASSWORD=
|
||||
+12
-11
@@ -1,20 +1,21 @@
|
||||
# Shared PostgreSQL
|
||||
|
||||
This directory contains the shared PostgreSQL 17 deployment for Authentik,
|
||||
Gitea, NetBox, Netronome, and Statuspage. It creates one database and one login role
|
||||
per service. Per-service standalone databases were removed after the
|
||||
migration (Sep 2026); Penpot stays on its own compose PostgreSQL (archived,
|
||||
not part of the shared instance).
|
||||
Gitea, NetBox, Netronome, Paperless-ngx, and Statuspage. It creates one database
|
||||
and one login role per service. Per-service standalone databases were removed
|
||||
after the migration (Sep 2026); Penpot stays on its own compose PostgreSQL
|
||||
(archived, not part of the shared instance).
|
||||
|
||||
## Compatibility baseline
|
||||
|
||||
| Service | Current application | Shared PostgreSQL 17 |
|
||||
| ---------- | ------------------- | -------------------------------------- |
|
||||
| Authentik | 2025.10.x | Supported (Authentik requires 14+) |
|
||||
| Gitea | 1.27.3 | Supported (Gitea requires 12+) |
|
||||
| NetBox | 4.7.x | Supported (NetBox 4.x requires 13+) |
|
||||
| Netronome | 0.14.0 | Supported (upstream's example uses 17) |
|
||||
| Statuspage | custom | Supported |
|
||||
| Service | Current application | Shared PostgreSQL 17 |
|
||||
| ------------- | ------------------- | -------------------------------------- |
|
||||
| Authentik | 2025.10.x | Supported (Authentik requires 14+) |
|
||||
| Gitea | 1.27.3 | Supported (Gitea requires 12+) |
|
||||
| NetBox | 4.7.x | Supported (NetBox 4.x requires 13+) |
|
||||
| Netronome | 0.14.0 | Supported (upstream's example uses 17) |
|
||||
| Paperless-ngx | 3.2.1 | Supported |
|
||||
| Statuspage | custom | Supported |
|
||||
|
||||
A major-version change must use a logical dump/restore; changing only the
|
||||
image tag while keeping a data directory is not supported.
|
||||
|
||||
@@ -6,6 +6,7 @@ set -euo pipefail
|
||||
: "${NETBOX_DB_PASSWORD:?NETBOX_DB_PASSWORD is required}"
|
||||
: "${NETRONOME_DB_PASSWORD:?NETRONOME_DB_PASSWORD is required}"
|
||||
: "${PENPOT_DB_PASSWORD:?PENPOT_DB_PASSWORD is required}"
|
||||
: "${PAPERLESS_DB_PASSWORD:?PAPERLESS_DB_PASSWORD is required}"
|
||||
: "${STATUSPAGE_DB_PASSWORD:?STATUSPAGE_DB_PASSWORD is required}"
|
||||
|
||||
create_role_and_database() {
|
||||
@@ -27,4 +28,5 @@ create_role_and_database gitea gitea "$GITEA_DB_PASSWORD"
|
||||
create_role_and_database netbox netbox "$NETBOX_DB_PASSWORD"
|
||||
create_role_and_database netronome netronome "$NETRONOME_DB_PASSWORD"
|
||||
create_role_and_database penpot penpot "$PENPOT_DB_PASSWORD"
|
||||
create_role_and_database paperless paperless "$PAPERLESS_DB_PASSWORD"
|
||||
create_role_and_database statuspage statuspage "$STATUSPAGE_DB_PASSWORD"
|
||||
@@ -26,6 +26,18 @@ spec:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: penpot
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: paperless
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: paperless
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: database
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: paperless-database-init
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: statuspage
|
||||
|
||||
@@ -126,6 +126,7 @@ data:
|
||||
: "${NETBOX_DB_PASSWORD:?NETBOX_DB_PASSWORD is required}"
|
||||
: "${NETRONOME_DB_PASSWORD:?NETRONOME_DB_PASSWORD is required}"
|
||||
: "${PENPOT_DB_PASSWORD:?PENPOT_DB_PASSWORD is required}"
|
||||
: "${PAPERLESS_DB_PASSWORD:?PAPERLESS_DB_PASSWORD is required}"
|
||||
: "${STATUSPAGE_DB_PASSWORD:?STATUSPAGE_DB_PASSWORD is required}"
|
||||
|
||||
create_role_and_database() {
|
||||
@@ -147,4 +148,5 @@ data:
|
||||
create_role_and_database netbox netbox "$NETBOX_DB_PASSWORD"
|
||||
create_role_and_database netronome netronome "$NETRONOME_DB_PASSWORD"
|
||||
create_role_and_database penpot penpot "$PENPOT_DB_PASSWORD"
|
||||
create_role_and_database paperless paperless "$PAPERLESS_DB_PASSWORD"
|
||||
create_role_and_database statuspage statuspage "$STATUSPAGE_DB_PASSWORD"
|
||||
@@ -11,4 +11,5 @@ stringData:
|
||||
NETBOX_DB_PASSWORD: ""
|
||||
NETRONOME_DB_PASSWORD: ""
|
||||
PENPOT_DB_PASSWORD: ""
|
||||
PAPERLESS_DB_PASSWORD: ""
|
||||
STATUSPAGE_DB_PASSWORD: ""
|
||||
Reference in new issue
Block a user