Demo of -t workaround for k3s install with k3sup on Crostini containers

by old-qmacro
screen-256color ◆ bash 904 views

  • starting from home container ‘penguin’
  • create new target LXC container ‘ubuntu’ from Ubuntu 18.04 image
  • on target container, allow password-based ssh access, and create user ‘qmacro’ give sudo access
  • on home container, use k3sup (already installed with curl -SLsf https://get.k3sup.dev | sudo sh) to install & start k3s on target container

  • notice sudo issue (‘no tty present and no askpass program specified’)
  • work around issue by reinvoking the remote install command, using the additional -t switch (‘force pseudo-terminal allocation’) on the ssh command