mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-02-05 00:15:52 +00:00
fix(fluentbit): working config
This commit is contained in:
@@ -19,7 +19,7 @@ pipeline:
|
||||
"k8s-logging.parser": "on"
|
||||
"k8s-logging.exclude": "on"
|
||||
namespace_labels: "on"
|
||||
# use_kubelet: "on"
|
||||
# use_kubelet: "on" # wanna use it but can't verify TLS without rotate-server-certificates :(
|
||||
# kubelet_host: "$${KUBE_NODE_IP}"
|
||||
# tls.verify: "off"
|
||||
# - name: stdout
|
||||
|
||||
@@ -5,7 +5,8 @@ metadata:
|
||||
name: "fluentbit"
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["pods", "namespaces", "nodes", "nodes/proxy"]
|
||||
# resources: ["pods", "namespaces", "nodes", "nodes/proxy"] # use when use_kubelet enabled
|
||||
resources: ["pods", "namespaces"]
|
||||
verbs: ["get", "list", "watch"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
@@ -15,14 +16,14 @@ metadata:
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
name: *app
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: *app
|
||||
namespace: *app
|
||||
- apiGroup: rbac.authorization.k8s.io
|
||||
kind: Group
|
||||
name: system:serviceaccounts
|
||||
# - apiGroup: rbac.authorization.k8s.io
|
||||
# kind: Group
|
||||
# name: system:serviceaccounts
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
|
||||
Reference in New Issue
Block a user