A network controller helps to manage the host network configuration of the Harvester cluster.
$ helm repo add harvester https://charts.harvesterhci.io
$ helm repo update
$ kubectl apply -f https://raw.githubusercontent.com/harvester/network-controller-harvester/master/manifests/dependency_crds
$ helm install harvester-network-controller harvester/harvester-network-controller
:::
Note: The network-controller-harvester assumes that it is running in Harvester clusters. The best practice is to install a Harvester cluster, it rolls out everything automatically.
:::
General guide is on Harvester Developer Guide.
- Run
make cion the source code
/go/src/github.com/harvester/network-controller-harvester$ make ci
- A successful run will generate following container images.
REPOSITORY TAG IMAGE ID CREATED SIZE
rancher/harvester-network-webhook 98a14e2b-amd64 a71dc03c7968 41 hours ago 118MB
rancher/harvester-network-helper 98a14e2b-amd64 1b64c83eb940 41 hours ago 102MB
rancher/harvester-network-controller 98a14e2b-amd64 b5c8d3f6364e 41 hours ago 204MB
- Push or upload the new images to the running cluster, replace them to the deployments and test your change.
Run make generate to generate related codes.
/go/src/github.com/harvester/network-controller-harvester$ make generate
The chart definition is managed on a central repo https://github.com/harvester/charts. Changes need to be sent to it.
https://github.com/harvester/charts/tree/master/charts/harvester-network-controller
For more information, see Chart README.
Copyright (c) 2025 SUSE, LLC.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.