Created
July 8, 2021 01:10
-
-
Save cdoan1/eec0b9b10c8b757b571ddb22415b4fee to your computer and use it in GitHub Desktop.
Monitor Proxy Settings
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
#!/bin/bash | |
oc get deployment \ | |
| grep -v "NAME" \ | |
| awk '{print $1}' \ | |
| xargs -I % sh -c 'echo %; oc get deployment % -o yaml | grep "sre-registry"' | |
oc get deployment \ | |
| grep -v "NAME" \ | |
| awk '{print $1}' \ | |
| xargs -I % sh -c 'echo %; oc get deployment % -o yaml | grep "name: HTTPS_PROXY"' | |
oc get appsub \ | |
| grep -v "NAME" \ | |
| awk '{print $1}' \ | |
| xargs -I % sh -c 'echo %; oc get appsub % -o yaml | grep "HTTPS_PROXY: http"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment