Skip to content

Commit

Permalink
Update current feature
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Dec 16, 2024
1 parent f404a50 commit 38747d7
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Acces falco UI
kubectl port-forward -n falco $(kubectl get pods --selector=app.kubernetes.io/component=ui -n falco --output=jsonpath="{.items[0].metadata.name}") 2802
2 changes: 1 addition & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func createCluster(clusterName string) {

switch c.Cni {
case "calico":
_, _, err = ExecCmd(resources.CiliumInstallScript, false)
_, _, err = ExecCmd(resources.CalicoInstallScript, false)
case "cilium":
_, _, err = ExecCmd(resources.CiliumInstallScript, false)

Expand Down
3 changes: 2 additions & 1 deletion doc/dev.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# How to cut a release

```bash
./release.sh vX.Y.Z-rcT
cd ktbx
ciux tag .
```
28 changes: 28 additions & 0 deletions doc/troubleshoot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Fixing Falco Pod Error: "Error: could not initialize inotify handler"

This error occurs due to insufficient inotify resources. Fix it by increasing the inotify limits.

## Steps

1. Run the following commands:

```bash
echo "fs.inotify.max_user_instances=8192" | sudo tee -a /etc/sysctl.conf
echo "fs.inotify.max_user_watches=1048576" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
```

2. Verify the new settings:

```bash
sysctl fs.inotify.max_user_instances
sysctl fs.inotify.max_user_watches
```

3. Restart the Falco pod:

```bash
kubectl delete pod <falco-pod-name> -n <namespace>
```

This should resolve the issue.
2 changes: 1 addition & 1 deletion resources/install-falco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ echo "Check that the Falco pods are running"
kubectl get pods -n falco

echo "Falco pod(s) might need a few seconds to start. Wait until they are ready..."
kubectl wait pods --for=condition=Ready --all -n falco
kubectl wait pods --for=condition=Ready --all -n falco --timeout=600s

0 comments on commit 38747d7

Please sign in to comment.