fix: 🐛 enable argo to sync

This commit is contained in:
2026-01-16 20:18:31 +00:00
parent e1cb2c141f
commit 27ab07fc29
2 changed files with 35 additions and 14 deletions

View File

@@ -1,27 +1,28 @@
# ArgoCD GitOps Repository # ArgoCD GitOps Repository
This repository contains ArgoCD Application definitions and Helm values for deploying applications to the home-server Kubernetes cluster. This repository contains ArgoCD Application definitions for deploying applications to the home-server Kubernetes cluster.
## Structure ## Structure
``` ```
argocd/ argocd/
├── apps/ # ArgoCD Application manifests ├── apps.yaml # Root App of Apps (bootstrapped by Ansible)
│ └── monitoring.yaml # Monitoring stack (Prometheus + Grafana) ├── apps/ # Application definitions
├── charts/ # Helm chart values
│ └── monitoring/ │ └── monitoring/
│ └── values.yaml # kube-prometheus-stack values │ └── monitoring.yaml # Prometheus + Grafana stack
└── README.md └── charts/ # Helm chart values
└── monitoring/
└── values.yaml
``` ```
## Usage ## How It Works
1. Push changes to this repo 1. **Ansible** bootstraps the root `apps` Application
2. ArgoCD will automatically sync and deploy 2. The root app syncs `apps/` directory recursively
3. Any Application manifest added to `apps/` is auto-deployed
## Applications ## Adding New Applications
### Monitoring 1. Create a new directory under `apps/`
- **Prometheus**: Metrics collection and alerting 2. Add your Application manifest (e.g., `apps/myapp/myapp.yaml`)
- **Grafana**: Dashboards and visualization 3. Push to Git - ArgoCD syncs automatically
- **Alertmanager**: Alert routing and management

20
apps.yaml Normal file
View File

@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: apps
namespace: argocd
spec:
project: default
source:
repoURL: https://git.svc.pguia.com/guipguia/argocd.git
targetRevision: HEAD
path: apps
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true