Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save stoic-coder/056b78618032634b24aedea1cb10608f to your computer and use it in GitHub Desktop.

Select an option

Save stoic-coder/056b78618032634b24aedea1cb10608f to your computer and use it in GitHub Desktop.
# First dump the current ClusterIssuer and Certificates (you'll need the issuer config later).
kubectl get -o yaml --all-namespaces issuer,clusterissuer,certificates > cert-manager-backup.yaml
# Now delete the current cert-manager installation.
kubectl delete deployments test
# Then apply the new CRD:
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.9/deploy/manifests/00-crds.yaml
# Apply the "disable-validation" flag to the namespace.
kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true
# Add the jetstack Helm repository
helm repo add jetstack https://charts.jetstack.io
helm repo update
# And install the new cert-manager. Please note the namespace.
helm install --version 0.9.1 --name cert-manager --namespace cert-manager jetstack/cert-manager
# Then re-apply the issuer copied from the backup in the first step.
kubectl apply -f issuer.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment