nodechecker-controller

command module
v0.0.0-...-7b559c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

NodeChecker Controller

Native kubernetes controller that allow you to check features and connections of kubernetes nodes.

How to use

Installing via chart

Clone the last version of the project and use helm to install the controller into your cluster.

$ git clone https://github.com/josericardomcastro/nodechecker-controller.git
$ cd nodechecker-controller/chart
$ kubectl create namespace nodechecker-controller
$ helm install nodechecker-controller . -n nodechecker-controller
Creating nodecheckers

The controller works with the custom CRD kind: NodeChecker to create nodecheckers.

Nodecheckers are rules to validate node connectivity to another nodes, external host or clusters endpoints. To validate node features, it possible to create rules to check if the node has AVX, GPU or another feature.

Examples:

See the chart, for the full documentation.

Development instructions

Requirements
  • Kubernetes 1.19+
  • go 1.16
Commands
Generate APIs

After modifying the pkg/apis/nodecontroller/v1/types.go file always run the following command to update the generated code for that resource type:

:~$ make generate-api 
Generate CRD Manifest

The CRD manifests can be generated and updated with the following command:

:~$ make generate-crd 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
generated/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
generated/clientset/versioned/typed/nodecontroller/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
generated/clientset/versioned/typed/nodecontroller/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL