Skip to content

Commit 770f8f8

Browse files
author
Benjamin Huo
authored
Merge pull request #85 from wanjunlei/release-0.7
update readme
2 parents 0428fb7 + 543aafd commit 770f8f8

9 files changed

+3284
-46
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ deploy: manifests
4545
manifests: controller-gen
4646
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
4747
kustomize build config/crd | sed -e '/creationTimestamp/d' > manifests/setup/fluentbit-operator-crd.yaml
48+
kustomize build manifests/setup | sed -e '/creationTimestamp/d' > manifests/setup/setup.yaml
4849

4950
# Run go fmt against code
5051
fmt:

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,18 @@ Kubernetes v1.16.13+ is necessary for running Fluent Bit Operator, while it is a
5757

5858
The quick start instructs you to deploy fluent bit with `dummy` as input and `stdout` as output, which is equivalent to execute the binary with `fluent-bit -i dummy -o stdout`.
5959

60+
Install the latest stable version
61+
6062
```shell
61-
kubectl apply -f manifests/setup
62-
kubectl apply -f manifests/quick-start
63+
kubectl apply -f https://raw.githubusercontent.com/kubesphere/fluentbit-operator/release-0.7/manifests/setup/setup.yaml
64+
kubectl apply -f https://raw.githubusercontent.com/kubesphere/fluentbit-operator/release-0.7/manifests/quick-start/quick-start.yaml
65+
```
66+
67+
Install the development version
68+
69+
```shell
70+
kubectl apply -f https://raw.githubusercontent.com/kubesphere/fluentbit-operator/master/manifests/setup/setup.yaml
71+
kubectl apply -f https://raw.githubusercontent.com/kubesphere/fluentbit-operator/master/manifests/quick-start/quick-start.yaml
6372
```
6473

6574
Once everything is up, you'll observe messages in fluent bit pod logs like below:

manifests/quick-start/fluentbit-fluentBit.yaml

-10
This file was deleted.

manifests/quick-start/fluentbitconfig-fluentBitConfig.yaml

-14
This file was deleted.

manifests/quick-start/input-dummy.yaml

-10
This file was deleted.

manifests/quick-start/output-stdout.yaml

-10
This file was deleted.
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: logging.kubesphere.io/v1alpha2
2+
kind: FluentBit
3+
metadata:
4+
name: fluent-bit
5+
namespace: kubesphere-logging-system
6+
labels:
7+
app.kubernetes.io/name: fluent-bit
8+
spec:
9+
image: kubespheredev/fluent-bit:v1.7.3
10+
fluentBitConfigName: fluent-bit-config
11+
12+
---
13+
apiVersion: logging.kubesphere.io/v1alpha2
14+
kind: FluentBitConfig
15+
metadata:
16+
name: fluent-bit-config
17+
namespace: kubesphere-logging-system
18+
labels:
19+
app.kubernetes.io/name: fluent-bit
20+
spec:
21+
inputSelector:
22+
matchLabels:
23+
logging.kubesphere.io/enabled: "true"
24+
outputSelector:
25+
matchLabels:
26+
logging.kubesphere.io/enabled: "true"
27+
28+
---
29+
apiVersion: logging.kubesphere.io/v1alpha2
30+
kind: Input
31+
metadata:
32+
name: dummy
33+
namespace: kubesphere-logging-system
34+
labels:
35+
logging.kubesphere.io/enabled: "true"
36+
spec:
37+
dummy:
38+
tag: my_dummy
39+
40+
---
41+
apiVersion: logging.kubesphere.io/v1alpha2
42+
kind: Output
43+
metadata:
44+
name: stdout
45+
namespace: kubesphere-logging-system
46+
labels:
47+
logging.kubesphere.io/enabled: "true"
48+
spec:
49+
match: "*"
50+
stdout: {}

manifests/setup/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5+
- namespace-namespace.yaml
56
- fluentbit-operator-clusterRoleBinding.yaml
67
- fluentbit-operator-deployment.yaml
78
- fluentbit-operator-crd.yaml

manifests/setup/setup.yaml

+3,221
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)