Skip to content

Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more

License

Notifications You must be signed in to change notification settings

urkonn/tectonic-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

We have different set of tests:

Basic tests

Our basic set of tests includes:

  • Code linting
  • UI tests
  • Backend unit tests

They are run on every PR.

Smoke tests

In addition to our basic set of tests we have smoke tests. These test the Tectonic installer on our supported platforms.

  • AWS
  • Azure
  • Bare metal

They can be run on a PR by applying the run-smoke-tests GitHub label.

Further details can be found in our Jenkinsfile which serves as the single source of truth.

To run a smoke test locally you need to set the following environment variables:

CLUSTER
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
TF_VAR_tectonic_aws_ssh_key
TF_VAR_tectonic_aws_region
TF_VAR_tectonic_license_path
TF_VAR_tectonic_pull_secret_path
TF_VAR_base_domain
TF_VAR_tectonic_admin_email
TF_VAR_tectonic_admin_password_hash

Make sure both the Tectonic pull secret as well as the Tectonic license is saved somewhere in the repository folder. Only the repository folder will be mounted into the Docker container where the tests will be executed in. The test framework will not be able to read any files outside the repository folder during test execution.

Once the environment variables are set, run make tests/smoke TEST=spec/aws_spec.rb.

About

Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 48.7%
  • JavaScript 19.7%
  • Go 10.7%
  • Ruby 7.6%
  • CSS 5.4%
  • Shell 4.4%
  • Other 3.5%