Skip to content

Instantly share code, notes, and snippets.

@fonsecas72
Last active October 31, 2020 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fonsecas72/639649624835bcdf09569fc72dc3c61f to your computer and use it in GitHub Desktop.
Save fonsecas72/639649624835bcdf09569fc72dc3c61f to your computer and use it in GitHub Desktop.
Kubectl - Getting all the ingresses that have mod-security annotation enabled - nginx-ingress
kubectl get ingress -A -o jsonpath='{range .items[?(@.metadata.annotations.nginx\.ingress\.kubernetes\.io/enable-modsecurity=="true")]}{.metadata.namespace}{"\t"}{.metadata.name}{"\n"}{end}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment