@@ -21,6 +21,12 @@ $ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernet
21
21
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding.yaml
22
22
```
23
23
24
+ Alternatively, you can use [ Kustomize] ( https://kustomize.io/ ) , which is also built into newer versions of kubectl.
25
+
26
+ ```
27
+ $ kustomize build github.com/fluent/fluent-bit-kubernetes-logging/output/kustomize | kubectl create -f -
28
+ ```
29
+
24
30
#### Fluent Bit to Elasticsearch
25
31
26
32
The next step is to create a ConfigMap that will be used by our Fluent Bit DaemonSet:
@@ -35,6 +41,12 @@ Fluent Bit DaemonSet ready to be used with Elasticsearch on a normal Kubernetes
35
41
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-ds.yaml
36
42
```
37
43
44
+ Or, if you are using kustomize:
45
+
46
+ ```
47
+ $ kustomize build github.com/fluent/fluent-bit-kubernetes-logging/output/elasticsearch/ | kubectl create -f -
48
+ ```
49
+
38
50
#### Fluent Bit to Elasticsearch on Minikube
39
51
40
52
If you are using Minikube for testing purposes, use the following alternative DaemonSet manifest:
@@ -43,6 +55,12 @@ If you are using Minikube for testing purposes, use the following alternative Da
43
55
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-ds-minikube.yaml
44
56
```
45
57
58
+ Or, if you are using kustomize:
59
+
60
+ ```
61
+ $ kustomize build github.com/fluent/fluent-bit-kubernetes-logging/output/elasticsearch-minikube | kubectl create -f -
62
+ ```
63
+
46
64
#### Fluent Bit to Kafka
47
65
48
66
Create a ConfigMap that will be used by our Fluent Bit DaemonSet:
@@ -57,6 +75,12 @@ Fluent Bit DaemonSet ready to be used with Kafka on a normal Kubernetes Cluster:
57
75
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/kafka/fluent-bit-ds.yaml
58
76
```
59
77
78
+ Or, if you are using kustomize:
79
+
80
+ ```
81
+ $ kustomize build github.com/fluent/fluent-bit-kubernetes-logging/output/kafka | kubectl create -f -
82
+ ```
83
+
60
84
## Details
61
85
62
86
The default configuration of Fluent Bit makes sure of the following:
0 commit comments