This topic assumes that Application Accelerator is installed, and that the web UI can be reached from a browser. To publish new Accelerators, you need kubectl configured with administrator rights to the cluster where the Accelerator is running.

Getting Started

You can use any git repository to create an Accelerator. You need the URL for the repository to create an Accelerator.

Use the following procedure to create an accelerator:

  1. Select New Accelerator in the Application Accelerator web UI.

    New Accelerator in web UI

  2. Fill in the new project form with the following information:

    • Name: Your Accelerator name.
    • (Optional) Description: A description of your accelerator.
    • K8s Resource Name: A Kubernetes resource name.
    • Git Repository URL: The git repository URL you use to create an accelerator.
    • Git Branch: the name of your git branch.
    • (Optional) Tags: Any associated tags.

    New Accelerator form in web UI

  3. Download and expand the zip file.

    New Accelerator files in VS Code

  4. To apply the k8s-resource.yml, run the following command in your terminal in the folder where you expanded the zip file:

    kubectl apply -f k8s-resource.yaml
    

    The output file contains YAML for an Accelerator resource, pointing to the git repository.

    apiVersion: accelerator.apps.tanzu.vmware.com/v1alpha1
    kind: Accelerator
    metadata:
    name: simple-accelerator
    spec:
      git:
        url: https://github.com/jldec/readme
        ref:
          branch: main
    
  5. Refresh the Accelerator web UI to reveal the newly published accelerator.

    Another Accelerator appears in the web UI

Using application.yaml

The Accelerator zip file contains a file called new-accelerator.yaml. This file contains additional information about the Accelerator.

accelerator:
  displayName: Simple Accelerator
  description: Contains just a README
  iconUrl: https://raw.githubusercontent.com/simple-starters/icons/master/icon-tanzu-light.png
  tags:
  - simple
  - README

Copy this file into your git repo as accelerator.yaml to have additional attributes rendered in the web UI.

Accelerator with tags and other information in the web UI

Next steps

Learn more about:

check-circle-line exclamation-circle-line close-line
Scroll to top icon