Last active
April 27, 2023 14:08
-
-
Save bfrancom/123392464386fcc1005c44da328d8c1c to your computer and use it in GitHub Desktop.
Get all environment variables with URI's in Kubernetes to find 3rd party services used
This file contains 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
#should get all uri's (including url's) for things like s3, postgres, ftp, etc. | |
kubectl get pods --all-namespaces -o=jsonpath='{range .items[*]}{.spec.containers[*].env[*].value}{"\n"}{end}' |grep -io "[[:alnum:]]*://[^ ]*" |sort |uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment