<p>I'm trying to install Kibana with a plugin via the <code>initContainers</code> functionality and it doesn't seem to create the pod with the plugin in it.</p>
<p>The pod gets created and Kibana works perfectly, but the plugin is not installed using the yaml below.</p>
<p><a href="https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-init-containers-plugin-downloads.html" rel="nofollow noreferrer">initContainers Documentation</a></p>
<pre><code>apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
spec:
  version: 7.11.2
  count: 1
  elasticsearchRef:
    name: quickstart
  podTemplate:
    spec:
      initContainers:
      - name: install-plugins
        command:
        - sh
        - -c
        - |
          bin/kibana-plugin install https://github.com/fbaligand/kibana-enhanced-table/releases/download/v1.11.2/enhanced-table-1.11.2_7.11.2.zip
</code></pre>

Ovi
<p>Got Kibana working with plugins by using a custom container image</p>
<p>dockerfile</p>
<pre><code>FROM docker.elastic.co/kibana/kibana:7.11.2
RUN /usr/share/kibana/bin/kibana-plugin install https://github.com/fbaligand/kibana-enhanced-table/releases/download/v1.11.2/enhanced-table-1.11.2_7.11.2.zip
RUN /usr/share/kibana/bin/kibana --optimize
</code></pre>
<p>yaml</p>
<pre><code>apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: quickstart
spec:
  version: 7.11.2
  image: my-conatiner-path/kibana-with-plugins:7.11.2
  count: 1
  elasticsearchRef:
    name: quickstart
</code></pre>
