<p>We are using tika to extract text from a lot of documents,
for this we need to give tika service custom config file (xml)</p>
<p>While in docker you can do it just the same as it appears in <a href="https://github.com/apache/tika-docker#custom-config" rel="nofollow noreferrer">tika docker image instructions</a>:</p>
<pre><code>docker run -d -p 9998:9998 -v `pwd`/tika-config.xml:/tika-config.xml apache/tika:1.25-full --config /tika-config.xml
</code></pre>
<p>I don't know how to achieve the same result with k8s deployment</p>
<p>The deployment I'm using now is this:</p>
<pre><code>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
</code></pre>
<p>How can I add a custom config to this image?</p>

NNH
<p>Kubernetes <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/" rel="nofollow noreferrer">configmap</a> can be used to load xml file.</p>
