Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created August 15, 2024 07:09
Show Gist options
  • Save zulhfreelancer/819a43739cd108f6b9f7b0e7eed29a9e to your computer and use it in GitHub Desktop.
Save zulhfreelancer/819a43739cd108f6b9f7b0e7eed29a9e to your computer and use it in GitHub Desktop.
List all DNS01 ClusterIssuers and provider names using `kubectl`
kubectl get clusterissuers -o json | jq -r '.items[] | select(.spec.acme != null) | select(.spec.acme.solvers[0] | keys[0]=="dns01") | {name: .metadata.name, provider: (.spec.acme.solvers[0].dns01 | keys[0])}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment