https://rancher.com/ logo
#k3s
Title
l

lively-night-78214

12/07/2022, 1:51 PM
I am trying to install an agent and get the error... [ERROR] Only https:// URLs are supported for K3S_URL. When the server/master is installed is SSL auto provisioned?
c

creamy-pencil-82913

12/07/2022, 4:04 PM
https://docs.k3s.io/quick-start#install-script
To install on worker nodes and add them to the cluster, run the installation script with the
K3S_URL
and
K3S_TOKEN
environment variables. Here is an example showing how to join a worker node:
Copy code
curl -sfL <https://get.k3s.io> | K3S_URL=<https://myserver:6443> K3S_TOKEN=mynodetoken sh -
note that this is a https URL, not http
l

lively-night-78214

12/07/2022, 4:45 PM
So does the server expose itself on HTTPS?
I am providing this info but the URL is http because I have not set up an SSL certificate
c

creamy-pencil-82913

12/07/2022, 5:10 PM
you don’t need to do that yourself, the Kubernetes cluster generates its own root CAs on startup.
l

lively-night-78214

12/07/2022, 5:11 PM
I LL test. Thank you
c

creamy-pencil-82913

12/07/2022, 5:11 PM
Was there something you saw in the docs that made you think you had to set up SSL for the cluster manually?
l

lively-night-78214

12/07/2022, 5:13 PM
I was actually thinking why should I specify the protocol if the script just accepts HTTPS. And given the error message also wondering if I had to indeed provision one or configure it somehow
c

creamy-pencil-82913

12/07/2022, 5:14 PM
that’s just how it works, it wants a URL not a host:port
👍 1
52 Views