'Customise Solr deployment on GCP kubernetes cluster

How we deployed Solr on GCP Kubernetes cluster:

  1. Written YAML file which deploys solr:8.11.1
  2. Claims a persistent volume

Now we want to put our own solr indexing files on the created pod.

For now, we copied the files by kubectl cp command. How can we create a Docker Image in such a way that we will put the config files in the existing pod and then restart the pod to pick the updated cores? We do not want to create a pod every time in case of schema changes.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source