Create Default Workload Flavor


This document provides instructions on how to configure and apply default workload flavor to the Volterra 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 Volterra distributes application deployment, see Distributed Application Management.

Using the instructions provided in this guide, you can create a default workload flavor object in VoltConsole 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.



Perform the following to create default workload flavor object:

Step 1: Log into VoltConsole and start default workload flavor object creation.

Change to shared namespace using the namespace selector. Select Manage -> Workload Flavors from the configuration menu. Click 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 vCPUs 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.

Click Save and Exit to create the default workload flavor.

Step 4: Apply the default workload flavor to a vK8s object.
  • Change to application namespace and navigate to Applications -> Virtual K8s.
  • Click ... -> Edit for your vK8s object.
  • Go to Default Workload Flavor section and enable the Show Advanced Fields option.
  • Click on the Default Workload Flavor field and select the workload flavor object created in previous step.
  • Click Save and Exit.

Note: You can also create a new workload flavor object and apply it to vK8s deployments using the Create new default flavor ref option.

Note: The following apply:

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


API References