Giter Site home page Giter Site logo

garutilorenzo / k3s-aws-terraform-cluster Goto Github PK

View Code? Open in Web Editor NEW
147.0 5.0 40.0 17.38 MB

Deploy an high available K3s cluster on Amazon AWS

License: GNU General Public License v3.0

HCL 72.91% Shell 22.79% Python 4.30%
terraform aws k3s k3s-cluster automation spot-instances kubernetes-cluster kubernetes high-availability cluster

k3s-aws-terraform-cluster's People

Contributors

garutilorenzo avatar jlaswell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

k3s-aws-terraform-cluster's Issues

Can't initialize on MacOS M1

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.

The connection to the server localhost:8080 was refused on Master Node 2 & 3

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
NAME STATUS ROLES AGE VERSION
i-04eb4456e0a425e92 Ready control-plane,etcd,master 66m v1.24.3+k3s1
root@i-04eb4456e0a425e92:
# ls -al /etc/rancher/k3s/k3s.yaml
-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?

cat /var/log/cloud-init-output.log

Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service โ†’ /etc/systemd/system/k3s.service.
[INFO] systemd: Starting k3s
Job for k3s.service failed because the control process exited with error code.
See "systemctl status k3s.service" and "journalctl -xeu k3s.service" for details.
k3s did not install correctly

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.