Created
August 19, 2024 04:00
-
-
Save zulhfreelancer/1facd1b5e3dbdc3882478aa546fa858d to your computer and use it in GitHub Desktop.
Find pods that use specific image pull secret
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
# Replace the THE_SECRET_NAME | |
k get pods -A -o json | jq -r '.items[] | select(.spec.imagePullSecrets!=null) | select(.spec.imagePullSecrets[].name=="THE_SECRET_NAME") | {namespace: .metadata.namespace, name: .metadata.name}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment