gitops-zurrli/apps/zurrli/archivebox/deployment.yaml

98 lines
2.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: archivebox
spec:
selector:
matchLabels:
app: archivebox
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: archivebox
spec:
containers:
- name: archivebox
args:
- server
- --quick-init
- "0.0.0.0:8000"
image: docker.io/archivebox/archivebox:0.7.2
env:
- name: PUBLIC_INDEX
value: "True"
- name: SAVE_ARCHIVE_DOT_ORG
value: "False"
- name: SEARCH_BACKEND_ENGINE
value: sonic
- name: SEARCH_BACKEND_HOST_NAME
value: localhost
- name: SEARCH_BACKEND_PASSWORD
value: ItDoesNtM4tt3rrITsLOCAL
- name: SAVE_MEDIA
value: "False"
ports:
- containerPort: 8000
protocol: TCP
name: http
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1000m
memory: 1Gi
volumeMounts:
- mountPath: /data
name: archivebox
- name: scheduler
args:
- schedule
- --foreground
- --update
- --every=day
image: docker.io/archivebox/archivebox:0.7.2
env:
- name: TIMEOUT
value: "120"
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1000m
memory: 1Gi
volumeMounts:
- mountPath: /data
name: archivebox
- name: search
image: docker.io/valeriansaliou/sonic:v1.4.8
env:
- name: SEARCH_BACKEND_PASSWORD
value: ItDoesNtM4tt3rrITsLOCAL
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1000m
memory: 1Gi
volumeMounts:
- mountPath: /var/lib/sonic/store
subPath: sonic
name: archivebox
- mountPath: /etc/sonic.cfg
subPath: sonic.cfg
name: sonic-config
restartPolicy: Always
volumes:
- name: archivebox
persistentVolumeClaim:
claimName: archivebox
- name: sonic-config
configMap:
name: sonic-config