-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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