This repository contains configurations for deploying applications using ArgoCD in a Kubernetes environment.
- app-ci-image/: Contains Dockerfile and related resources for building the application image.
- k8s-app-kustomize/: Includes Kustomize overlays for different environments (e.g. dev, prod).
- argocd-application-dev.yaml: ArgoCD Application manifest for deploying to the development environment.
- argocd-application-prod.yaml: ArgoCD Application manifest for Production environment.
- Kubernetes cluster (e.g., k3d)
- ArgoCD installed in the cluster
kubectl
CLI
-
Clone the repository:
git clone https://github.com/OpsMo/argocd-app.git cd argocd-app
-
Set up the application image:
- Navigate to the
app-ci-image
directory. - Build and push the Docker image manually:
docker build -t your-repo/your-app:latest . docker push your-repo/your-app:latest
- Or - Alternatively, use Jenkins for CI/CD automation. The
Jenkinsfile
in theapp-ci-image
directory provides an Example of pipeline configuration. check the Jenkinsfile.
- Navigate to the
-
Configure ArgoCD Application:
- Review and modify
argocd-application-dev.yaml
as needed. - Apply the configuration:
kubectl apply -f argocd-application-dev.yaml
- Review and modify
-
Access the Application:
This project is licensed under the MIT License. See the LICENSE file for details.