-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a beginner's guide/tutorial to run Kubernete with Kine #124
Comments
Just run kine (either via the binary or the docker image), and then point your Kubernetes distro of choice at it as the etcd datastore. Or use k3s, which already has kine built in to it. |
Just want to give an update: I finally run the MySQL demo successfuly with Kine. Here I list some of the pitfalls you may encounter, as a complementary material to the minimal.md, so as to make it easier for the follow-up readers to run the demo. I am using a VM in Google Cloud, with Ubuntu 20.04 (1) The generate-certs.sh can give you some certificates, but the certificates may not work for your machine. I use the certs generated from the script, but then when I launch Kine, it always tells me "x509: certificate is not valid for any names, but wanted to match localhost". I googled for some time but found no solutions to generate the correct certs (openssl command is really complex). If someone finds the proper way to generarte certs, please ping me. Workaround: Just disable the certs. Run like this
Now, we have Kine running with MYSQL. (2) Next, running KubeAdm. I suggest you follow the instructions in https://github.com/hub-kubernetes/kubeadm-multi-master-setup I have installed these items following its instructions.
(3) The yaml in the minimal.md is too complex, here I provide a much simpler one
As you can see, I have commented the caFile, certFile, keyFile (4) After fixing the previous problems, I came across another problem If you also encounter this problem, the solution is to run the following command
Of course, you should config the endpoint as the runtime that works on your VM, on my VM, the workable runtime is unix:///var/run/cri-dockerd.sock After that, everything is fine, the normal logs should be like the follows
Then you can open another terminal, and check mysql As you can see, there is a databse called kine, and there is a table also called kine in the database, and the table has 9 columns, and the Kine has written 1189 rows of records into this table. The only issue I have not fixed is how to generate correct cert files. But that should not be a big issue. I remember in an earlier time, I have followed the instructions here and successfully run TLS-based etcd with KubeAdm. I feel the cert generation should be similar, but I haven't taken a close look into the difference. The reason for the cert error is probably due to some hard code in the generate-certs.sh. At your convenience @brandond , I hope you can take a look at this issue: why does it cause the error "x509: certificate is not valid for any names, but wanted to match localhost"? Thanks! |
Update: I think I find the https://github.com/k3s-io/kine/blob/master/examples/minimal.md
Let me first try this tutorial to see whether I can run it.
I have a similar question as #112
Since Kine is supposed to "be ran standalone so any k8s (not just k3s) can use Kine", I am wondering whether you development staff could provide a Quick Start Guide for the readers/users to launch a demo easily, e.g. how to run a small Kubnernete cluster with MySQL/etcd/dqLite as the backend using Kine
I have searched the markdown in this repo, and it seems there is no such tutorials.
The text was updated successfully, but these errors were encountered: