Skip to content
ImagineWorld

Getting Started with Argo CD

node_idnode-book_argo-cd-in-practice_chapter-02-getting-started-with-argo-cd
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num2
chapter_titleGetting Started with Argo CD
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 2 — Getting Started with Argo CD

Section titled “Chapter 2 — Getting Started with Argo CD”

We will start this chapter by explaining what Argo CD is and the underlying technology that the platform is built on so that we can set the fundamentals. We will explain the core concepts of Argo CD, and we will go through the necessary vocabulary you need to know before the deep dive into it.

Then, we will describe the architectural overview of Argo CD and a typical workflow in terms of GitOps. We will describe in detail each of the core components and their responsibilities so that we will be able to understand and troubleshoot potential issues.

In the end, we will install Argo CD in the Kubernetes cluster on our local machine, and we will try to deploy an application using it and observe the GitOps phases through Argo CD.

In this chapter, we’re going to cover the following main topics:

  • What is Argo CD?
  • Core concepts and vocabulary
  • Explaining the architecture
  • Synchronization principles

For this chapter, you will need access to a Kubernetes cluster, which we will run locally with one of the following tools:

We are going to use a Helm chart to deploy Argo CD and a demo application in the local cluster. We need to install Helm CLI (https://helm.sh/docs/intro/quickstart/) on a local machine. We will use Visual Studio Code (https://code.visualstudio.com) to edit the Helm chart values. The code can be found at the book’s companion GitHub repository in the ch02 folder.

For several years, most of us have been using the same separate types of environments in an application, which are divided into development, test, staging, and production. Representing these in Kubernetes differs in many ways and depends on many other factors, such as the size of a team and budgeting. One of these could be different clusters per environment, or another one a separation within one cluster by namespaces. In any of these, we usually create a new namespace for the application with the necessary deployment resources and add whatever is needed to configure our application for an environment (ConfigMap, Secrets, Ingress, and so on).

The drawback with the aforementioned approach is that there will be configuration drift over time. For example, our development cluster or namespace will have the latest development version of the application or changes in Kubernetes resources such as network policies, but we will need to manually apply all the changes to the rest of the environments. A simple solution to solve this problem is to use a package manager such as Helm, Kustomize, or jsonnet so that we can define the resources of the application in a repeatable manner and as a single point of authority. For example, with Helm, we can create a couple of different versions and deploy each of them accordingly to each environment, but again, this is hard to keep track of and adds extra complexity.

But what if we were following the GitOps approach? The whole configuration will live in a Git repository, which will be the source of truth with pull requests and reviews for any change. Lastly, what if we had a similar controller as that described in Chapter 1, GitOps and Kubernetes? The controller ideally would automatically apply all of the configurations from our Git repository. Every time there is a manual change in Kubernetes resources and the desired state, which is located in the Git repository and won’t match, the controller will try to reapply the desired state in order to always have the Git repository as the source of truth.

What we described previously is called GitOps, and it’s even more powerful with Argo CD. Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. One of the core components of Argo CD is called application controller, which in practice observes continuously the running applications and compares the current application state against the desired target state, for which the source of truth is a Git repository. The following uses cases are empowered with Argo CD:

  • Automated deployment: After any Git commit action, or CI pipeline run and a manual sync trigger, the Argo CD controller will push the desired state from the Git repository into the cluster in an automated manner. This is achieved while using the Argo Events automation framework (https://argoproj.github.io/argo-events/) or a manual user request.
  • Observability: Argo CD offers a UI, CLI, and Argo CD Notifications engine (https://argocd-notifications.readthedocs.io/en/stable/) with which we can identify whether the state of the application state is in sync with the desired state in Git.
  • Multi-tenancy: The ability to manage and deploy to multiple clusters with Role Based Access Control (RBAC) policies for authorization.

The Argo project is a family of many tools, as you saw previously, which includes the following:

All of them are components are complementary to each other which form some of the great GitOps and DevOps cultures and practices.

In this section, we will describe some of the core components of Argo CD, such as reconciliation, and describe in detail the core objects’ Custom Resource Definitions (CRDs) of Argo CD. In parallel, we will set up a vocabulary so that we can have a common language for Argo CD operations. Lastly, we will observe the reconciliation loop and how Argo CD works.

Argo CD, as described previously, has a duty to match the desired state described in a Git repository with the live state in the cluster and deliver it in the environment of our preference. This is called reconciliation, and Argo CD is in a reconciling loop from the Git repository to Kubernetes, as the following diagram shows, assuming we use Helm:

Figure 2.1 – The reconciling loop

Figure 2.1 – The reconciling loop

As we see in Figure 2*.1*, Argo CD watches the Git repository and runs first a Helm template to generate the Kubernetes manifest YAML and compares them with the desired state in the cluster, which is called sync status. If Argo CD identifies any differences, then the templated files will be applied with kubectl apply and change accordingly the Kubernetes desired state, which can be automated or done manually. Also, Argo CD watches the live Kubernetes objects and compares them to the Kubernetes desired state, which is called the health status of the application.

A nice observation here is that Argo CD didn’t use helm install but the standard kubectl apply instead. The reason for this is that Argo CD supports many templating tools, and its responsibility is to deploy the desired state as a GitOps declarative tool without being a wrapper to any of these tools.

After introducing the GitOps and Argo CD core concepts, we need to define some required vocabulary terms that we have already used and will be using across the book:

  • Application: A group of Kubernetes resources that are described by manifest. These are defined in Argo CD as Custom Resource Definitions (CRDs): https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/#customresourcedefinitions.
  • Application source type: The tool we use to build applications such as H elm, Kustomize, and jsonnet.
  • Target state: The desired state of an application, as represented in a Git repository, which is the source of truth.
  • Live state: The live state of that application, which means what kind of Kubernetes resources are deployed.
  • Sync status: The status which shows that the live state matches the target state. Simply put, it’s whether the application deployed in Kubernetes matches the desired states as described in the Git repository.
  • Sync: The phase of moving an application to the target state, which happens by applying the changes in the Kubernetes cluster.
  • Sync operation status: The status for the sync phase, whether it’s failed or succeeded.
  • Refresh: Compare the latest code in Git with the live state and check what is different.
  • Health status: The health of the application that it is running and whether it can serve requests.

In this section, we will describe in depth the architecture of Argo CD, and we will take a deep dive into the core components of Argo CD. At the end, we will run Argo CD in a local Kubernetes cluster and run some examples to get better practical experience with it.

The Argo CD core component has been implemented as a Kubernetes controller, so before diving into each component individually, we need to understand how a Kubernetes controller works.

Kubernetes controllers, in practice, observe the state of the cluster, and then they apply or request changes if they are needed. So, in practice, the controller will try to keep the current cluster state similar to the desired state. A controller observes a Kubernetes resource object – at least one – and this has a spec field that represents the desired state.

Argo CD is a set of various components and tools. It’s time to explore in detail and learn about the responsibilities of each core component that forms the brain of Argo CD:

  • API server: Similar to Kubernetes, Argo CD has an API server that exposes APIs that other systems can interact with, such as Web UI, CLI, Argo Events, and CI/CD systems. The API server is responsible for the following:
    • Managing the applications and reporting back their status
      • Triggering a set of operations to the applications
      • Management of Git repositories and Kubernetes clusters
      • Authentication and SSO support
      • RBAC policy enforcement
  • Repository server: The repository server’s main responsibility is to maintain a local cache of the Git repository holding the application manifests. Other Argo services make requests to the repository server in order to get the Kubernetes manifests, based on the following inputs:
    • The URL of the repository
      • Git revision
      • The application path
      • The template-specific settings: parameters, ksonnet environments, and helm values.yaml
  • Application controller: The application controller continuously observes the live state of the application and makes a comparison with the desired state in the Git repository. Whenever there is a drift and the state are not in sync, then the controller will try to fix it and match the current state with the desired state. One of its final responsibilities is to execute any user-defined hooks for the life cycle events of the application.

A detailed overview of the architecture is represented in the following diagram:

Figure 2.2 – The architecture of Argo CD

Figure 2.2 – The architecture of Argo CD

We can see in Figure 2*.2* that Argo tools and external tools interact with the API server of Argo CD directly. As described previously, Argo CD polls repositories to fetch the desired state, and by default, it polls the Git repositories every 3 minutes. If we want to avoid this delay, there are a few other options that can immediately trigger the sync phase.

Argo CD comes with a UI where we can manually initiate the sync phase, which we will explore later in this chapter.

Argo CD has a CLI to interact with the API server, as the previous diagram illustrates. For a real example, imagine that we can use the CLI from CI/CD or our local machine to sync an application with the following command:

argocd app sync myapp

The last option is to set up the Webhook configuration, as we saw in the diagram, which initiates immediately the sync phase. Argo CD supports Git Webhook notifications from GitHub, GitLab, Bitbucket, Bitbucket Server, and Gogs.

Argo CD applications, projects, repositories, and cluster credentials and settings can be defined declaratively using Kubernetes manifests. These are defined as CRDs. Let’s take a deep dive into the core objects/resources of Argo CD:

  • Application: Argo CD implements a CRD named Application, which in practice represents the instance of the application we would like to deploy in a Kubernetes cluster (environment). An example can be found
    apiVersion: argoproj.io/v1alpha1
    kind: Application
    metadata:
    name: guestbook
    namespace: argocd
    spec:
    project: default
    source:
    repoURL: https://github.com/argoproj/argocd-example-apps.git
    targetRevision: HEAD
    path: guestbook
    destination:
    server: https://kubernetes.default.svc
    namespace: guestbook
  • AppProject: Just like an application, there is a CRD called AppProject. This gives us the ability to group related applications, such as by tagging them. A real example is a separation between applications and utility services. An example can be found
    apiVersion: argoproj.io/v1alpha1
    kind: AppProject
    metadata:
    name: applications
    namespace: argocd
    finalizers:
    - resources-finalizer.argocd.argoproj.io
    spec:
    description: Example Project
    # Allow manifests to deploy from any Git repos
    sourceRepos:
    - '*'
    # Only permit applications to deploy to the guestbook namespace in the same cluster
    destinations:
    - namespace: guestbook
    server: https://kubernetes.default.svc
    # Deny all cluster-scoped resources from being created, except for Namespace
    clusterResourceWhitelist:
    - group: ''
    kind: Namespace
  • Repository credentials: In real life, we need to use private repositories, and to give Argo CD the ability to access them, we need to provide some kind of access credentials. Argo CD in practice uses the Kubernetes Secrets and ConfigMaps. So, we need to create the necessary Secret Kubernetes resources with a special Kubernetes label, rgocd.argoproj.io/secret-type: repository. An example of a Secret can be found
    apiVersion: v1
    kind: Secret
    metadata:
    name: private-repo
    namespace: argocd
    labels:
    argocd.argoproj.io/secret-type: repository
    stringData:
    url: Error! Hyperlink reference not valid.
    sshPrivateKey: |
    -----BEGIN OPENSSH PRIVATE KEY-----
    ...
    -----END OPENSSH PRIVATE KEY-----
  • Cluster credentials: As with repository credentials, we need to get access to another Kubernetes cluster if Argo CD manages multiple clusters and it’s not included in the ones that Argo CD already runs. The difference here is the Kubernetes label, as it’s a different Secret type. argocd.argoproj.io/secret-type: cluster. Another example of a Secret can be found
    apiVersion: v1
    kind: Secret
    metadata:
    name: mycluster-secret
    labels:
    argocd.argoproj.io/secret-type: cluster
    type: Opaque
    stringData:
    name: mycluster.com
    server: https://mycluster.com
    config: |
    {
    "bearerToken": "<authentication token>",
    "tlsClientConfig": {
    "insecure": false,
    "caData": "<base64 encoded certificate>"
    }
    }

Now that we are familiar with the important core objects and resources needed by Argo CD, it’s time to run Argo CD locally and see in practice how it works.

Firstly, we will use Kind (https://kind.sigs.Kubernetes.io/) to create a new cluster locally. Create a kind.yaml file and use this in the configuration to create the cluster:

kind: Cluster
apiVersion: kind.x-Kubernetes.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP

With the following YAML and the node-labels configuration, we will only allow the Ingress controller to run on a specific node(s) that matches the label selector.

In order to create the cluster, we need to run the following command and wait until the creation finishes successfully:

$ kind create cluster --config=kind.yaml --name=ch02

The output of the command should be like the following:

Figure 2.3 – Kind cluster status

Figure 2.3 – Kind cluster status

After the creation is complete, we need to set the context of this new cluster with the following command:

$ kubectl config set-context kind-ch02

We are ready to install Argo CD using the templating tool Helm, and the chart is available here: https://github.com/argoproj/argo-helm/tree/master/charts/argo-cd.

First, we need to add the Helm repository of Argo CD to our local machine so that we can then deploy the particular chart using the following command:

$ helm repo add argo https://argoproj.github.io/argo-helm

Then, let’s install Argo CD under the argocd namespace using the following command:

$ kubectl create namespace argocd
$ helm install ch02 --namespace argocd argo/argo-cd

As we didn’t install any Ingress controllers, we can access the Argo CD UI, or we can interact with API through the CLI if we use port-forward the related port of the deployment:

$ kubectl port-forward service/ch02-argocd-server -n argocd 8080:443

Now that the UI is accessible, let’s get the password with argocd-initial-admin-secret, which was created automatically after the Argo CD deployment:

$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

Now, it’s time to run the first application in Argo CD using the Argo CLI. First, we need to create the necessary CRD to describe an application of Argo CD and install it in the NGINX cluster:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nginx
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
destination:
namespace: nginx
server: https://kubernetes.default.svc
project: default
source:
chart: nginx
repoURL: https://charts.bitnami.com/bitnami
targetRevision: 13.2.10

If we check the CRD closely, we see that we are using Helm, which is one of the many ways for Argo CD to install apps. More specifically, this is the particular part in the Application CRD manifest that indicates to Argo CD that it needs to use Helm:

source:
chart: nginx
repoURL: https://charts.bitnami.com/bitnami
targetRevision: 13.2.10

The next step is to apply the manifest with the kubectl apply command:

$ kubectl apply -f argo-app/

In the UI, hit the SYNC button, and if everything ran successfully, we will see a green status and the related Kubernetes resources deployed, such as the ReplicaSet (RS), in the UI:

Figure 2.4 – Application synced

Figure 2.4 – Application synced

An alternative way to create and sync a new application without the need for a CRD is to use the Argo CLI, but this should be used in cases when we want to test something fast.

Important Note

The purpose of GitOps is to track everything in a Git repository and this is the source of truth when it comes to the desired state. If we just use the CLI to create Argo CD applications, then we skip this important step, and we are violating the GitOps principles.

First, we need to log in to the Argo CD server. For this example, just use the credentials from the previous admin/admin step:

$ argocd login localhost:8080

Important Note

You will get a warning from Argo CD, as by default, it doesn’t use a signed certificate by a known authority. You can just type y to proceed insecurely for the sake of the experiment:

**WARNING: server certificate had error: x509: certificate signed by unknown authority. Proceed insecurely (**y/n)? y

Then, type the username and password to log in, and the command output will be the following:

'admin:login' logged in successfully
Context 'localhost:8080' updated

After the login succeeds, you are able to interact with the Argo CD API server. Now, let’s create the same NGINX Argo CD application by only using the CLI:

$ argocd app create nginx --repo https://charts.bitnami.com/bitnami \
--helm-chart nginx --revision 13.2.10 \
--dest-server https://kubernetes.default.svc \
--dest-namespace nginx

Though the same as before, the application is not synced, and we need to trigger this operation explicitly. Now, we won’t use the UI but a real-life example, the Argo CLI. We need to run the following command:

$ argocd app sync nginx

This command will start the sync phase of the Argo CD NGINX application, which we have set in the declarative configuration, as mentioned in Figure 2*.4*.

Important Note

For the sake of the example, we used the admin user. The admin user should be used only for initial configuration, and then switch to local users or configure SSO integration (https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/). More details will be described in Chapter 3, Access Control. For CI system implementations, we need to use tokens for a particular user that is responsible for the CI. An example of this is the following: $ argocd account generate-token -- account ci-bot.

You made it, and this is your first experience installing Argo CD locally with Helm and your first practical deployment of Argo CD. But Argo CD is a set of tools, and the Argo CD team is trying to simplify and automate most of the manual steps we did in this section. Now, let’s see how we can simplify all the steps described in this section with Argo CD Autopilot.

Running Argo CD with Argo CD Autopilot locally

Section titled “Running Argo CD with Argo CD Autopilot locally”

If it’s your first time using GitOps and Argo CD, you may have some doubts about how to structure your Git repository and manage applications across different environments. The Argo CD team created a tool called Argo CD Autopilot that can help you with onboarding to GitOps and Argo CD. Argo CD Autopilot was created to help the operator with the following:

  • Creating and managing the bootstrap Argo CD application using GitOps.
  • Setting up a formal structure in the GitHub repository to add new services and go through the Argo CD life cycle
  • Updating and promoting applications across your different available environments
  • The ability to plan for disaster recovery and bootstrap a failover cluster with all the necessary utilities and applications
  • Soon to support encryption for the Secrets are used in Argo CD applications

I know you are surprised with the first bullet; it’s like an inception where Argo CD manages itself. But the answer is, why not? Argo CD is another deployment in the cluster through manifests or Helm, so you can change its configuration accordingly using GitOps principles.

Actually, Argo CD Autopilot does a couple of magic things. The Autopilot bootstrap will push in the Git repository under a specific directory an Argo CD application manifest. This will actually manage the Argo CD installation, and you will be able to manage it with GitOps practices.

Again, I am a visual person, and we can understand a bit better if we check the Argo CD Autopilot architecture:

Figure 2.5 – Argo CD Autopilot architecture

Figure 2.5 – Argo CD Autopilot architecture

During the bootstrap phase, when we deploy Argo CD, Autopilot communicates with the Kubernetes cluster, and after this, there is no need to access it anymore. The only access that will be required from now on is to the GitOps repository. When we add any new Argo CRD to the Kubernetes cluster, Autopilot will need access to the Argo CD server.

It’s time to see a real example of how it works. First, we need to install Argo CD Autopilot, and on this page (https://argocd-autopilot.readthedocs.io/en/stable/Installation-Guide/), you can pick the related method according to your operating system. I prefer to use the Docker container (https://argocd-autopilot.readthedocs.io/en/stable/Installation-Guide/#docker) so that I can minimize the tools I install locally on my system.

Next, we need a valid Git repository where Argo CD Autopilot will push the related structure and manifests. Then, we need a valid Git token so that we can interact with the repository in terms of cloning and pushing changes. For example, if we use GitHub, we can create a token from Developer settings and create a personal access token (https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token):

Figure 2.6 – Creating a GitHub personal access token

Figure 2.6 – Creating a GitHub personal access token

Next, we need to export GIT_REPO and GIT_TOKEN in the Docker container environments so that we can run Argo CD Autopilot:

$ export GIT_TOKEN=<your-personal-access-token>
$ export GIT_REPO=https://<your-git-repo-url>
$ argocd-autopilot repo bootstrap

The last command pushes the manifests, creates the necessary structure in the Git repository, and in parallel, installs Argo CD in the Kubernetes cluster for the selected context we have set for the chapter’s example. You can find the structure of the repository here: https://github.com/spirosoik/ch02. After the command finishes successfully, you are ready to visit the Argo CD UI, and the output will be the following:

INFO argocd initialized. password: <generated password>
INFO run:
kubectl port-forward -n argocd svc/argocd-server 8080:80

After running the port-forward command, use the generated password and open http://localhost:8080 to log in to the UI as admin. We will see in the UI that Argo CD manages itself already:

Figure 2.7 – Argo CD Autopilot inception

Figure 2.7 – Argo CD Autopilot inception

Now, it’s time to create a testing Argo CD project and application again using Argo CD Autopilot:

$ argocd-autopilot project create testing
$ argocd-autopilot app create hello-world \--app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ -p testing --wait-timeout 2m
$ argocd-autopilot app create hello-world2 \--app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ -p testing --wait-timeout 2m

After the application is created, and after Argo CD has finished its sync cycle, our new projects will appear under the root application:

Figure 2.8 – Argo Autopilot app of apps pattern

Figure 2.8 – Argo Autopilot app of apps pattern

This grouping in Argo CD is called the app of apps pattern (https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#app-of-apps). In order to understand this better, the idea is that we are able to build a main application that is responsible for creating other applications. The power of the app of apps pattern is that it gives us a declarative way to manage a group of applications and can be deployed and configured in concert.

Important Note

Argo CD Autopilot supports only Gitea and GitHub at the time of writing.

After this practical section with Argo CD Autopilot, we are now familiar with the core concepts of Argo CD, so it’s time to expand our knowledge further with the synchronization principles that are applied by Argo CD.

The sync phase of Argo CD is one of the most important operations and can become powerful if you use resource hooks and sync waves. This section will explain in detail these operations, and you will see the unlimited power they can give you in a real environment.

As we described in a previous section, sync is the phase for moving an application to the target state, which happens by applying the changes in the Kubernetes cluster, and this operation is executed by Argo CD in a number of steps. The phases of sync are as follows:

  • Pre-sync
  • Sync
  • Post-sync

These are called resource hooks, which give us the power to run any other operation before, during, or after the sync phase:

  • Use a PreSync hook to perform any action that needs to be done before the sync phase. A typical example is database migration as we need to run first the migrations.
  • Use Skip to inform Argo CD to skip the application of the manifest.
  • Use a Sync hook to orchestrate a complex deployment that requires more sophistication than Kubernetes’ rolling update strategy, such as a blue/green or canary release.
  • Use a PostSync hook to run integration and health checks after a deployment or tweet that the new release is out and any other integration with other systems.
  • Use a SyncFail hook to run cleanup or finalizer logic if a Sync operation fails.

The resource hooks are applied to the particular Kubernetes manifests. For example, let’s imagine that we have a schema migration for a database and we run this in a Kubernetes Kind Job; the resource hook will be just a Kubernetes annotation. The annotation will indicate to Argo CD when this resource should execute during the sync operation. An example of this is the following manifest:

apiVersion: batch/v1
kind: Job
metadata:
generateName: schema-migrate-
annotations:
argocd.argoproj.io/hook: PreSync

The resource hooks are a nice way to reorder manifest synchronization under a logical order and based on your use case.

At a high level, there are three phases, pre-sync, sync, and post-sync, as described earlier. Within these three phases, we can have one or more waves that allow us to ensure that certain resources are healthy before subsequent resources are synced.

In short, you can order how Kubernetes manifests are synchronized via an annotation. Waves can assume both positive and negative values; if no wave is specified, the wave zero is assigned by default.

Configuring a wave is pretty simple; just add an annotation in the particular manifest:

metadata:
annotations:
argocd.argoproj.io/sync-wave: "5"

Everything works because we actually have two ways to reorder manifests:

  • Resource hooks
  • Sync waves

First of all, we can use both ways in parallel and combine them. When the sync operation starts and the Argo CD orders the resources with the following steps:

  1. First, check the phase annotation.
  2. Then the wave annotation with the lower values.
  3. By the Kubernetes kind – for example, namespaces first.
  4. By name.

Then, Argo CD decides which wave will be applied next, and this is where any out-of-sync or unhealthy resources will be discovered. Next, it applies this wave, and it continues in a repeated manner till all phases and waves are in sync and healthy. Let’s keep in mind that if an application has resources that could be unhealthy during the first wave, then the app cannot be healthy.

We will see in practice how they work in Chapter 5, Argo CD Bootstrap K8s cluster, where we will have real-life examples of Argo CD in a production environment.

In this chapter, we got familiar with the core concepts of Argo CD, and we set up an Argo CD vocabulary so that we can have a common language in the next chapters. We checked in detail the architectural overview and how Argo CD works in detail. In parallel, we ran Argo CD in a local environment, and we deployed our first Argo CD application. Finally, we discussed two of the most powerful features of Argo CD, resource hooks and sync waves.

In the next chapter, we will start exploring how to operate Argo CD as an operator in a declarative manner and follow the best practices.