35 lines
1.1 KiB
Markdown
35 lines
1.1 KiB
Markdown
# ArgoCD Apps Structure
|
|
|
|
This repository uses the **App of Apps** pattern to manage multiple Kubernetes applications through ArgoCD.
|
|
|
|
## Structure
|
|
|
|
```
|
|
.
|
|
├── root-app.yaml # Root application that manages all apps
|
|
├── apps/ # ArgoCD Application manifests
|
|
│ └── metrics-server.yaml # Individual app definitions
|
|
└── charts/ # Helm values and configurations
|
|
└── metrics-server/
|
|
└── values.yaml # Custom values for metrics-server
|
|
```
|
|
|
|
## Usage
|
|
|
|
1. **Add this repository to ArgoCD:**
|
|
```bash
|
|
kubectl apply -f root-app.yaml
|
|
```
|
|
|
|
2. **Add new applications:**
|
|
- Create a new Application manifest in `apps/`
|
|
- (Optional) Add custom Helm values in `charts/<app-name>/`
|
|
- Commit and push - ArgoCD will automatically sync
|
|
|
|
## How it works
|
|
|
|
- `root-app.yaml` is the entry point that watches the `apps/` directory
|
|
- Any YAML files added to `apps/` will be automatically deployed by ArgoCD
|
|
- Each app can reference external Helm charts or local manifests
|
|
- Custom values can be provided in the `charts/` directory
|