Search⌘ K
AI Features

Deploying an Application with Argo CD

Explore the process of deploying Kubernetes applications using Argo CD and GitOps principles. Learn to link applications to Git repositories, synchronize desired application states, and manage deployments through UI and CLI tools for efficient cluster management.

Take a look at the demo application

Now that we have Argo CD up and running, let’s take a look at one of the demo applications we'll deploy.

Kubernetes YAML files that define the application are in the k8s directory. Let’s take a peek at what’s inside.

ls -1 k8s

The output is as follows.

Shell
deployment.yaml
ing.yaml
service.yaml

We can probably guess from the names of those files that there's a Deployment, an Ingress, and a Service. There’s probably no need to look at the content. They're as ordinary and uneventful as they can be.

We could execute something like kubectl apply --file k8s to deploy that application, but we won't. We’ll take a different approach. Instead of telling Kube API that we’d like to have the resources defined in those files, we'll inform Argo CD that there's a Git repository devops-toolkit it should use as the desired state of that application. But, before we do that, let’s create a namespace where we’d like that application to reside.

Shell
kubectl create namespace devops-toolkit

Create an Argo CD app

Instead of creating the application defined in the ...