Kubectl-ice v0.2.12 has been released!

Quite a small release this time, the bigest change is with the ports and IP sub commands. Basically I have now merged the IP command into the Ports command, this meant grabbing the ip address from the pod information and adding a new ip column to the ports command, the ip address is hidden by default and can be made visible via the --show-ip flag, these changes meant that that I could merge the IP command in and adjust it to only show the pod name and IP address as a result we are now able to use the --match flag to match to show only specific rows, this also works in the ports command, see examples below.

Examples

show only pods that have an ip address starting with 172

kubectl-ice ip --match "ip=172.*"

show pods with an ip address that ends in .7

kubectl-ice ip --match "ip=*.7"

show all pods with an ip that contains an octet of 17 and a port number of 80

kubectl-ice ports --match "ip=*.17.*,port=80" --show-ip

we can also exclude using the same process (notice != in the command below), only show pods with port 80 but not if they have a 7 in the ip address

kubectl-ice ports --match "ip!=7*,port=80" --show-ip

as usual full details are in the documentation

NimbleArchitect