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/solr/statefulset.yaml
Tobias Brunner 050f74a394
All checks were successful
continuous-integration/drone/push Build is passing
keep solr up to date
2021-12-12 19:28:28 +01:00

62 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: solr
namespace: docspell
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: solr
serviceName: solr
replicas: 1
template:
metadata:
labels:
app: solr
spec:
terminationGracePeriodSeconds: 10
containers:
- name: solr
image: docker.io/solr:8
imagePullPolicy: Always
command:
- solr-precreate
- docspell
ports:
- name: solr
containerPort: 8983
protocol: TCP
livenessProbe:
httpGet:
path: /solr/docspell/admin/ping
port: 8983
initialDelaySeconds: 30
periodSeconds: 60
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /solr/docspell/admin/ping
port: 8983
initialDelaySeconds: 30
periodSeconds: 60
timeoutSeconds: 10
resources:
requests:
cpu: 100m
memory: 256Mi
volumeMounts:
- mountPath: /var/solr
name: solr
subPath: solr-db
volumeClaimTemplates:
- metadata:
name: solr
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi