Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 18, 2023
1 parent a846182 commit c38f87f
Show file tree
Hide file tree
Showing 5 changed files with 30,395 additions and 1 deletion.
31 changes: 31 additions & 0 deletions data/fluent-operator/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"deploy": {
"steps": [
{
"apply": {
"file": "data/fluent-operator/operator.yaml",
"operator": true
}
},
{
"apply": {
"file": "data/fluent-operator/fluent-bit-config.yaml"
}
}
]
},
"crd_name": "fluentbits.fluentbit.fluent.io",
"seed_custom_resource": "data/fluent-operator/cr.yaml",
"kubernetes_version": "v1.26.3",
"diff_ignore_fields": [
"\\['metadata'\\]\\['annotations'\\]\\['anvil\\.dev\\\/lastRestartAt'\\]",
"\\['daemonset_pods'\\]\\['test\\-cluster'\\]\\[.*\\]\\['metadata'\\]\\['labels'\\]\\['pod\\-template\\-generation'\\]",
"\\['daemonset_pods'\\]\\['test\\-cluster'\\]\\[.*\\]\\['spec'\\]\\['affinity'\\]",
"\\['metadata'\\]\\['annotations'\\]\\['deprecated\\.daemonset\\.template\\.generation'\\]"
],
"kubernetes_engine": {
"feature_gates": {
"StatefulSetAutoDeletePVC": true
}
}
}
14 changes: 14 additions & 0 deletions data/fluent-operator/cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBit
metadata:
name: fluentbit-sample
labels:
app: fluent-bit
spec:
image: kubesphere/fluent-bit:v1.8.3
imagePullPolicy: IfNotPresent
positionDB:
hostPath:
path: /var/lib/fluent-bit/
fluentBitConfigName: fluentbitconfig-sample
disableLogVolumes: false
26 changes: 26 additions & 0 deletions data/fluent-operator/fluent-bit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBitConfig
metadata:
name: fluentbitconfig-sample
namespace: fluent
spec:
service:
flush: 1
daemon: false
logLevel: info
parsersFile: parsers.conf
inputSelector:
matchExpressions:
- key: fluentbit.fluent.io/enabled
operator: In
values: ["true"]
filterSelector:
matchExpressions:
- key: fluentbit.fluent.io/enabled
operator: In
values: ["true"]
outputSelector:
matchExpressions:
- key: fluentbit.fluent.io/enabled
operator: In
values: ["true"]
Loading

0 comments on commit c38f87f

Please sign in to comment.