copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2024-01-05 |
onboard software, Helm chart, software, private catalog, target, deployment target |
account |
{{site.data.keyword.attribute-definition-list}}
{: #helm-targets}
You can copy the configuration of an existing version of a Helm chart and deploy it to a new deployment target. The deployment target options for Helm charts are {{site.data.keyword.containerlong_notm}} and {{site.data.keyword.openshiftlong_notm}}. {: shortdesc}
{: #helm-targets-ui} {: ui}
- Go to the Manage > Catalogs in the {{site.data.keyword.cloud}} console, and click Private catalogs.
- Select the private catalog that contains the current Helm chart version.
- Click the existing version from the list of products in your private catalog.
- Click Add version from the Version list table.
- Select Copy the configuration of an existing version and deploy it to a new target.
- Select your existing version.
- Click Copy existing version.
Your copied version is displayed in your version list as a separate entry from your existing version. The two versions have the same version number but different deployment targets.
{: #helm-targets-tf} {: terraform}
Before you can deploy a Helm chart to a new target by using Terraform, make sure that you have completed the following:
- Install the Terraform CLI and configure the {{site.data.keyword.cloud_notm}} Provider plug-in for Terraform. For more information, see the tutorial for Getting started with Terraform on {{site.data.keyword.cloud}}. The plug-in abstracts the {{site.data.keyword.cloud_notm}} APIs that are used to complete this task.
- Create a Terraform configuration file that is named
main.tf
. In this file, you define resources by using HashiCorp Configuration Language. For more information, see the Terraform documentation{: external}.
Use the following steps to deploy your Helm chart to a new target by using Terraform:
-
Create an argument in your
main.tf
file. The following example shows the software version details by using thecm_version
resource, whereoffering_id
is used to identify the Helm chart.resource "cm_version" "cm_version" { catalog_identifier = "catalog_identifier" offering_id = "offering_id" zipurl = "placeholder" }
{: codeblock}
You can specify
target_kinds
for thecm_version
resource. For more information, see the argument details on the Terraform Catalog Management{: external} page. -
After you finish building your configuration file, initialize the Terraform CLI. For more information, see Initializing Working Directories{: external}.
terraform init
{: pre}
-
Provision the resources from the
main.tf
file. For more information, see Provisioning Infrastructure with Terraform{: external}.-
Run
terraform plan
to generate a Terraform execution plan to preview the proposed actions.terraform plan
{: pre}
-
Run
terraform apply
to create the resources that are defined in the plan.terraform apply
{: pre}
-