containerd is a simple, robust, and portable container runtime. containerd is available as a daemon for Linux and Windows and can manage the complete container lifecycle of its host system such as image transfer and storage, container execution and supervision, low-level storage, and network attachments. You can use containerd to deploy and manage Kubernetes and handle on-premise and cloud hardware. The API offered by containerd lets you manage the environment using containerd easily and you can control everything through API calls.
OpsRamp supports containerd to discover and monitor the resource usage of your containers.
To deploy containerd:
- Go to Setup > Integrations > Integrations.
- From the Available Integrations section, click Compute.
- From the Compute section, select K3S.
- On the K3S integration page, click Install.
- In the Install K3S Integration window:
- Give a name to the integration.
- For Deployment, select one of the following options:
- On prem: If the containerd deployment is on-premises.
- Cloud: If the conatinerd deployment is on a public cloud such as AWS.
- For Container Engine, select ContainerD.
- Click Install.
The K3S integration page displays the details of the integration and YAML files.
- Navigate to kube-controller and do the following steps:
Copy the YAML content from the OpsRamp integration page and paste it to a new file in kube-controller. For example,
Execute the following command in kube-controller:
kubectl apply -f <YAML file> Example: kubectl apply -f opsramp-agent-kubernetes.yaml
You can change the following values in the YAML file:
- LOG_LEVEL: By default, the value is set to warn.
- K8S_EVENTS: By default, the value is set to False.
- DOCKER_EVENTS: By default, the value is set to False.
- Navigate to the OpsRamp console.
- Go to Infrastructure > Resources.
- Click k3s on the resource list pane.
A list of all the discovered nodes is displayed.