Skip to content

Commit c32547e

Browse files
author
Pat
authored
kubernetes: disable non-helm (#828)
* kubernetes: disable non-helm Signed-off-by: Patrick Stephens <[email protected]> * kubernetes: helm default Signed-off-by: Patrick Stephens <[email protected]>
1 parent 808f149 commit c32547e

File tree

1 file changed

+5
-65
lines changed

1 file changed

+5
-65
lines changed

installation/kubernetes.md

Lines changed: 5 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -31,79 +31,19 @@ To obtain this information, a built-in filter plugin called _kubernetes_ talks t
3131
3232
## Installation <a href="installation" id="installation"></a>
3333

34-
[Fluent Bit](http://fluentbit.io) must be deployed as a DaemonSet, so on that way it will be available on every node of your Kubernetes cluster. To get started run the following commands to create the namespace, service account and role setup:
34+
[Fluent Bit](http://fluentbit.io) should be deployed as a DaemonSet, so on that way it will be available on every node of your Kubernetes cluster.
3535

36-
For Kubernetes v1.21 and below
37-
38-
```
39-
$ kubectl create namespace logging
40-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-service-account.yaml
41-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role.yaml
42-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding.yaml
43-
```
44-
45-
For Kubernetes v1.22
46-
47-
```
48-
$ kubectl create namespace logging
49-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-service-account.yaml
50-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-1.22.yaml
51-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding-1.22.yaml
52-
```
53-
54-
The next step is to create a ConfigMap that will be used by our Fluent Bit DaemonSet:
55-
56-
```
57-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-configmap.yaml
58-
```
59-
60-
The default configmap assumes that dockershim is utilized for the cluster. If a CRI runtime, such as containerd or CRI-O, is being utilized, the [CRI parser](https://github.com/fluent/fluent-bit/blob/master/conf/parsers.conf#L106-L112) should be utilized. More specifically, change the `Parser` described in `input-kubernetes.conf` from docker to cri.
36+
The recommended way to deploy Fluent Bit is with the official Helm Chart: https://github.com/fluent/helm-chart
6137

6238
### Note for OpenShift
6339

64-
If you are using Red Hat OpenShift you will also need to run the following
40+
If you are using Red Hat OpenShift you will also need to set up security context constraints (SCC):
6541

6642
```
6743
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-openshift-security-context-constraints.yaml
6844
```
6945

70-
### Note for Kubernetes < v1.16
71-
72-
For Kubernetes versions older than v1.16, the DaemonSet resource is not available on `apps/v1` , the resource is available on `apiVersion: extensions/v1beta1` . Our current Daemonset Yaml files uses the new `apiVersion`.
73-
74-
If you are using and older Kubernetes version, manually grab a copy of your Daemonset Yaml file and replace the value of `apiVersion` from:
75-
76-
```yaml
77-
apiVersion: apps/v1
78-
```
79-
80-
to
81-
82-
```yaml
83-
apiVersion: extensions/v1beta1
84-
```
85-
86-
You can read more about this deprecation on Kubernetes v1.14 Changelog here:
87-
88-
[https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.14.md#deprecations](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.14.md#deprecations)
89-
90-
### Fluent Bit to Elasticsearch
91-
92-
Fluent Bit DaemonSet ready to be used with Elasticsearch on a normal Kubernetes Cluster:
93-
94-
```
95-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-ds.yaml
96-
```
97-
98-
### Fluent Bit to Elasticsearch on Minikube
99-
100-
If you are using Minikube for testing purposes, use the following alternative DaemonSet manifest:
101-
102-
```
103-
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-ds-minikube.yaml
104-
```
105-
106-
## Installing with Helm Chart
46+
### Installing with Helm Chart
10747

10848
[Helm](https://helm.sh) is a package manager for Kubernetes and allows you to quickly deploy application packages into your running cluster. Fluent Bit is distributed via a helm chart found in the Fluent Helm Charts repo: [https://github.com/fluent/helm-charts](https://github.com/fluent/helm-charts).
10949

@@ -116,7 +56,7 @@ helm repo add fluent https://fluent.github.io/helm-charts
11656
To validate that the repo was added you can run `helm search repo fluent` to ensure the charts were added. The default chart can then be installed by running the following
11757

11858
```
119-
helm install fluent-bit fluent/fluent-bit
59+
helm upgrade --install fluent-bit fluent/fluent-bit
12060
```
12161

12262
### Default Values

0 commit comments

Comments
 (0)