У меня есть переадресация всей службы postgres с приведенной ниже командой
kubectl port-forward svc/data-postgres 5432:5432 &
Теперь я хочу завершить этот процесс. Я попробовал следующую команду:
ps ax | egrep port-forward | egrep 'postgres' | sed 's/^\s*//' | cut -d' ' -f1 | xargs kill
Usage:
kill [options] <pid> [...]
Options:
<pid> [...] send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-l, --list=[<signal>] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
Это дает мне ошибку. Как мне поступить?