You are here: Enabling Metrics Server
Appendices
This section contains information about important features that are not enabled as part of the installation. These features require extra customizations to be enabled. Following is the detailed explanation to enable important features such as Metrics server, Kuberhealthy, etc.
Enabling Metrics Server
Metrics Server is a cluster-wide aggregation of resource usage data. It collects metrics like the CPU or memory consumption for containers or nodes, from the Summary API, exposed by Kubelet on each node. If you want to know the CPU or memory usage consumption through command line, you must enable the metrics server. It is not enabled as part of Foundry installation and is an add-on feature. Perform the following steps to enable metrics server.
- Navigate to the Foundry container artifact folder by running the following command.
- Run the kubectl apply command to enable the metrics-server.
You must wait a for a minute for the metrics-server to start running. Once it starts working, use the following commands to get the CPU or memory consumption of the pods and nodes.
Enabling Kuberhealthy
Kuberhealthy is an operator for running synthetic checks. By creating a custom resource (a khcheck) in your cluster, you can easily enable various synthetic test containers. Kuberhealthy is not enabled as part of Foundry installation. It is an add-on feature. Perform the following steps to enable kuberhealthy.
- Navigate to the Foundry container artifact folder by running the following command.
- Deploy the CRDs (Custom Resources), which creates a customResource check named KuberhealthyCheck.
- Deploy
kuberhealthy.yaml
to create a Kuberhealthy namespace.
- Deploy other kuberhealthy yml files by running following command.
- Create the Grafana dashboard by importing
dashboard.json
file which is present inVoltMXFoundryContainerOnPrem-9.0.0.0_GA/add-ons/kuberhealthy/Dashboard
. For importing the dashboard, refer to Configuring Grafana Monitoring Tool.
Enabling Stern
Although Kibana dashboard is provided as a default option with the Volt MX Foundry cluster setup, there might be times where you would want to quickly debug using the command line. Stern allows you to tail the log output from multiple pods belonging to a service and from multiple containers within the pod. Each result is color coded for quicker debugging.For more information, refer to Tail Kubernetes with Stern.
Perform the following steps to enable Stern:
- Download the latest binary from GitHub - Stern Releases.
- Refer to GitHub - Stern for the Stern commands. You can run the stern commands as required.
Specifying the PodDisruptionBudget
A PodDisruptionBudget is an indicator of the number of disruptions that can be tolerated at a given time for a class of pods (a budget of faults). Whenever a disruption to the pods in a service is calculated to cause the service to drop below the budget, the operation is paused until it can maintain the budget. For example, a drain event could be temporarily halted while it waits for more pods to become available such that the budget isn’t crossed by evicting the pods.
To configure a PodDisruptionBudget, you must create a PodDisruptionBudget
resource that matches the pods in the service. Run the following yml file to create a PodDisruptionBudget. You can change the minAvailable to denote the minimum number of available pods at given point of time.