-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration between Falco and FalcoSidekick #2565
Comments
Hi, |
Hi Issif, I did the deployment using Helm, but when I tried setting the same, the WebUI is not accessible due to storage issues (I mean we don't have any persistent storage in k8's env. which Redis is expecting) |
I see, you can disable the PVC but all events will be kept in memory: |
Thanks Issif, deployed the same by setting the above flag, but i cant access the webUI via 2802 port. kubectl port-forward svc/falco-1684835778-falcosidekick-ui 2802:2802 -----------------------------------kubectl get pods----------------------------------------------------------------------- |
what errors and logs do you have? |
kubectl get svc |
At falcosidekick level it's ok, and for falcosidekick-ui? Is the redis correctly running? When you try to access through the port-forward, what http error do you get? |
Your service name is strange, on my side, I start the port-forward with just: kubectl port-forward svc/falco-falcosidekick-ui 2802:2802 -n falco Can you list your services to be sure please? |
Everything is ok at this level, I don't understand why the port-forward fails. It doesn't seem related to falcosidekick-ui but more on your K8s config. Any CNI that could create an issue? Are you able to create a port-forward to another svc? Can you try directly to the pod? |
I've deployed a new Redis server on a different machine, can you please check the below & correct it, as executing the below command pick the IP of Redis Cluster IP(from kubectl get svc) not the one passed below, thanks. helm install falco -n falco --set tty=true falcosecurity/falco |
Here's the correct syntax:
I agree |
Thanks, Issif, I see the below error where I can't find the deployment-ui in the falcosidekick GitHub repo, but it exists in the charts repo here(https://github.com/falcosecurity/charts/tree/master/falcosidekick/templates). do I need to clone it and do something? Error: INSTALLATION FAILED: execution error at (falco/charts/falcosidekick/templates/deployment-ui.yaml:3:5): Both webui.redis and webui.externalRedis modules are enabled. Please disable one of them. |
Add All values are there: https://github.com/falcosecurity/charts/blob/master/falcosidekick/values.yaml |
it worked but the UI pod's arent coming up..! kubectl get pods kubectl logs falco-falcosidekick-ui-595b78c7c7-w7t7f |
Are you sure to run a redis instance with |
Can you check in logs if :
|
Sure, PFB logs. Triggered Alert Falco Logs Falco Sidekick Logs kubectl logs falco-falcosidekick-5dd98bcdc4-84qtg -c falcosidekick Falco Sidekick UI Logs |
Are you running falcosidekick-ui on arm64? We discovered a strange bug falcosecurity/falcosidekick-ui#95 For now, I don't have access to an arm64 machine to reproduce. |
oops, its x86 64-bit architecture ("AMD64" or "Intel 64") but not arm64. uname -mvnrs |
Can you paste me your whole values.yaml please? Just edit the sensitive data. Right now, I don't see any issue. |
I've used helm to install, its fetching directly from falcosecurity/falco. |
I don't see any issue with this config. Can you try to create a port-forward to a falcosidekick pod and trigger a test event:
If you see something in the falcosidekick logs and in the webui, it means the issue is between falco and falcosidekick. Do you have any specific networkpolicies? or cilium? or calico? that could interfere? |
I see no errors/handling connection when using 127.0.0.1 and it throws an connection refused error while using localhost/hostname:2801, I'm using calico but i dont see anything that's blocking, any specific checks/info that u need? please let me know, thanks. curl -XPOST "http://XXXX:2801/test" kubectl port-forward svc/falco-falcosidekick 2801:2801 -n falco kubectl logs falco-falcosidekick-5dd98bcdc4-4vw24 |
I see the issue now. For a reason I don't understand, your svc for falcosidekick-ui is The template is this one: {{- if .Values.webui.enabled -}}
{{ $weburl := printf "http://%s-ui:2802" (include "falcosidekick.fullname" .) }}
WEBUI_URL: "{{ $weburl | b64enc }}"
{{- end }} With {{- define "falcosidekick.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}} It should work, but it doesn't, I need to search where the bug is. |
Yes, previously it was like that due to prior installations may be, but currently my SVC are below, please check & assist. kubectl get svc |
As everything is stateless, can you delete your deployments and all resources and redeploy everything, by checking the names? |
This save me when was evaluating at stateless scenario such minikube / eks. I hope we should quote this in doc as note in "evaluation / trying mode". |
Feel free to submit a PR to add it 😉 |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue with Mark the issue as fresh with Provide feedback via https://github.com/falcosecurity/community. |
@poiana: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Thank you! Was stuck for an hour and setting this flag in my helm install worked and my redis could start |
Hi Team,
Can anyone point me to the documentation or guide me on how to integrate Falco (setup using helm on Kubernetes - https://falco.org/docs/getting-started/try-falco/try-falco-on-kubernetes/) and Falco Sidekick / UI(setup reference: https://github.com/falcosecurity/falcosidekick, https://github.com/falcosecurity/falcosidekick-ui) coz I don't see any events on the Web UI, thanks.
Regards,
Che
The text was updated successfully, but these errors were encountered: