paperless-ringtail: redis as native sidecar so migrate init can reach it
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8293f5197c
commit
852eaba3ac
1 changed files with 14 additions and 11 deletions
|
|
@ -33,6 +33,20 @@ spec:
|
|||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
initContainers:
|
||||
# redis as a native sidecar (restartPolicy: Always): starts before
|
||||
# the migrate init and stays running for the app containers, so all
|
||||
# of them reach PAPERLESS_REDIS=localhost:6379.
|
||||
- name: redis
|
||||
image: docker.io/library/redis:kustomized
|
||||
restartPolicy: Always
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
resources:
|
||||
requests:
|
||||
memory: "32Mi"
|
||||
cpu: "10m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
- name: migrate
|
||||
image: registry.ops.eblu.me/blumeops/paperless:kustomized
|
||||
command: ["paperless-ngx", "migrate", "--no-input"]
|
||||
|
|
@ -171,17 +185,6 @@ spec:
|
|||
limits:
|
||||
memory: "512Mi"
|
||||
|
||||
- name: redis
|
||||
image: docker.io/library/redis:kustomized
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
resources:
|
||||
requests:
|
||||
memory: "32Mi"
|
||||
cpu: "10m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
|
||||
volumes:
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue