This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
2 issues in demo "beats-k8s-send-anywhere" #265
Open
Description
The first issue is because of racing condition. As the ServiceAccount was created later than DaemonSet, it would cause this:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreate 19s (x2 over 19s) daemonset-controller Error creating: pods "filebeat-dynamic-" is forbidden: error looking up service account kube-system/filebeat-dynamic: serviceaccount "filebeat-dynamic" not found
Normal SuccessfulCreate 18s daemonset-controller Created pod: filebeat-dynamic-7l58b
Normal SuccessfulCreate 18s daemonset-controller Created pod: filebeat-dynamic-wkp6s
Normal SuccessfulCreate 18s daemonset-controller Created pod: filebeat-dynamic-sms98
So shifting the SA and RB to top helps.
The second issue is that the demo has an implicit assumption: the CRI MUST be Docker. While using CRI-O, it would cause errors and come into CrashLoopBackOff
.
2019-10-11T02:14:42.177Z INFO instance/beat.go:359 filebeat stopped.
2019-10-11T02:14:42.177Z ERROR instance/beat.go:906 Exiting: error initializing publisher: error initializing processors: Cannot connect
to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Exiting: error initializing publisher: error initializing processors: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the doc
ker daemon running?
Metadata
Metadata
Assignees
Labels
No labels