mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-01 13:15:20 +00:00
PR #1299 moved "ctr exec" into "ctr tasks exec" so update the kubernetes project to reflect this. Signed-off-by: Tim Potter <tpot@hpe.com>
19 lines
359 B
Bash
Executable File
19 lines
359 B
Bash
Executable File
#!/bin/bash -eu
|
|
|
|
sshopts="-o LogLevel=FATAL \
|
|
-o StrictHostKeyChecking=no \
|
|
-o UserKnownHostsFile=/dev/null \
|
|
-o IdentitiesOnly=yes"
|
|
|
|
case $(uname -s) in
|
|
Linux)
|
|
ssh=ssh
|
|
;;
|
|
*)
|
|
ssh="docker run --rm -ti \
|
|
-v $HOME/.ssh/:/root/.ssh \
|
|
ijc25/alpine-ssh"
|
|
;;
|
|
esac
|
|
$ssh $sshopts -t root@"$1" ctr tasks exec --tty --exec-id ssh kubelet ash -l
|