This topic describes how to perform basic management operations on GPU functions, including creating GPU functions, updating function settings, updating images, and deleting functions.
Create GPU functions
veFaaS supports creating GPU functions using container images. This section explains how to create a GPU function.
tip
To use a custom container image for function deployment, refer to Native runtimes to complete code development, image building, and image pushing first. - In the top navigation bar, select the target region.
- In the left navigation pane, click Function > Function management.
- In the function list, click Create function and select the target creation method. Web applications, microservices, and tasks all support container image-based deployment. Select one that suits your actual business scenario.
- Click Confirm to create the GPU function. After the function is created, it appears in the function list.
Update settings
You can modify function settings, such as execution timeout, single-instance concurrency, environment variables, VPC networking, and log delivery. After the update, you need to release the function again for the update to take effect.
- In the function list, find the target function and click its name to enter the basic information tab.
- Update function settings as needed, such as the VPC network and log delivery settings.
Update images
You can update the container image used by a function. After the update, you need to release the function again for the update to take effect.
- In the function list, find the target function and click its name to enter the basic information tab.
- Click the "Code" tab and click Modify image.
- In the pop-up confirmation box, click Confirm.
- On the image modification page, select the desired different image version from CR.
- Click Confirm to start updating the image.
- The system starts synchronizing the new image. Please wait.
Function deletion
danger
Deleting a function will cause its instances to be immediately released or destroyed. This operation cannot be undone. Proceed with caution.
- In the function list, select the target function, and in the Actions column, click ... > Delete.
- In the pop-up confirmation dialog box, verify the function information. To proceed with the deletion, click Delete.