Инсталляция с помощью Helm инструментов логирования


$ kubectl create namespace logging


$ helm repo add elastic https://helm.elastic.co

$ helm repo update

$ cd ~/tmp

$ curl -O https://raw.githubusercontent.com/elastic/Helm-charts/master/elasticsearch/examples/minikube/values.yaml

$ helm upgrade \
  --namespace logging \
  --install elasticsearch elastic/elasticsearch \
  --values ./values.yaml


// Если нужно
// $ kubectl --namespace logging port-forward svc/elasticsearch-master 9200


Kibana

$ helm upgrade \
  --namespace logging \
  --install kibana elastic/kibana


// Если нужно
// $ kubectl port-forward deployment/kibana-kibana 5601 --namespace logging


Metricbeat (Вроде как лучшее решение чем Fluent-bit)

Перестало работать!. Нужно или самому править конфиги или подождать когда поправят для работы на последних версиях k8s.


$ helm upgrade \
  --namespace logging \
  --install metricbeat elastic/metricbeat


Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1", unable to recognize "": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"]


$ kubectl \
  --namespace logging logs elasticsearch-master-0

https://logz.io/blog/deploying-the-elk-stack-on-kubernetes-with-helm/


Fluent-bit

https://docs.fluentbit.io/manual/installation/kubernetes

$ helm repo add fluent https://fluent.github.io/helm-charts
$ helm install fluent-bit fluent/fluent-bit


Install Fluentd

$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm upgrade \
  --namespace logging \
  --install fluentd bitnami/fluentd


Helm Chart repository links:


Fluentd Chart Elastic Search Chart Kibana Chart