Simplify k3s vm-based deployment by enabling write-only ssh-less 1st server setup. (super-token?) #3821
Replies: 2 comments 1 reply
-
It may be the case that a I believe this would dramatically simplify the lives of dev-ops persons using k3s in the field, by not needing to setup ssh on their deployed k3s server sets, in order to retrieve the |
Beta Was this translation helpful? Give feedback.
-
I wonder if I could effect the same push-only initial-server type of model (without needing to retrieve the kubeconfig) by creating and pushing the certificates to the initial, 1st server? |
Beta Was this translation helpful? Give feedback.
-
So, I'm working with
Terraform
to create and launch k3s clusters on VMs. Really digging k3s, by the way.Anyway, because the
kubeconfig
is created by the first server, a back-channel from the first k3s servercreated to the cluster-launching-computer must be made to retrieve the
kubeconfig
for usage.This is usually done with
ssh
.These types of clusters are often stood up & destroyed without any end-user
ssh
usage or connections, if possible.So, in this scenario, the sole purpose of creating an SSH key, and configuring providing an ssh login method is merely to retrieve the
kubeconfig
forkubectl
usage,etc.If it was possible to provide the initial
kubeconfig
rather than --token for the 1st server stood up,the need for the
ssh
backchannel goes away for many users, and simple VM creation with cloud-init can make Terraform (and similar) style launching of k3s clusters quicker and easier. Since configuration would be push-only.cloud-init
style installation of k3s may also be faster thanssh
based installs, as install happens right when server is ready after boot, whereasssh
type installs against a new, booting server are effectively polling to attempt ssh login against a booting server. If ssh retry delays are using a back-off delay, the ssh login for k3s install could be delayed much later than acloud-init
install.A tool or flag (--generate-kubeconfig) would be needed to craft the initial
kubeconfig
prior to launchingthe k3s cluster.
Anyway, I wanted to throw this idea out there and get feedback on whether others see the merit in this.
I see others #3487 have questions about how to get the
kubeconfig
from outside the primary server, or from the token also.@brandond
Beta Was this translation helpful? Give feedback.
All reactions