From 8e7d0c904b58465057818dfe627331666d1e4fd3 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Fri, 9 Jun 2017 07:58:02 +0200 Subject: [PATCH 1/2] Suggests the elasticsearch setup to be used --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index c6e1d90..70044ca 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,13 @@ The current DaemonSet points to this specific Docker Hub image: 1. Make sure your Elasticsearch backend is running and can be reach through the hostname _elasticsearch-logging_. This value can be changed in the Yaml file +``` +wget https://github.com/kubernetes/kubernetes/raw/master/cluster/addons/fluentd-elasticsearch/es-controller.yaml +wget https://github.com/kubernetes/kubernetes/raw/master/cluster/addons/fluentd-elasticsearch/es-service.yaml +kubectl create -f es-controller.yaml +kubectl create -f es-service.yaml +``` + 2. Deploy the daemonset file from this repository: ```bash From 46a8024226778d84009cc6f393a8cf3149d1870f Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Thu, 8 Jun 2017 22:16:58 +0200 Subject: [PATCH 2/2] Makes input work with minikube --- fluent-bit-daemonset-elasticsearch.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fluent-bit-daemonset-elasticsearch.yaml b/fluent-bit-daemonset-elasticsearch.yaml index 6285d36..e95d65b 100644 --- a/fluent-bit-daemonset-elasticsearch.yaml +++ b/fluent-bit-daemonset-elasticsearch.yaml @@ -35,6 +35,9 @@ spec: - name: varlibdockercontainers mountPath: /var/lib/docker/containers readOnly: true + - name: minikube + mountPath: /mnt/sda1/var/lib/docker/containers + readOnly: true terminationGracePeriodSeconds: 10 volumes: - name: varlog @@ -43,3 +46,6 @@ spec: - name: varlibdockercontainers hostPath: path: /var/lib/docker/containers + - name: minikube + hostPath: + path: /mnt/sda1/var/lib/docker/containers