diff options
author | Patrick Spek <p.spek@tyil.nl> | 2021-10-11 15:08:05 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2021-10-11 15:08:05 +0200 |
commit | 3b1008901bce2a92f89e12c773b4dd5c53d0a8f8 (patch) | |
tree | 20c0a21892f8175640eb47694fce7718fe519b73 | |
parent | 60827a79e750f56064014b6047258c1ff696e3dd (diff) |
Add small kubectl script to show all hostnames served by a namespace
-rwxr-xr-x | .local/bin/kubectl-hosts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/kubectl-hosts b/.local/bin/kubectl-hosts new file mode 100755 index 0000000..c347256 --- /dev/null +++ b/.local/bin/kubectl-hosts @@ -0,0 +1,6 @@ +#!/bin/sh + +kubectl get ing -o custom-columns=:.spec.rules[].host \ + | grep . \ + | sort \ + | uniq |