kubectl get pods -A -o json | jq -r '.items[] | select(.metadata.uid == "<UID>") | .metadata.name, .metadata.namespace'
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}' |
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
kubectl get clusterissuers -o json | jq -r '.items[] | select(.spec.acme != null) | select(.spec.acme.solvers[0] | keys[0]=="dns01") | {name: .metadata.name, provider: (.spec.acme.solvers[0].dns01 | keys[0])}' |
How to displays a brief summary of all IPv4 addresses assigned to the network interfaces Linux system?
Command:
ip -4 -br a
Sample output:
How to check which network interface will be used to route/send packets for specific IP address?
# Install `ip` tool
apt update -y
apt install iproute2 -y
# Check
ip r get 8.8.8.8 fibmatch
Requirement:
curl -sg 'http://prom-server:prom-port/api/v1/metadata' | jq -r '.data'
Requirements
promtool - see installation steps here
Command
promtool query instant '' '' | jq
NewerOlder