Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

adding kustomize #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ This repository contains a set of Yaml files to deploy Fluent Bit which consider

```
$ kubectl create namespace logging
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-service-account.yaml
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role.yaml
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/fluent-bit-role-binding.yaml
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/base/fluent-bit-service-account.yaml
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/base/fluent-bit-role.yaml
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/base/fluent-bit-role-binding.yaml
```

Or using [Kustomize](https://kustomize.io/)

```
$ kustomize build github.com/fluent/fluent-bit-kubernetes-logging | kubectl create -f -
```

#### Fluent Bit to Elasticsearch
Expand All @@ -35,6 +41,11 @@ Fluent Bit DaemonSet ready to be used with Elasticsearch on a normal Kubernetes
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/elasticsearch/fluent-bit-ds.yaml
```

Or using kustomize:
```
$ kustomize build github.com/fluent/fluent-bit-kubernetes-logging/output/elasticsearch | kubectl create -f -
```

#### Fluent Bit to Elasticsearch on Minikube

If you are using Minikube for testing purposes, use the following alternative DaemonSet manifest:
Expand All @@ -57,6 +68,11 @@ Fluent Bit DaemonSet ready to be used with Kafka on a normal Kubernetes Cluster:
$ kubectl create -f https://raw.githubusercontent.com/fluent/fluent-bit-kubernetes-logging/master/output/kafka/fluent-bit-ds.yaml
```

Or using kustomize:
```
$ kustomize build github.com/fluent/fluent-bit-kubernetes-logging/output/kafka | kubectl create -f -
```

#### Fluent Bit to Elasticsearch on Minikube

If you are using Minikube for testing purposes, use the following alternative DaemonSet manifest:
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: logging

resources:
- fluent-bit-service-account.yaml
- fluent-bit-role.yaml
- fluent-bit-role-binding.yaml
5 changes: 5 additions & 0 deletions kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/
11 changes: 11 additions & 0 deletions output/elasticsearch/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: logging

bases:
- ../../base

resources:
- fluent-bit-configmap.yaml
- fluent-bit-ds.yaml
11 changes: 11 additions & 0 deletions output/kafka/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: logging

bases:
- ../../base

resources:
- fluent-bit-configmap.yaml
- fluent-bit-ds.yaml