Apply and manage Pod rightsizing

Prev Next

This topic describes how to apply Pod rightsizing to a workload.

Beta release

Pod rightsizing is released now as Beta.

To manage Pod rightsizing that’s active on a workload, see Manage Pod rightsizing on a workload.

Apply Pod rightsizing to a workload

You apply the Pod rightsizing solution to a workload using the Pod rightsizing tab (“tab”) of the workload recommendation drawer (“drawer”).

You access the drawer from a recommendation in the Workloads tab.

Note: If the Insights agent is not installed in the cluster, recommendations are not displayed, so you cannot access the drawer. To install the Insights agent, see Install the Kompass Insights agent.

Pod rightsizing tab

The following figure illustrates the Pod rightsizing tab of the drawer:

The tab has these sections:

  • General: In this section, equal across all the tabs, you can see basic workload data, such as workload and cluster name, namespace, and cost. To see a graph of cost over time click View over time. The tab name shows whether the solution is currently active or inactive.

  • Overview: See why Kompass determined this workload to be under- or over-provisioned.

  • Optimization strategy comparison: See the workload’s current metrics and compare those to the expected state after optimizing, per optimization strategy. You can see which parameters Pod rightsizing will change to lead to expected optimized metrics.
    For example, if the workload is over-provisioned:

    • Default: Reduce RAM or vCPU to the lowest safe level, for the highest savings. Appropriate for most workloads.

    • Conservative: Reduce RAM or vCPU moderately, for moderate savings. Appropriate for sensitive or stateful workloads.
      For more information about the optimization strategies, see Pod rightsizing workload optimization.

You can also see the expected change comparisons in graph form. On the graph, select which optimization strategy to see.

Prerequisites

  • Pod rightsizing is enabled on the cluster.
    For more information, see Enable Pod rightsizing.

    If you attempt to apply Pod rightsizing before it is enabled, you can enable it directly from the drawer.

To apply Pod rightsizing to a workload:

  1. From the Kompass > Workloads tab, identify a workload with one of the Pod rightsizing recommendations in the Recommendations column:
    - under-provisioned - over-provisioned
    To show only workloads with specific recommendations, click .

  2. Click the icon of the recommendation to apply.
    The workload recommendation drawer is displayed, showing the Pod rightsizing tab. For more information about the data shown in the tab, see Pod rightsizing tab.

  3. Choose an optimization strategy.

  4. Click Apply Pod rightsizing, then confirm.

The drawer closes and the Kompass > Workloads tab opens showing a message that the solution is being applied.

While the solution application is in progress, the icon of the applied solution is displayed in the workload’s Product status column in blue.

After the solution is active (about an hour), the icon changes to green.

To view and manage a workload after Pod rightsizing is active, see Manage Pod rightsizing on a workload.