watch
Instead of -w
with Kubernetes📺 https://youtu.be/IeOJVNAY1Jw
Just use watch
and forget -w
exists (unless you really need to
watch for only manifest changes). Here are the problems with -w
:
kubectl
commandswatch
has been around foreverexec
script (no aliases or functions)Here’s an example of k
so that it will work with watch
.
#!/bin/sh
exec kubectl "$@"