add temporary credential recovery job

This commit is contained in:
2026-10-15 23:09:09 +00:00
parent 2ba48aa313
commit e9574e3317
4 changed files with 119 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
# TEMPORARY disaster-recovery application. This creates a short-lived
# administrative ServiceAccount so a lost kubeconfig can be replaced through
# the still-working Argo CD control plane. Remove this file and apps/recovery/
# immediately after access is restored; the finalizer then deletes everything.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: credential-recovery
namespace: argocd
finalizers:
# Cascading deletion is essential here: it removes the temporary
# cluster-admin binding rather than leaving privileged access behind.
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://tea.ahmza.com/ahmza.com/k8s-starter-pack.git
targetRevision: main
path: apps/recovery
destination:
server: https://kubernetes.default.svc
namespace: credential-recovery
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true