Coder Social home page Coder Social logo

zackbradys / terraform-aws-rke2-cluster Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 50 KB

Terraform for deploying a secure and highly available Rancher Kubernetes (RKE2) Cluster on AWS

Home Page: https://registry.terraform.io/modules/zackbradys/rke2-cluster

License: MIT License

HCL 66.29% Shell 33.71%
aws kubernetes module rancher rke2 template terraform tutorial

terraform-aws-rke2-cluster's Introduction

Terraform Module for RKE2 on AWS

Please review the information below and follow the instructions to deploy this module!

Prerequisites

  • Git Utility, Terminal Utility, and HashiCorp Terraform with Access to the AWS Provider Plugin
  • AWS Commercial or AWS GovCloud Account with the appropriate elevated privileges to interact with AWS Services

Configuration

Step 1: Ensure Terraform is installed and create a working directory.

Step 2: Copy the code below into a file named main.tf and set the required variables or additional optional variables!

module "rke2-cluster" {
  source  = "zackbradys/rke2-cluster/aws"
  version = "1.0.0"

  region        = "us-east-1"
  access_key    = "ACCESS_KEY_HERE"
  secret_key    = "SECRET_KEY_HERE"
  key_pair_name = "AWS_KEY_PAIR_NAME"
  domain        = "example.com"
  prefix        = "rke2-cluster"
}

Step 3: Run the commands below to deploy and provision your infrastructure!

terraform init

terraform plan

terraform apply --auto-approve

Step 4: Wait about 10 minutes and access your RKE2 Cluster! Typically, users SSH into the nodes via the bastion host to use kubectl on the node or users export the kubeconfig (/etc/rancher/rke2/rke2.yaml) to access the cluster and kubectl locally.

Contributing

Please utilize GitHubs features such as Issues, Forks, and Pull Requests to contribute to this code!

About Me

A little bit about me and my history in the industry. If you have any questions, please reach out to me over on my GitHub!

  • Former Contractor
  • U.S. Military Reservist
  • Open-Source Contributor
  • Built and Exited a Digital Firm
  • Active Volunteer Firefighter/EMT

terraform-aws-rke2-cluster's People

Contributors

zackbradys avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

gearrington

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.