komljen / helm-charts

Helm charts - Apps for Kubernetes
154 stars 102 forks source link

StorageClass issue #11

Open aboeglin opened 5 years ago

aboeglin commented 5 years ago

According to comments in this post : https://akomljen.com/get-kubernetes-logs-with-efk-stack-in-5-minutes/, it seems a lot of people struggle to get it running.

k get pods -n logging                                      
NAME                                                 READY   STATUS    RESTARTS   AGE
efk-kibana-fc4bbccb7-ppc9x                           0/1     Running   0          14m
es-client-efk-cluster-857fd4c567-ngfwn               0/1     Running   3          13m
es-data-efk-cluster-default-0                        0/1     Pending   0          13m
es-master-efk-cluster-default-0                      0/1     Running   0          13m
es-operator-elasticsearch-operator-fbbd9556c-wv8jn   1/1     Running   1          19m
fluent-bit-b65vt                                     1/1     Running   0          14m
fluent-bit-rx2gk                                     1/1     Running   0          14m

I'm currently in such a state as well. I installed the chart through terraform helm provider. Installation went fine, but it doesn't run as the volumes couldn't be created. Would it be possible to expose a storage class or an option in the values file ? And document that so it would work with other IaaS than aws ?

komljen commented 5 years ago

Makes sense, I will work on that probably over the weekend. Thanks for opening the issue!

JWebDev commented 5 years ago

Hello, today I installed efk-stack from your tutorial "Get Kubernetes Logs with EFK Stack in 5 Minutes". But not everything started. Persistent Volume Claims are not created. Because classStorage is most likely missing. How to fix? I would be grateful for the answer.

image

image

image

komljen commented 5 years ago

Yeah, a storage class is probably missing, but it is required. In which env did you run the k8s and do you have access to some distributed storage?

JWebDev commented 5 years ago

This is most likely my problem. My cluster works on bare metal. I have a master and three nodes.

Now I try to create nfs-server. But so far not very successful.

Tell me please, is it possible to somehow install efk-stack without network file storage? Does the default installation take default storageClass? On the cluster must be present dynamic provisioning? Is it possible to somehow configure this all to install efk-stack by specifying the folder for storing elasticsearch and that's it?

Thanks for answers.

JWebDev commented 5 years ago

Everything works. Thanks. I had a problem with the NFS server. Tell me please, is this version of kibana with x-packs? How to install them?

komljen commented 5 years ago

This is kibana-oss image without x-pack. But, you could set an image with x-pack here https://github.com/komljen/helm-charts/blob/master/efk/values.yaml#L6 to docker.elastic.co/kibana/kibana.