Skip to content

Instantly share code, notes, and snippets.

@rudolphjacksonm
Last active January 31, 2020 23:26
Show Gist options
  • Save rudolphjacksonm/4527ff479fa64edaf56c7c6157417271 to your computer and use it in GitHub Desktop.
Save rudolphjacksonm/4527ff479fa64edaf56c7c6157417271 to your computer and use it in GitHub Desktop.
# Backup all cert-manager data before upgrade
kubectl get -o yaml \
--all-namespaces \
issuer,clusterissuer,certificates > cert-manager-backup.yaml
# Backing up certificaterequests separately as our cluster
# didn't have this type of resource and hence would error out
kubectl get -o yaml \
--all-namespaces \
certificaterequests >> cert-manager-backup.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment