Files
sor/deploy/argo/application.yaml
T
b5c9385e73 Add CI/CD pipeline, Dockerfiles, and k8s/ArgoCD manifests
- Gitea Actions workflow: build sor-host + sor-admin, push to Harbor,
  auto-update image tags in k8s manifests (GitOps — ArgoCD watches deploy/k8s/)
- Dockerfile.host / Dockerfile.admin: multi-stage .NET 8 builds, non-root runtime
- deploy/k8s/: configmap, deployments, services, nginx ingress
  - hub.aeternalisgames.com → sor-host (WebSocket gateway)
  - admin.aeternalisgames.com → sor-admin (Blazor admin portal)
  - hub-tls for hub, cert-manager auto-provisions admin-tls
- deploy/secrets/: README + *.yaml.template files to populate (gitignored)
- deploy/argo/application.yaml: ArgoCD Application (namespace stone-server)
- Root .gitignore: excludes deploy/secrets/*.yaml (never commit populated secrets)

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-25 21:33:54 -05:00

38 lines
1.1 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: sor-server
# ArgoCD is typically installed in the argocd namespace.
namespace: argocd
# Ensure ArgoCD deletes child resources when this Application is deleted.
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
# TODO: verify this matches your Gitea repository URL.
repoURL: https://git.aeternalisgames.com/dingo/SOR.git
targetRevision: master
# ArgoCD watches this path for changes and syncs when manifests are updated.
path: deploy/k8s
destination:
server: https://kubernetes.default.svc
namespace: stone-server
syncPolicy:
automated:
# Remove resources from the cluster when removed from git.
prune: true
# Re-apply if someone manually changes the cluster state.
selfHeal: true
syncOptions:
# Namespace already exists — don't try to create it.
- CreateNamespace=false
# Apply server-side to avoid annotation length limits.
- ServerSideApply=true
# Show health status on the ArgoCD dashboard.
revisionHistoryLimit: 5