Create Default Workload Flavor

Objective

This document provides instructions on how to configure and apply default workload flavor to the F5® Distributed Cloud Virtual K8s (vK8s) deployments. The default workload flavor applies a custom set of resource limits for the application containers for all the vK8s deployments. The default flavor is created in the shared namespace making it easy to apply to the vK8s deployments across all application namespaces. To know more about how the Distributed Cloud Platform distributes application deployment, see Distributed Application Management.

Using the instructions provided in this guide, you can create a default workload flavor object in F5 Distributed Cloud Console in the shared namespace. You can then apply it to a vK8s object in any application namespace for that tenant.

Note: You can also create and attach the default flavor from within the vK8s configuration page. See Create vK8s Object and vK8s Deployment for instructions on how to create a vK8s object and perform application deployment respectively.


Prerequisites

Note: If you do not have an account, see Create an Account.

  • One or more cloud or edge locations with Distributed Cloud Site (in case of deployment on the edge site)

Note: Install the Distributed Cloud Node or Cluster Image in your Cloud or Edge Site.

  • A virtual site.

Note: See Create a Virtual Site for instructions.


Configuration

Perform the following to create default workload flavor object:

Step 1: Navigate to the Workload Flavors page and start default workload flavor object creation.
  • Select the Shared Configuration service.
  • Navigate to Manage > Workload Flavors.
  • Select Add Workload Flavor.
Step 2: Configure the default flavor limits.
  • Enter a name for the default flavor object in the metadata section.
  • Enter the memory to be allocated in the Memory (MiB) field.
  • Enter the number of virtual CPUs to be allocated in the vCPUs field.
  • Enter ephemeral storage in the Ephemeral Storage (MiB) field.
def wl flv
Figure: Default Workload Flavor Configuration
Step 3: Complete creating the default workload flavor object.

Select Save and Exit to create the default workload flavor.

Step 4: Apply the default workload flavor to a vK8s object.
  • Change to the Distributed Apps service, and navigate to Applications > Virtual K8s.
  • Select ... > Manage Configuration for your vK8s object and then select Edit Configuration in the upper right corner.
  • Scroll down to the Default Workload Flavor section.
  • Using the Default Workload Flavor drop-down menu, select the workload flavor object created in previous step.
  • Select Save and Exit.

Note: You can also create a new workload flavor object and apply it to vK8s deployments using the Create new Workflow Flavor option in the Default Workload Flavor drop down menu.

Note: The following apply:

  • If you apply a default workload flavor to vK8s deployments and also set the ves.io/workload-flavor annotation for your deployments, the limits set using the ves.io/workload-flavor are applied.
  • If you do not apply a default workload flavor and did not set the ves.io/workload-flavor annotation, then the tiny flavor gets applied. See Resource Management for Distributed Cloud vK8s for system-defined flavor details.
  • If you set an incorrect value for the ves.io/workload-flavor annotation, the default workload flavor is applied if it is attached to vK8s deployment. Otherwise, the tiny flavor gets applied.

Concepts


API References