kubernetes: inline ssh.sh into ssh_into_kubelet.sh

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-07-24 12:28:45 +01:00
parent 62aa9248a4
commit 1dbec1ef30
2 changed files with 8 additions and 14 deletions

View File

@ -1,13 +0,0 @@
#!/bin/bash -eux
docker run \
--rm \
-ti \
-v ~/.ssh/:/root/.ssh \
jdeathe/centos-ssh \
ssh \
-o Compression=yes \
-o LogLevel=FATAL \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null \
-o IdentitiesOnly=yes \
"$@"

View File

@ -1,2 +1,9 @@
#!/bin/bash -eux
./ssh.sh -t root@"$1" ctr exec --tty --exec-id ssh kubelet ash -l
ssh="docker run --rm -ti \
-v $HOME/.ssh/:/root/.ssh \
jdeathe/centos-ssh \
-o LogLevel=FATAL \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null \
-o IdentitiesOnly=yes"
$ssh -t root@"$1" ctr exec --tty --exec-id ssh kubelet ash -l