garutilorenzo / k3s-aws-terraform-cluster Goto Github PK
View Code? Open in Web Editor NEWDeploy an high available K3s cluster on Amazon AWS
License: GNU General Public License v3.0
Deploy an high available K3s cluster on Amazon AWS
License: GNU General Public License v3.0
Hey
This terraform module looks like exactly what I need!
Although it seems link on of the dependencies, hasicorp/template has been archived and is unavailable for Macos M1
Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
I'm just getting started with k3s.
My question is how can I setup this amazon cloud provider using your terraform code.
I followed this doc ๐but could not find the proper solution
https://rancher.com/docs/rancher/v2.5/en/cluster-provisioning/rke-clusters/cloud-providers/amazon/
Can you please explain
it looks that on agent(worker) node we need cannot use --advertise-address flag anymore
Hi Lorenzo Gauruti,
Thank You sharing the source code for building k3s in AWS using Terraform:
I followed the exact code & built 3 Master & 3 Worker nodes. I can only see one Master node 1:
k3s failed on Master Node 2 & 3:
Any pointers or help will much appreciated:
Master Node1:
root@i-04eb4456e0a425e92:# kubectl get nodes# ls -al /etc/rancher/k3s/k3s.yaml
NAME STATUS ROLES AGE VERSION
i-04eb4456e0a425e92 Ready control-plane,etcd,master 66m v1.24.3+k3s1
root@i-04eb4456e0a425e92:
-rw------- 1 root root 2969 Aug 8 18:51 /etc/rancher/k3s/k3s.yaml
Master Node 2 & 3:
root@i-04b860d791d7a9ebd:~# kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?
journalctl -xeu k3s:
Aug 08 21:08:09 i-04b860d791d7a9ebd sh[40898]: + /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.se>
Aug 08 21:08:09 i-04b860d791d7a9ebd sh[40899]: Failed to get unit file state for nm-cloud-setup.service:>
Aug 08 21:08:09 i-04b860d791d7a9ebd k3s[40902]: time="2022-08-08T21:08:09Z" level=info msg="Starting k3s>
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.