Creating an Application Template
The configuration options for an application can be extracted from a catalog and viewed, saved to a file, or edited directly. To view the configuration, you generate a template. To save the template to a file to use for an installation, redirect the output to a file.
To edit a template interactively, set the EDITOR
environment
variable to the location of a text editing program. For example:
export EDITOR=/usr/bin/vim
Use the ocne application template
command to create an
application template. The syntax is:
ocne application template
{-c|--catalog} name
[{-i|--interactive}]
{-N|--name} name
[{-v|--version} version]
For more information on the syntax options, see Oracle Cloud Native Environment: CLI.
Examples:
To display a template for an application named
prometheus
in the default catalog:
ocne application template --name prometheus
To save a template for an application to a file, pipe the output to a file:
ocne application template --name prometheus > mytemplate.yaml
To save a template for an application and edit it interactively:
ocne application template --name prometheus --interactive
The template is saved to a local file using the naming convention
application_name-values.yaml
.
The following steps show you how to edit an application template in the UI before proceeding with the installation:
-
In the navigation menu, select Apps.
The Apps section expands to display further options in the navigation menu.
-
Select Oracle Cloud Native Environment Application Catalog.
The Applications page is displayed, listing the applications available in the catalog.
-
Select the Install option for the application whose template you're creating.
A dialog box appears with an edit box containing the application template for application you selected. The dialog also contains mandatory fields to configure the installation.-
Edit the application template as required.
-
Complete the mandatory fields: Release Name, Namespaces, Versions, Release Description
-
-
Select Install.
The dialog is dismissed, and on-screen messages are displayed to confirm the installation request has been successfully submitted and completed.