Example 4: Running a Helm chart deployment

2 minute readDeveloper productivity

In this example, you create an application model that runs a Helm chart deployment.

  1. From the main menu, navigate to Deployment Automation Applications.

  2. Select New. The New Application dialog appears.

  3. Select Create New.

  4. Fill in the Application name, RSS and select the project, Trial Guide. Select the Application type Microservice, and then select OK.

  5. Select the New microservice icon (+) to define the new microservice.

  6. Select Next to use the default New microservices selection.

  7. In the New microservice dialog, complete the information as follows:
    Name: freshrss
    Definition type: Helm
    Definition source: Helm repository
    Repository URL: https://halkeye.github.io/helm-charts
    Repository name: halkeye
    Release name: freshrss
    Chart: halkeye/freshss
    Add the following code for the additional options:

    --set=ingress.enabled=true
    --set=ingress.hosts[0]=$[/javascript server.hostName.replace("sda","$[/myJob/ec_microservice_deployment_parameters/$[/myMicroservice]/clusterDefinition/namespace]")]

    This code enables access to the application through a public URL.

  8. Select OK.

  9. In the New environment object, select the New cluster (+) button.

  10. Select Next to accept the default action to create a new environment.

  11. In the Edit microservice dialog, complete the information as follows:

    1. Enter the Environment name as RSS - QA.

    2. Select the Trial Guide project. In the Cluster name field, enter qa.

    3. In Configuration provider, select Kubernetes - Helm.

    4. In Configuration name, select Helm.

    5. In Utility resource name, enter "Kubernetes".

    6. In Resource, select k8s-agent.

    7. Select OK.

  12. Create the RSS - UAT environment. Select the plus sign (+) the RSS - QA environment and perform the steps above again but this time using uat instead of qa.

If the Deploy button is not activated, make sure the microservice is mapped to the new environment. Select the freshrss Helm component menu and select Add Mapping. Drag the end point to the RSS - UAT environment.
  1. Select Deploy Application and RSS - QA as the target environment.

  2. To view the inventory, select the RSS - QA link from the bread crumb, then select Inventory.

  3. View the microservices deployment details by selecting Details from the menu for freshrss microservice.

  4. Access the application. Note the URL above on line 10; this URL can be used to access the deployed application.