mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +00:00
Doc: Fix tilt up issue in feature discovering in developer guide
The issue is due to the k3d/kind cluster created by ctlptl will run inside containers(it will serve as the virtual hosts). Host folders which will be scaned by the nfd feature discovery should be mounted into the container ( the virtual host). otherwise the nfd-worker container which run inside the virtual host will just see the default base image rootfs /boot, /lib folders, which are usually empty, leads to the discovey failure. Signed-off-by: Chaoyi Huang <joehuang.sweden@gmail.com>
This commit is contained in:
parent
1c6ce897f2
commit
d08ea5ee11
1 changed files with 19 additions and 11 deletions
|
@ -256,19 +256,27 @@ the steps below.
|
||||||
1. Install [kustomize](https://github.com/kubernetes-sigs/kustomize)
|
1. Install [kustomize](https://github.com/kubernetes-sigs/kustomize)
|
||||||
1. Install [tilt](https://docs.tilt.dev/install.html)
|
1. Install [tilt](https://docs.tilt.dev/install.html)
|
||||||
1. Create a local Kubernetes cluster
|
1. Create a local Kubernetes cluster
|
||||||
|
- Create image registry first
|
||||||
To start up your Tilt development environment, run
|
- Create a Kubernetes cluster. Please note that docker containers will be
|
||||||
|
served as controller node and worker nodes, and NFD-worker will run as a
|
||||||
|
DaemonSet in nested container. Therefore, to make sure the NFD-worker can
|
||||||
|
discover the host features, the host folders "/boot" and "/lib" should be
|
||||||
|
mounted into worker node docker containers when creating the Kubernetes
|
||||||
|
cluster.
|
||||||
|
1. Start up node feature discovery development environment
|
||||||
|
To start up your Tilt development environment, run at the root of your
|
||||||
|
local NFD codebase.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
tilt up
|
tilt up
|
||||||
```
|
```
|
||||||
|
|
||||||
at the root of your local NFD codebase. Tilt will start a web interface in the
|
Tilt will start a web interface in the localhost and port 10350. From the
|
||||||
localhost and port 10350. From the web interface, you are able to see how NFD worker
|
web interface, you are able to see how NFD worker and master are
|
||||||
and master are progressing, watch their build and runtime logs. Once your code changes
|
progressing, watch their build and runtime logs. Once your code changes are
|
||||||
are saved locally, Tilt will notice it and re-build the container image from the
|
saved locally, Tilt will notice it and re-build the container image from
|
||||||
current code, push the image to the registry and re-deploy NFD pods with the latest
|
the current code, push the image to the registry and re-deploy NFD pods
|
||||||
container image.
|
with the latest container image.
|
||||||
|
|
||||||
### Environment variables
|
### Environment variables
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue