miroir/k8s/examples/argocd-apps/application-template.yaml
jedarden 440a05beb3 feat(k8s): add ArgoCD Application templates for GitOps deployments
Add example ArgoCD Application manifests and supporting files for
deploying Miroir via GitOps following plan §6 pattern.

Includes:
- Application template with placeholders for customization
- Production and development values.yaml examples
- Chart.yaml shim referencing upstream OCI chart
- ExternalSecret template for ESO integration
- Cluster-specific examples (ardenone-cluster, rs-manager)
- README with deployment instructions

Pattern: declarative-config repo holds per-instance values and Chart
shim; ArgoCD syncs from git path rather than inline values.

Closes: miroir-qjt.5
2026-05-24 08:34:24 -04:00

40 lines
1 KiB
YAML

# ArgoCD Application template for Miroir instances
# Copy this file to jedarden/declarative-config/k8s/<cluster>/miroir/<instance>/app.yaml
# Update <placeholders> with actual values
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: miroir-<instance>
namespace: argocd
labels:
app.kubernetes.io/name: miroir
app.kubernetes.io/instance: <instance>
app.kubernetes.io/component: application
app.kubernetes.io/part-of: miroir
spec:
project: default
source:
repoURL: https://github.com/jedarden/declarative-config
targetRevision: HEAD
path: k8s/<cluster>/miroir/<instance>
helm:
valueFiles:
- values.yaml
destination:
server: https://kubernetes.default.svc
namespace: <namespace>
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
revisionHistoryLimit: 10