# this is installed via asdf
$ ruby -v
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x86_64-darwin24]
$ brew list --versions | grep mysql
mysql-client 9.0.1
[email protected] 8.0.39
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'
NewerOlder