Interview Prep/GitOps & Argo CD/Rapid-Fire Commands

How do you seal a secret and verify the controller decrypted it?

BeginnerConceptRapid-Fire Commands
Answer
kubeseal --fetch-cert > pub-cert.pem
kubectl create secret generic api-key --from-literal=key=abc123 -n web --dry-run=client -o yaml \
  | kubeseal --cert pub-cert.pem --format yaml > api-key-sealed.yaml
git add api-key-sealed.yaml && git commit -m "Add sealed api-key" && git push
kubectl -n web get sealedsecret api-key -o jsonpath='{.status.conditions}'
kubectl -n web get secret api-key

A Synced: True condition on the SealedSecret and the presence of the Secret confirm decryption.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Rapid-Fire Commands