26 lines
927 B
YAML
26 lines
927 B
YAML
# CI publishes the static site image; this Application makes Git, rather than
|
|||
|
|
# a runner's kubeconfig, the source of truth for which image Kubernetes runs.
|
||
|
|
apiVersion: argoproj.io/v1alpha1
|
||
|
|
kind: Application
|
||
|
|
metadata:
|
||
|
|
name: blog-ahmza-com
|
||
|
|
namespace: argocd
|
||
|
|
# No cascading-deletion finalizer during initial migration: removing this
|
||
|
|
# Application must not unexpectedly delete the public site's resources.
|
||
|
|
spec:
|
||
|
|
project: default
|
||
|
|
source:
|
||
|
|
repoURL: https://tea.ahmza.com/ahmza.com/k8s-starter-pack.git
|
||
|
|
targetRevision: main
|
||
|
|
path: apps/blog-ahmza-com
|
||
|
|
destination:
|
||
|
|
server: https://kubernetes.default.svc
|
||
|
|
namespace: blog-ahmza-com
|
||
|
|
syncPolicy:
|
||
|
|
automated:
|
||
|
|
# Review the initial sync before allowing Git deletions to remove live
|
||
|
|
# resources. Enabling prune later is separate from cascading app deletion.
|
||
|
|
prune: false
|
||
|
|
selfHeal: true
|
||
|
|
syncOptions:
|
||
|
|
- CreateNamespace=true
|