aapit / ansible-k3s-rpi Goto Github PK
View Code? Open in Web Editor NEWAnsible playbook to provision a cluster of Raspberry Pi's with k3s, streamlined Kubernetes by @rancher
License: MIT License
Ansible playbook to provision a cluster of Raspberry Pi's with k3s, streamlined Kubernetes by @rancher
License: MIT License
The install runs smoothly until reaching Task [k3s-config: Wait until node token is generated] on my server node. Everything stops there, and returns the message:
fatal: [192.168.1.175]: FAILED! => {"changed": false, "elapsed": 300, "msg": "Timeout when waiting for file /var/lib/rancher/k3s/server/node-token"}
"sudo k3s kubectl get node -0 wide" on the server node returns:
The connection to the server localhost:8080 was refused - did you specify the right host or port?
systemctl status shows that the k3s-server is loaded and active on the server node.
The inventory file is set up correctly.
Instead hardcoding it in the playbook, a variable (with a default value) should be better.
I'm new to ansible but for whatever reason when I've run any ansible script on a RPi the Force attribute never works for me. I added the --ask-sudo-pass flag in by updating the makefile and this script worked.
I had previously tried to install k3s manually on 2 RPi's and couldn't get it to work, so thank you for creating this script.
Server is running but nodes didn't connect.
Also how do I uninstall? The below doesn't work:
To uninstall K3s from a server node, run:
/usr/local/bin/k3s-uninstall.sh
To uninstall K3s from an agent node, run:
/usr/local/bin/k3s-agent-uninstall.sh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.