-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update: use cgo instead of uds (#264)
* init probe for cgo Signed-off-by: sangyangji <songyujie@zju.edu.cn> * add cgo receiver Signed-off-by: jundizhou <jundizhou@harmonycloud.cn> * convert the cgo event to the KindlingEvent Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn> * using a channel to store the events Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn> * update: use cgo instead of uds Signed-off-by: jundizhou <jundizhou@harmonycloud.cn> * gracefully shutdown the cgoreceiver Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn> * remove the probe binary Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn> * remove the udsreceiver since there are some code errors Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn> * add periodSeconds to the readiness probe Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn> * fix deploy files issues Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn> Co-authored-by: sangyangji <songyujie@zju.edu.cn> Co-authored-by: Daxin Wang <daxinwang@harmonycloud.cn>
- Loading branch information
1 parent
7210fe0
commit 4d88144
Showing
71 changed files
with
2,013 additions
and
9,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
FROM centos:7 | ||
|
||
COPY libso/libzmq.so.5 /lib64/ | ||
WORKDIR /app/ | ||
RUN curl https://k8s-bpf-probes-public.oss-cn-hangzhou.aliyuncs.com/kindling-falcolib-probe-v0.3.0.tar.gz -o kindling-falcolib-probe.tar.gz --progress | ||
COPY libso/libkindling.so /lib64/ | ||
RUN ldconfig | ||
|
||
COPY kindling-probe-loader /usr/bin/kindling-probe-loader | ||
RUN chmod +x /usr/bin/kindling-probe-loader | ||
COPY kindling-collector-config.yml /etc/kindling/config/ | ||
COPY kindling-collector /usr/bin/kindling-collector | ||
COPY start.sh /app/ | ||
|
||
CMD ["/usr/bin/kindling-collector", "--config=/etc/kindling/config/kindling-collector-config.yml"] | ||
CMD ["sh", "start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM centos:7 | ||
|
||
WORKDIR /app/ | ||
COPY kindling-falcolib-probe.tar.gz ./ | ||
|
||
COPY libso/libkindling.so /lib64/ | ||
RUN ldconfig | ||
|
||
COPY kindling-collector-config.yml /etc/kindling/config/ | ||
COPY kindling-collector /usr/bin/kindling-collector | ||
|
||
CMD ["sh", "start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
/usr/bin/kindling-probe-loader | ||
|
||
if [ -f "/opt/probe.o" ]; then | ||
export SYSDIG_BPF_PROBE="/opt/probe.o" | ||
fi | ||
|
||
/usr/bin/kindling-collector --config=/etc/kindling/config/kindling-collector-config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.