mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-30 08:32:12 +00:00
Add KUBERNETES_SERVICE_HOST (#562)
When using host network, the containers can't resolve kubernetes.default, thus not getting the metadata like pod name, namespace, etc. Using the environment variable KUBERNETES_SERVICE_HOST, which points to the current cluster API server, will allow that.
This commit is contained in:
parent
28622e6fdc
commit
3d96ca5157
@ -25,7 +25,7 @@ spec:
|
|||||||
# env:
|
# env:
|
||||||
# - name: SYSDIG_BPF_PROBE
|
# - name: SYSDIG_BPF_PROBE
|
||||||
# value: ""
|
# value: ""
|
||||||
args: [ "/usr/bin/falco", "-K", "/var/run/secrets/kubernetes.io/serviceaccount/token", "-k", "https://kubernetes.default", "-pk"]
|
args: [ "/usr/bin/falco", "-K", "/var/run/secrets/kubernetes.io/serviceaccount/token", "-k", "https://$(KUBERNETES_SERVICE_HOST)", "-pk"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /host/var/run/docker.sock
|
- mountPath: /host/var/run/docker.sock
|
||||||
name: docker-socket
|
name: docker-socket
|
||||||
|
Loading…
Reference in New Issue
Block a user