Git Product home page Git Product logo

tectonic-installer's Introduction

Tectonic Installer

Tectonic is built on pure-upstream Kubernetes but has an opinion on the best way to install and run a Kubernetes cluster. This project helps you install a Kubernetes cluster the "Tectonic Way". It provides good defaults, enables install automation, and is customizable to meet your infrastructure needs.

Goals of the project:

  • Install Self-Hosted Kubernetes Clusters
  • Secure by default (uses TLS, RBAC by default, OIDC AuthN, etcd)
  • Automatable install process for scripts and CI/CD
  • Deploy on any infrastructure: Amazon AWS, Microsoft Azure, OpenStack, Google Cloud, bare metal
  • Run on any OS: Container Linux (the default), RHEL, Ubuntu, and others
  • Customizable and modular: Change DNS providers, security settings, authentication providers
  • Highly Available by default: Deploy all Kubernetes components HA, use etcd Operator

Check the ROADMAP for details on where the project is headed.

Getting Started

To use a tested release on a supported platform, follow the links below.

To hack or modify the templates or add a new platform, use the scripts in this repo to boot and tear down clusters.

Official releases

See the official Tectonic documentation:

Hacking

These instructions can be used for the official stable platforms listed above, and for the following alpha/beta platforms:

Go and Source

Install Go if not already installed.

Then get the Tectonic Installer source code:

go get github.com/coreos/tectonic-installer
cd $(go env GOPATH)/src/github.com/coreos/tectonic-installer

Terraform

The Tectonic Installer releases include a build of Terraform. See the Tectonic Installer release notes for information about which Terraform versions are compatible.

The latest Terraform binary may not always work as Tectonic Installer, which sometimes relies on bug fixes or features not yet available in the official Terraform release.

Yarn (optional)

The Yarn JavaScript package manager is required for building the frontend code. On OS X, install using Homebrew: brew install yarn.

Common Usage

Choose your platform

First, set the PLATFORM= environment variable. This example will use PLATFORM=azure.

Initiate the Cluster Configuration

Use make to create a new directory build/<cluster-name> to hold all module references, Terraform state files, and custom variable files.

PLATFORM=azure CLUSTER=my-cluster make localconfig

Configure Cluster

Set variables in the build/<cluster-name>/terraform.tfvars file as needed. Available variables are found in the platforms/<PLATFORM>/config.tf and platforms/<PLATFORM>/variables.tf files.

Examples for each platform can be found in the examples directory.

Terraform Lifecycle

plan, apply, and destroy are provided as make targets to ease the build directory and custom binary complexity.

PLATFORM=azure CLUSTER=my-cluster make plan
PLATFORM=azure CLUSTER=my-cluster make apply
PLATFORM=azure CLUSTER=my-cluster make destroy

Tests

Tests are run for all approved pull requests via Jenkins. See the Jenkinsfile for details.

Tests can be run locally by:

AWS

export PLATFORM="aws"
export AWS_REGION="us-east-1"
export {TF_VAR_tectonic_cluster_name,CLUSTER}=my-smoke-test
export TF_VAR_tectonic_license_path=/path/to/license.txt
export TF_VAR_tectonic_pull_secret_path=/path/to/pull-secret.json

make localconfig
ln -sf ../../test/aws.tfvars build/${TF_VAR_tectonic_cluster_name}/terraform.tfvars
make plan
make apply
make destroy

tectonic-installer's People

Contributors

aaronlevy avatar alekssaul avatar alexsomesan avatar amrutac avatar athai avatar bison avatar brancz avatar chancez avatar coreypobrien avatar cpanato avatar dghubble avatar diegs avatar estroz avatar ethernetdan avatar ggreer avatar jimzim avatar kans avatar kyoto avatar lblackstone avatar mxinden avatar philips avatar pst avatar quentin-m avatar radhikapc avatar rithujohn191 avatar robszumski avatar sozercan avatar squat avatar sym3tri avatar zbwright avatar

Watchers

 avatar  avatar  avatar

tectonic-installer's Issues

Kube HA master support

At the moment only one master is being deployed. We need to add support for multi-master cluster

etcd ssl

Current etcd tls is not properly configured. Bring it from AWS module

Ingress hostPort/nodePort

We are currently handling ingress traffic with a regional net lb pointing to the workers nodes running the ingress-controller as a daemonSet using the hostPort 80/443.
I reckon the reason behind this is that google regional net lb does not support to map one lb port to a different port on the backend side (so we can't do lb:443 -> master:32000 as we do in aws/azure).
Explore how we can align with aws/azure and use ingress kind nodePort https://github.com/enxebre/tectonic-installer/blob/gcp-dev/modules/tectonic/resources/tectonic.sh#L152

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.