Giter Club home page Giter Club logo

rke2-build's Introduction

RKE2 Build


These scripts uses Terraform to automate building of rke2 clusters on AWS, it supports building normal and HA clusters with N master nodes, N workers nodes.

The scripts are simplified into one module that supports both server and agent nodes, the scripts also support building multiple clusters.

rke2

The rke2 module is the only module in the scripts and it builds the following components:

  • N servers
  • Autoscaling group to build N agents
  • Load balancer to proxy to rke2 servers
  • Domain name to resolve to the load balancer

Variables

The scripts can be modified by customizing the variables in scripts/config, the variables includes:

Name Description
CLUSTER_SECRET The cluster secret token used by servers and agents to connect to each other
DOMAIN_NAME DNS name of the Loadbalancer for rke2 master(s)
ZONE_ID AWS route53 zone id for modifying the dns name
RKE2_VERSION RKE2 version that will be used with the cluster
EXTRA_SSH_KEYS Public ssh keys that will be added to the servers
DEBUG Debug mode for rke2 servers

RKE2 Server Variables

Name Description
SERVER_HA Whether or not to use HA mode, if not then sqlite will be used as storage backend
SERVER_COUNT rke2 master node count
SERVER_INSTANCE_TYPE Ec2 instance type created for rke2 server(s)

RKE2 Agent Variables

Name Description
AGENT_COUNT Number of RKE2 agents that will be created
AGENT_INSTANCE_TYPE Ec2 instance type created for rke2 agents

Usage

build

The scripts contain a makefile to simplify building and destroying the servers, first adjust the config in scripts/config file, then run the following command to build the cluster

make build NAME="<name>"

This will basically create a directory in the same dir which represent the cluster and run terrafrom from within this dir, a cluster will be created using the info supplied in scripts/config.

destroy

To destroy the cluster just run the following:

make destroy NAME="<name>"

rke2-build's People

Contributors

galal-hussein 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

Watchers

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

rke2-build's Issues

Add support for the VMware vSphere provider

This repo currently supports the AWS provider. Expand this support to include the VMware vSphere provider. Since Rancher 2.x does not yet support provisioning RKE2 clusters, it is important to provide an alternative, automated mechanism for provisioning RKE2 clusters in various environments. The vSphere provider integration should include support for static ips as they are commonly used on-premise.

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.