We are using tika to extract text from a lot of documents, for this we need to give tika service custom config file (xml)
While in docker you can do it just the same as it appears in tika docker image instructions:
docker run -d -p 9998:9998 -v `pwd`/tika-config.xml:/tika-config.xml apache/tika:1.25-full --config /tika-config.xml
I don't know how to achieve the same result with k8s deployment
The deployment I'm using now is this:
apiVersion: apps/v1
kind: Deployment
metadata:
name: tika
labels:
app: tika
spec:
replicas: 1
selector:
matchLabels:
app: tika
template:
metadata:
labels:
app: tika
spec:
containers:
- name: tika
image: apache/tika:2.4.0
How can I add a custom config to this image?