Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mijndert/argocd-demo
Quick ArgoCD demo
https://github.com/mijndert/argocd-demo
argocd gitops kubernetes
Last synced: 6 days ago
JSON representation
Quick ArgoCD demo
- Host: GitHub
- URL: https://github.com/mijndert/argocd-demo
- Owner: mijndert
- License: mit
- Created: 2020-09-25T08:20:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T12:24:27.000Z (over 4 years ago)
- Last Synced: 2025-01-18T07:45:56.183Z (6 days ago)
- Topics: argocd, gitops, kubernetes
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ArgoCD Demo
## Install Kubernetes locally
Install [Docker Desktop](https://www.docker.com/products/docker-desktop) first and enable Kubernetes in the preferences. This will give you a local Kubernetes cluster to work with.
## Install ArgoCD on your Kubernetes cluster
First, clone this Git repository.
Create a namespace for ArgoCD to live in.
```
kubectl create namespace argocd
```And install ArgoCD into the namespace.
```
kubectl -n argocd apply -f ./argocd/install.yaml
```Instead of using the install yaml from this repository, you can also deploy the latest one from ArgoCD.
```
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
```## Port forward the dashboard
Because this is a demo I'm not gonna bother with a proper load balancer or ingress controller - I'm just going to temporarily port forward the dashboard.
```
kubectl port-forward svc/argocd-server -n argocd 8080:443
```You can now access the dashboard via [localhost](http://localhost:8080/) (ignore any SSL warnings).
The default username is `admin` and the password is the name of the ArgoCD API pod, for example: `argocd-server-6744f57d55-26ctk`.
You can look up the pod name using:
```
kubectl get pods -n argocd
```## Deploy Nginx
Now we can deploy the example deployment I created, it will deploy Nginx.
```
kubectl apply -f ./argocd/nginx.yaml
```Any changes that you push to the Git repository will be automatically deployed because ArgoCD constantly watches for changes. ArgoCD will also self-heal all parts of the deployment if it detects anything is out of sync.
## Useful links
- [ArgoCD documentation](https://argoproj.github.io/argo-cd/)