Open benkeil opened 3 months ago
Hi @benkeil,
The hash at the end of the token is used to verify the identity of the joining node. It's optional and if it's absent, no verification is done. You can also specify it and not perform verification with the --skip-verify
flag. I agree with you the documentation could be updated.
I think what happened in your case is that your persistent token was not correctly registered on the master node so any joins using this token result in a 500 error.
Could you please try the steps here? https://microk8s.io/docs/add-launch-config#h-1-when-deploying-a-cluster. You can either override the default configuration or use snap set.
Summary
When following the documentation on how to join node via LaunchConfiguration, it's not clear how exactly the configuration must look like.
On the master node I have
and on the worker nodes
When joining the worker responds
Here https://microk8s.io/docs/ref-launch-config is nothing written about a hash at the end of the URL, here https://github.com/canonical/microk8s-cluster-agent/blob/main/pkg/k8sinit/testdata/schema/full.yaml it is. What is the hash? How can I auto generate the Launch Configuration to allow joins?
What Should Happen Instead?
Reproduction Steps
Introspection Report
Can you suggest a fix?
Are you interested in contributing with a fix?