You are looking at documentation for an alpha release. Not what you want? See Deploy Elasticsearch & Kibana on Kubernetes documentation.
Init containers for plugin downloads
editInit containers for plugin downloads
editYou can install custom plugins before the Elasticsearch container starts with an initContainer
. For example:
- podTemplate: spec: initContainers: - name: install-plugins command: - sh - -c - | bin/elasticsearch-plugin install --batch repository-gcs
You can also override the Elasticsearch container image to use your own image with the plugins already installed. The snapshots doc has more information on both these options. The Kubernetes doc on init containers has more information on their usage as well.
The init container inherits the image of the main container image if one is not explicitly set. It also inherits the volume mounts as long as the name and mount path do not conflict. It also inherits the Pod name and IP address environment variables.