Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipelaptrin/argocd-blog
All the code used to support the ArgoCD Beyond Basics blog post
https://github.com/felipelaptrin/argocd-blog
argocd blog devbox gitops kind kubernetes
Last synced: about 1 month ago
JSON representation
All the code used to support the ArgoCD Beyond Basics blog post
- Host: GitHub
- URL: https://github.com/felipelaptrin/argocd-blog
- Owner: felipelaptrin
- Created: 2024-04-23T14:22:17.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-26T14:52:57.000Z (9 months ago)
- Last Synced: 2024-10-11T17:06:34.729Z (3 months ago)
- Topics: argocd, blog, devbox, gitops, kind, kubernetes
- Language: Shell
- Homepage: https://felipetrindade.com/argocd-beyond-basics/
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ArgoCD Beyond the Basics
This repository contains practical examples of my blog post called [ArgoCD beyond the basics](https://felipetrindade.com/argocd-beyond-basics/).
## Run this locally
To run this locally you only need to install [devbox](https://github.com/jetify-com/devbox). Devbox is a tool that ensures a consistent developer environment. Devbox will ensure that in your local environment, you will have the following tools:
- `Kubectl`: Kubernetes command line
- `Kind`: Kubernetes locally using Docker
- `yq`: Easily manage YAML manifests1) Install dependencies
```sh
devbox shell
```2) Create infrastructure
```sh
devbox run create
```This will create two local Kubernetes clusters using Kind and install ArgoCD in the local cluster. The cluster called `prod` is the cluster that ArgoCD will be installed and the `dev` cluster is the external cluster.
3) Connect to the ArgoCD
```sh
devbox run connect
```And follow the instructions to connect to the ArgoCD UI.
4) Delete it all when done!
```sh
devbox run destroy
```To delete the local Kubernetes cluster.
## Run the experiments
### App of Apps
```sh
devbox run app-of-apps
```This will create the app of apps pattern.
### Multi-Cluster
```sh
devbox run multi-cluster
```It creates all the Kubernetes resources that allows ArgoCD to deploy to an external cluster (dev cluster).
### ApplicationSet
```sh
devbox run applicationset
```### Hooks and sync wave
When you run the app of apps command (`devbox run app-of-apps`) it automatically creates the example of an application using hooks and sync waves. Notice that this application does not have auto sync, so you can go sync manually on the ArgoCD UI and check the behavior.