NOTE: To install a Helm chart repository, it is necessary to have Helm previously installed and configured in your cluster.
To start using any VMware Application Catalog Helm chart, it is necessary to first add the VMware Application Catalog Helm chart repository to Helm and then run the helm install command to deploy this chart. Follow these steps:
A Helm chart describes a specific version of a solution, also known as a "release". The "release" includes files with Kubernetes-needed resources and files that describe the installation, configuration, usage and license of a chart.
If using VMware Application Catalog for Tanzu Advanced, it is necessary to first create a Kubernetes ImagePullSecret for registry.pivotal.io/tac-for-tanzu-advanced with the registry credentials, and then log in to the registry with the registry credentials. The commands are shown below. Replace the USERNAME and TOKEN placeholders with the correct registry credentials and the SECRET-NAME placeholder with a custom name for the secret.
$ kubectl create secret docker-registry SECRET-NAME \ --docker-server https://registry.pivotal.io/tac-for-tanzu-advanced \ --docker-username "USERNAME" \ --docker-password "TOKEN" $ export HELM_EXPERIMENTAL_OCI=1 $ helm registry login registry.pivotal.io/tac-for-tanzu-advanced/charts
Check that your Kubernetes cluster is running by executing the following command:
$ kubectl cluster-info
Deploy the chart with the following command:
NOTE: Remember that MY-RELEASE is a placeholder. Replace it with the name you want to give to the deployment or add the --generate-name parameter to automatically generate a name. The name must start and end with a lower-case alphanumeric character and can only contain alphanumeric character, '-' or '.'.
$ helm install MY-RELEASE appcatalog/wordpress
If using VMware Application Catalog for Tanzu Advanced, use the commands below to deploy the chart instead. Replace the SECRET-NAME placeholder with the same Kubernetes ImagePullSecret name used previously.
**If you are using Helm CLI version older than 3.7.0** $ helm chart pull registry.pivotal.io/tac-for-tanzu-advanced/charts/wordpress:latest $ helm chart export registry.pivotal.io/tac-for-tanzu-advanced/charts/wordpress:latest $ helm install MY-RELEASE wordpress/ --set "global.imagePullSecrets=SECRET-NAME" **If you are using Helm CLI version 3.7.x (please note `export HELM_EXPERIMENTAL_OCI=1` is not needed from 3.8.0 onwards)** $ export HELM_EXPERIMENTAL_OCI=1 $ helm registry login registry.pivotal.io/tac-for-tanzu-advanced/charts $ helm install MY-RELEASE oci://registry.pivotal.io/tac-for-tanzu-advanced/charts/wordpress --set "global.imagePullSecrets=SECRET-NAME"