- Aula 08: nginx-ingress TCP passthrough gitlab→gitea, comments
- Aula 09: add-client.sh API GitLab→Gitea
- Aula 11: node-bugado deployment image registry.kube.quest→gitea.kube.quest
- Aula 12: setup.sh/cleanup.sh API GitLab→Gitea, ArgoCD repoURL
- Aula 13: k8s manifests, benchmarks: registry.kube.quest→gitea.kube.quest,
gitlab-registry→gitea-registry, GITLAB_TOKEN→GITEA_TOKEN
- Aula 14: comments GitLab→Gitea
- README raiz: arquitetura, tabela, DNS
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
# =============================================================================
|
|
# ArgoCD Application - Victoria Metrics
|
|
# =============================================================================
|
|
#
|
|
# Este arquivo é referência. O setup.sh aplica automaticamente.
|
|
# Para aplicar manualmente:
|
|
# kubectl apply -f argocd/application.yaml
|
|
#
|
|
# =============================================================================
|
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: monitoring
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
spec:
|
|
project: default
|
|
|
|
source:
|
|
# URL do repositório Gitea (ajustar conforme seu domínio)
|
|
repoURL: https://gitea.kube.quest/factory/monitoring.git
|
|
targetRevision: HEAD
|
|
path: apps/victoria-metrics
|
|
|
|
# Helm com arquivo de valores
|
|
helm:
|
|
valueFiles:
|
|
- values.yaml
|
|
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: monitoring
|
|
|
|
syncPolicy:
|
|
automated:
|
|
# Remover recursos que não existem mais no Git
|
|
prune: true
|
|
# Reverter mudanças manuais
|
|
selfHeal: true
|
|
|
|
syncOptions:
|
|
# Criar namespace se não existir
|
|
- CreateNamespace=true
|
|
# Usar server-side apply (melhor para CRDs)
|
|
- ServerSideApply=true
|
|
|
|
retry:
|
|
limit: 5
|
|
backoff:
|
|
duration: 5s
|
|
factor: 2
|
|
maxDuration: 3m
|