# Trouble installing kibana plugin

**URL:** <https://discuss.elastic.co/t/trouble-installing-kibana-plugin/207984>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [November 15, 2019, 2:34am UTC](https://discuss.elastic.co/t/trouble-installing-kibana-plugin/207984 "2019-11-15T02:34:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![terryE](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/terrye/32/57732_2.png) [@terryE](https://discuss.elastic.co/u/terryE)\
**Post date:** [November 15, 2019, 2:34am UTC](https://discuss.elastic.co/t/trouble-installing-kibana-plugin/207984/1 "2019-11-15T02:34:22Z")

</div>

I'm trying to use an init container to install a kibana plugin but I'm getting an error.  
Events:  
Type Reason Age From Message

* * *

Warning ReconciliationError 11m (x18 over 30m) kibana-controller Reconciliation error: Deployment.apps "logs-kb" is invalid: spec.template.spec.initContainers[0].image: Required value

I'm hoping I don't need to specify the image in the podtemplate and can leave it to eck to populate this correctly. Am I doing something wrong?

Here's my kibana spec

apiVersion: [kibana.k8s.elastic.co/v1beta1](http://kibana.k8s.elastic.co/v1beta1)  
kind: Kibana  
metadata:  
name: logs  
namespace: tools  
spec:  
version: 7.4.2  
count: 1  
elasticsearchRef:  
name: logs  
http:  
tls:  
selfSignedCertificate:  
disabled: true  
podTemplate:  
spec:  
initContainers:  
- name: install-plugins  
command: ['sh', '-c', '|bin/kibana-plugin install [https://github.com/sivasamyk/logtrail/releases/download/v0.1.31/logtrail-7.4.1-0.1.31.zip](https://github.com/sivasamyk/logtrail/releases/download/v0.1.31/logtrail-7.4.1-0.1.31.zip)' ]

---

<div class="post-metadata">

**Author:** ![Thibault\_Richard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibault_richard/32/50513_2.png) [@Thibault\_Richard](https://discuss.elastic.co/u/Thibault_Richard)\
**Post date:** [November 15, 2019, 8:05pm UTC](https://discuss.elastic.co/t/trouble-installing-kibana-plugin/207984/2 "2019-11-15T20:05:40Z")

</div>

Hi Terry,

The installation of plugins for Kibana is not yet supported as for Elasticsearch.

You can track the feature here: [https://github.com/elastic/cloud-on-k8s/issues/2123](https://github.com/elastic/cloud-on-k8s/issues/2123).

In a meantime, you can use your own image with the plugins already installed  
or use this workaround:

```
apiVersion: kibana.k8s.elastic.co/v1beta1
kind: Kibana
metadata:
  name: logs
  namespace: tools
spec:
  version: 7.4.1
  count: 1
  elasticsearchRef:
    name: tools
  http:
    tls:
      selfSignedCertificate:
        disabled: true
  podTemplate:
    spec:
      volumes:
      - name: kibana-plugins
        emptyDir: {}
      containers:
      - name: kibana
        volumeMounts:
        - name: kibana-plugins
          mountPath: /usr/share/kibana/plugins
      initContainers:
      - name: install-plugins
        image: docker.elastic.co/kibana/kibana:7.4.1
        command:
        - sh
        - -c
        - bin/kibana-plugin install https://github.com/sivasamyk/logtrail/releases/download/v0.1.31/logtrail-7.4.1-0.1.31.zip
        volumeMounts:
        - name: kibana-plugins
          mountPath: /usr/share/kibana/plugins
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2022, 7:33am UTC](https://discuss.elastic.co/t/trouble-installing-kibana-plugin/207984/3 "2022-11-04T07:33:28Z")

</div>


