Version 24.3.0
Updated 2024-11-14
Version 24.3.0
Updated 2024-11-14

Create an application in ArgoCD that can be deployed to Kubernetes cluster, with initial deployment

Steps

  • xlrelease.UserInputTask:Application input: This workflow sets up Live Deployments with ArgoCD.
    First, choose the ArgoCD server that you want to listen to, and provide the Git repository details.

  • argocd.CheckIfApplicationExists:Check if application exists: This is an automated task that checks whether an application already exists on the server based on the details provided.

    If the application does not exist, the task will be completed and the workflow will proceed to the next task.

    However, if the application already exists, the task will fail, and the workflow will be aborted. This is to prevent creating duplicate applications and ensure the proper functioning of the Argo CD Server.

  • xlrelease.UserInputTask:Namespace input: This task involves providing the namespace in which the application will be deployed and run from. Additionally, you will need to provide the Kubernetes API server to connect to for deploying and managing the application.

    If you do not provide a namespace, the task will use the default value. Please ensure that the provided namespace is valid and appropriate for your application

  • kubernetes.ExistsNamespace:Check if namespace exists: Checks if ‘${namespace}’ namespace already exists.

  • kubernetes.CreateNamespace:Create namespace: Creates the ${namespace} namespace. If it already exists, this task is skipped.

  • xlrelease.UserInputTask:Application information input: Application name and ArgoCD project.

  • xlrelease.UserInputTask:Repository authentication input: Please enter the required information below.

  • argocd.ListRepositories:Get repository details: Please enter the required information below.

  • argocd.CreateRepository:Create repository configuration:

  • xlrelease.UserInputTask:ArgoCD application configuration input: Labels & sync policies.

  • argocd.CreateApplication:Create ArgoCD Git application: Deploys ArgoCD application with given information about application name, project, git repo, path and branch.

  • argocd.CreateApplication:Create ArgoCD Helm application: Deploys ArgoCD application with given information about application name, project, git repo, path and branch.

  • argocd.SyncApplication:Sync application:

  • argocd.CheckApplicationStatus:Get application status: Checks if application is successfully deployed.

  • xlrelease.UserInputTask:Live deployment configuration input: Enter desired name for your application configuration.

  • xlrelease.ScriptTask:Create live deployment configuration: Creates configuration item to follow created application.

  • xlrelease.ScriptTask:Setup ArgoCD: Creates required configuration items in Release for connection to ArgoCD server.

  • xlrelease.ScriptTask:Configure ArgoCD: Generates ArgoCD config map required to enable live event notifications.

  • xlrelease.Task:Configuration successful: ${autoconfigMessage}

    [More about ArgoCD notifications](${autoconfigUrl})

    “`
    ${autoconfigDetails}
    “`

Authored By

Digital.ai

Digital.ai support

We would be happy to help you!