You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/k8smeta/README.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,14 @@ The `k8smeta` plugin implements 4 capabilities:
59
59
60
60
Here's an example of configuration of `falco.yaml`:
61
61
62
-
> NOTE: Please note that you can provide values to the config as environment variables. So, for example, you can take advantage of the Kubernetes downward API to provide the node name as an env variable `nodename: ${MY_NODE}`.
62
+
> NOTE:
63
+
> The `nodeName` field is required by the plugin and must match the name of the
64
+
> Kubernetes node on which the Falco instance is running.
65
+
>
66
+
> When running Falco as a DaemonSet, this value **must be set dynamically**
67
+
> using the Kubernetes Downward API.
68
+
> Hard-coding the node name will cause metadata enrichment to work only for a
69
+
> single node.
63
70
64
71
```yaml
65
72
plugins:
@@ -72,7 +79,20 @@ plugins:
72
79
# hostname exposed by the k8s-metacollector
73
80
collectorHostname: localhost # (required)
74
81
# name of the node on which the Falco instance is running.
75
-
nodeName: kind-control-plane # (required)
82
+
nodeName: "${FALCO_K8S_NODE_NAME}"# (required)
83
+
# name of the node on which the Falco instance is running.
84
+
# In Kubernetes DaemonSets, you should use an environment variable
85
+
# that is populated via Downward API so that each Falco pod gets
86
+
# its own node name dynamically:
87
+
#
88
+
# extra:
89
+
# # -- Extra environment variables that will be pass onto Falco containers.
90
+
# env:
91
+
# - name: FALCO_K8S_NODE_NAME
92
+
# valueFrom:
93
+
# fieldRef:
94
+
# fieldPath: spec.nodeName
95
+
#
76
96
# verbosity level for the plugin logger
77
97
verbosity: warning # (optional, default: info)
78
98
# path to the PEM encoding of the server root certificates.
0 commit comments