Skip to content

Instantly share code, notes, and snippets.

@navarrothiago
Created June 15, 2021 01:47
Show Gist options
  • Save navarrothiago/ceea5763c1352bf5d06b0b4c9d048b4d to your computer and use it in GitHub Desktop.
Save navarrothiago/ceea5763c1352bf5d06b0b4c9d048b4d to your computer and use it in GitHub Desktop.
Delete All Spire Entries
for i in $(kubectl exec -n spire spire-server-0 -- /opt/spire/bin/spire-server entry show | grep "Entry ID" | cut -d':' -f2 | cut -d' ' -f2); do kubectl exec -n spire spire-server-0 -- /opt/spire/bin/spire-server entry delete -entryID $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment