Skip to content

Commit

Permalink
docs: update kind instructions for /proc
Browse files Browse the repository at this point in the history
Update kind instructions to properly mount /proc.

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Nov 1, 2023
1 parent 80fdc63 commit 1c1e41e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docs/content/en/docs/getting-started/install-k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,21 @@ eksctl create cluster --name "${NAME}"
```
{{% /tab %}}
{{% tab Kind %}}
Run the following command to create the Kubernetes cluster:

Tetragon's correct operation depends on access to the host /proc filesystem. The following steps configure kind and Tetragon accordingly.

```shell-session
kind create cluster
cat <<EOF > kind-config.yaml
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
extraMounts:
- hostPath: /proc
containerPath: /procHost
EOF
kind create cluster --config kind-config.yaml
EXTRA_HELM_FLAGS="--set teragon.hostProcPath=/procHost" # flags for helm install
```
{{% /tab %}}

Expand All @@ -67,7 +78,7 @@ To install and deploy Tetragon, run the following commands:
```shell-session
helm repo add cilium https://helm.cilium.io
helm repo update
helm install tetragon cilium/tetragon -n kube-system
helm install tetragon ${EXTRA_HELM_FLAGS} cilium/tetragon -n kube-system
kubectl rollout status -n kube-system ds/tetragon -w
```

Expand Down

0 comments on commit 1c1e41e

Please sign in to comment.