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.
Note: If you do not have an account, see Create a Volterra Account.
One or more cloud or edge locations with Volterra Site (in case of deployment on the edge site)
Note: Install the Volterra Node or Cluster Image in your Cloud or Edge Site.
A virtual site.
Note: See Create a Virtual Site for instructions.
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
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
- Enter the number of vCPUs to be allocated in the
- Enter ephemeral storage in the
Ephemeral Storage (MiB)field.
Step 3: Complete creating the default workload flavor object.
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
Editfor your vK8s object.
- Go to
Default Workload Flavorsection and enable the
Show Advanced Fieldsoption.
- Click on the
Default Workload Flavorfield and select the workload flavor object created in previous step.
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 refoption.
Note: The following apply:
- If you apply a default workload flavor to vK8s deployments and also set the
ves.io/workload-flavorannotation for your deployments, the limits set using the
- If you do not apply a default workload flavor and did not set the
ves.io/workload-flavorannotation, then the
tinyflavor gets applied. See Resource Management for Volterra vK8s for system-defined flavor details.
- If you set an incorrect value for the
ves.io/workload-flavorannotation, the default workload flavor is applied if it is attached to vK8s deployment. Else the
tinyflavor gets applied.