This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/docspell/restserver/deployment.yaml

51 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: restserver
name: restserver
namespace: docspell
spec:
replicas: 1
selector:
matchLabels:
app: restserver
strategy:
type: Recreate
template:
metadata:
labels:
app: restserver
spec:
containers:
- image: docker.io/eikek0/docspell:restserver-v0.21.0
name: docspell
args:
- /etc/docspell/docspell.conf
envFrom:
- configMapRef:
name: docspell-env
- secretRef:
name: docspell
ports:
- containerPort: 7880
livenessProbe:
httpGet:
path: /
port: 7880
initialDelaySeconds: 15
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 7880
initialDelaySeconds: 15
periodSeconds: 10
volumeMounts:
- name: config-volume
mountPath: /etc/docspell
volumes:
- name: config-volume
configMap:
name: docspell-config