fbaligand / kibana-enhanced-table

Kibana visualization like a Data Table, but with enhanced features like computed columns, filter bar, and “Split Cols” bucket
Apache License 2.0
308 stars 64 forks source link

[Question] Kibana with enhanced-table running on Kubernetes #228

Closed ovidiaconescu closed 2 years ago

ovidiaconescu commented 2 years ago

I'm trying to install Kibana with a plugin via the initContainers functionality and it doesn't seem to create the pod with the plugin in it.

The pod gets created and Kibana works perfectly, but the plugin is not installed using the yaml below.

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
fbaligand commented 2 years ago

Well, without logs, it’s complicated to say what is the problem. I don’t think that the problem is tied to enhanced table plugin itself, but more with the way you install in kubernetes.

However, I recommend to use a custom image than init-containers. More info here: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-kibana-plugins.html

ovidiaconescu commented 2 years ago

Custom image worked!

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
ovidiaconescu commented 2 years ago

dockerfile for reference

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
fbaligand commented 2 years ago

Thanks for feedback, and happy that it finally works fine!