How to install Chantico
Installation
Getting the Chantico image
Option A: Build and host image yourself
Then host this image on a container registry of choice and make sure to synchronize credentials as listed in option (B).
Option B: Pull from Chantico GitLab repository
The Chantico repository on GitHub does not host images yet in the container registry there. This is still work in progress. The following steps only work if you have access to the GitLab repository of Chantico.
The GitLab repository of Chantico hosts several relevant images, including the one of the Chantico controller itself. First, create registry credentials for pulling images from a private Docker registry:
- Go to GitLab -> Chantico project -> Settings -> Access tokens -> Add new token, with a descriptive/easy-to-copy “Token name” and “Scopes” have at least
read_registrychecked. - Copy the access token, then:
Deployment of Chantico on k8s cluster
- Install CRDs
Install the CRDs within config/deployment/crd to the cluster:
- Deploy Chantico and dependencies with Helm
This project makes use of Helm templating. If desired default parameters can be changed in
config/deployment/values.yaml.
The following command retrieves the latest image of Chantico from the Gitlab container registery and installs the helm deployment. If wanted, another version of Chantico can also be used, such as one of a branch or tag release.
Getting started with the deployed Chantico
After Chantico is succesfully deployed on your cluster, you can start making use of it for measuring your datacenter hardware of interest. Currently this can only be done with manual configuration, until a more automated approach has been implemented. Chantico inherently configures SNMP walks for endpoints by means of MIB and .yaml files. The steps of configurating this typically follows the following how-to guides:
- How to register an SNMP device type - Upload the MIB files to use and make
.yamlfiles for measurement devices. Also see the example atconfig/samples/chantico_v1alpha1_measurementdevice.yaml. - How to register a physical snmp device - Define IP address(es) of interest in physical measurement
.yamlfile. Example atconfig/samples/chantico_v1alpha1_physicalmeasurement.yaml. - With the MIB files, measurement devices and physical measurements in place, the targets should be accessable and scrapable in Prometheus. Perform port forwarding on the Prometheus deployment to validate the result of this setup. If done successful one should see a timeseries of the requested value(s).
- How to register data center resources When desired, encapsulate data center structure usin data center resources.
Remove deployed Chantico on K8s cluster
- Remove custom resources and uninstall the CRDs:
Start by uninstalling CRDs, this will delete all custom resource definitions (PhysicalMeasurements, MeasurementDevices, DataCenterResources) and remove any instances from the cluster.
- Uninstall the Helm release:
Upon completion of the uninstallment of the CRDs, Chantico can then be removed from the cluster using helm uninstall.
This removes all namespaced resources (Deployments, Services, ServiceAccount, Roles, RoleBindings, PVC) as well as the cluster-scoped resources (ClusterRole, ClusterRoleBinding) managed by the release.
- Optionally, delete the namespace: