Skip to content

Instantly share code, notes, and snippets.

@guilhem
Last active October 11, 2021 09:18
Show Gist options
  • Save guilhem/3a64ac870730e4aabe32fcd442581767 to your computer and use it in GitHub Desktop.
Save guilhem/3a64ac870730e4aabe32fcd442581767 to your computer and use it in GitHub Desktop.
kubectl cheatsheet

list all ingress hosts

kubectl get ing -o jsonpath='{range .items[*]}{@.metadata.name}:{.spec.rules[*].host}{"\n"}{end}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment