Install a Kubernetes cluster the CoreOS Tectonic Way。
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:
- Installation of Self-Hosted Kubernetes Cluster
- Secure by default (use TLS, RBAC by default, OIDC AuthN, etcd)
- Automatable install process for scripts and CI/CD
- Deploy Tectonic on any infrastructure (Amazon, Azure, OpenStack, GCP, etc)
- Runs Tectonic on any OS (Container Linux, RHEL, CentOS, etc)
- Customizable and modular (change DNS providers, security settings, etc)
- HA by default (deploy all Kubernetes components HA, use etcd Operator)
Getting Started
To use a tested release on an 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:- AWS using a GUI [stable]
- AWS using Terraform CLI [stable]
- Bare metal using a GUI [stable]
- Bare metal using Terraform CLI [stable]
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
TerraformThe 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 via Homebrew:
brew install yarn
.Common Usage
Choose your platformFirst, set the
PLATFORM=
environment variable. This example will use PLATFORM=azure
.PLATFORM=azure
Azure via Terraform [alpha]PLATFORM=openstack
OpenStack via Terraform [alpha]PLATFORM=vmware
VMware via Terraform [alpha]
Using make 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 ClusterSet 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
from https://github.com/coreos/tectonic-installer
------
Welcome to the Tectonic tutorials!
Thank you for your interest in CoreOS Tectonic. We hope you’re excited to learn how Tectonic works and how this self-driving Kubernetes solution can improve your organization’s application infrastructure.To help you get up and running with Tectonic, we have designed these step-by-step tutorials. In them, we will walk you through:
- 3.1. Deploying an application
- 3.2. Scaling an application
- 3.3. Versioning an application
- 3.4. Deleting an application
Creating your Tectonic account
If you haven’t already done so, you can create your Tectonic account now, or do it as you move through the tutorials. Tectonic is free for use of up to 10 nodes.We will continue adding to these tutorials. Be sure to return and check for updates.
Let's Get Started
From https://github.com/coreos/tectonic-installer/blob/master/Documentation/tutorials/index.md
--------------------
https://coreos.com/tectonic/docs/latest/tutorials/
https://coreos.com/os/docs/latest
https://coreos.com/tectonic
相关帖子:
http://briteming.blogspot.com/2017/03/dockerkubernetes.html (docker容器的管理工具-Kubernetes)
http://briteming.blogspot.com/2016/12/kubernetes.html
No comments:
Post a Comment