Skip to main content

Update a Compute Tempate

< introduction | update compute templates

This section covers the "Update" phase of the compute template's lifecycle.

Compute Tempates Lifecycle - Update


Prerequisite(s)


Overview

You can update a compute template at any time, but the new configuration will only apply to new node pools created from the updated template. Existing node pools on clusters created with the previous template will remain unchanged.

After updating the compute template, follow the same lifecycle steps as with the initial version. This includes validating that the compute template creates the node pools as intended. The updated compute templates will automatically appear in workspaces.


CLI Instructions

CLI Commands - Quick Reference

InstructionCLI Command
Output the compute template's manifest to filewf get computetemplate TEMPLATE -o yaml > MYTEMPLATE.yaml
Apply the compute template's manifest from filewf apply -f MYTEMPLATE.yaml

Update a compute template

The most effective way to update a compute template in the CLI is to output the YAML to a file, make the necessary edits, and then apply it using the wf apply command.

  1. Use the wf get computetemplate NAME with the -o yaml > FILE.yaml flag to output the YAML to file.
wf get computetemplate my-demo-template -o yaml > MYTEMPLATE.yaml

This outputs my-demo-template the compute template to file MYTEMPLATE.yaml.


  1. Edit the compute template file and apply the changes using the wf apply command:
wf apply -f MYTEMPLATE.yaml


Web Interface Instructions





Steps

The UI properties in this section are identical to those used when creating a new compute template. For detailed information on each property, please refer to the "Create Compute Tempates" section.

  • Expand Admin, and then navigate to Kubernetes > Compute Tempates
  • Select the Name of your compute template
  • Click the Edit button
  • Make the updates as need such as adding another node pool.
  • Navigate to the Summary section and review your updates.
  • Navigate to the YAML section and use one of the methods to apply your changes.

Screenshot(s)

  • Click the Edit button to make updates.
Edit Compute Templates