Forrest logo
back to the argocd tool

argocd-app:tldr:29d14

argocd-app: Deploy application internally (to the same cluster that Argo CD is running in).
$ argocd app create ${app_name} --repo ${git_repo_url} --path ${path-to-repo} --dest-server https://kubernetes.default.svc --dest-namespace ${ns}
try on your machine

The given command is used to create an application in Argo CD, a Kubernetes-native continuous delivery tool. Let's break down the command and understand its components:

  • argocd app create: This is the command used to create a new application in Argo CD.

  • ${app_name}: It is a placeholder for the name of the application you want to create. You need to replace ${app_name} with the actual name of your application.

  • --repo ${git_repo_url}: This flag specifies the Git repository URL where your application's source code is located. Replace ${git_repo_url} with the actual URL of your Git repository.

  • --path ${path-to-repo}: This flag indicates the subdirectory or path within the Git repository where your application's manifests are stored. Replace ${path-to-repo} with the actual path to your application's manifests.

  • --dest-server https://kubernetes.default.svc: This flag defines the server endpoint to deploy the application. In this case, it is set to the default Kubernetes service endpoint within the cluster.

  • --dest-namespace ${ns}: This flag specifies the Kubernetes namespace where the application should be deployed. Replace ${ns} with the namespace you want to use.

By executing this command with the appropriate values, you can create an application in Argo CD that will reflect the state described in your Git repository at the specified path.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the argocd tool