diff --git a/docs/OPERATIONS-RUNBOOK.md b/docs/OPERATIONS-RUNBOOK.md index 0425b0b..83eaaca 100644 --- a/docs/OPERATIONS-RUNBOOK.md +++ b/docs/OPERATIONS-RUNBOOK.md @@ -169,78 +169,33 @@ This creates two files: Add the private key to ArgoCD as a repository secret: +Save the following file in private/ (gitignored) folder as secret.yaml ```bash -# Create secret for sturdy-adventure repository -kubectl create secret generic repo-sturdy-adventure \ - --from-file=sshPrivateKey=argocd-deploy-key \ - --namespace=argocd \ - --dry-run=client -o yaml | kubectl apply -f - - -# Label it for ArgoCD to recognize -kubectl label secret repo-sturdy-adventure \ - -n argocd \ - argocd.argoproj.io/secret-type=repository - -# Add repository annotations -kubectl annotate secret repo-sturdy-adventure \ - -n argocd \ - managed-by=argocd.argoproj.io + apiVersion: v1 + kind: Secret + metadata: + name: forte-helm-repo + namespace: argocd + labels: + argocd.argoproj.io/secret-type: repository + stringData: + type: git + url: git@github.com:fortedigital/forte-helm.git + sshPrivateKey: | + + project: default ``` - -Alternatively, create a complete repository secret with all metadata: - +Seal the secret using `kubeseal` command ```bash -kubectl apply -f - < secrets/forte-helm-repo-secret-sealed.yaml ``` **Step 4: Register Repository in ArgoCD** -Add the repository to ArgoCD's configuration: - -```bash -# Via kubectl (recommended for GitOps) -kubectl apply -f - <