Coder Social home page Coder Social logo

sedan07 / terraform-render-bootkube Goto Github PK

View Code? Open in Web Editor NEW

This project forked from poseidon/terraform-render-bootstrap

0.0 1.0 0.0 234 KB

Render kubernetes-incubator/bootkube assets with Terraform

Home Page: https://github.com/kubernetes-incubator/bootkube

License: MIT License

HCL 100.00%

terraform-render-bootkube's Introduction

terraform-render-bootkube

terraform-render-bootkube is a Terraform module that renders kubernetes-incubator/bootkube assets for bootstrapping a Kubernetes cluster.

Audience

terraform-render-bootkube is a low-level component of the Typhoon Kubernetes distribution. Use Typhoon modules to create and manage Kubernetes clusters across supported platforms. Use the bootkube module if you'd like to customize a Kubernetes control plane or build your own distribution.

Usage

Use the module to declare bootkube assets. Check variables.tf for options and terraform.tfvars.example for examples.

module "bootkube" {
  source = "git::https://github.com/poseidon/terraform-render-bootkube.git?ref=SHA"

  cluster_name = "example"
  api_servers = ["node1.example.com"]
  etcd_servers = ["node1.example.com"]
  asset_dir = "/home/core/clusters/mycluster"
}

Generate the assets.

terraform init
terraform plan
terraform apply

Find bootkube assets rendered to the asset_dir path. That's it.

Comparison

Render bootkube assets directly with bootkube v0.14.0.

bootkube render --asset-dir=assets --api-servers=https://node1.example.com:6443 --api-server-alt-names=DNS=node1.example.com --etcd-servers=https://node1.example.com:2379

Compare assets. Rendered assets may differ slightly from bootkube assets to reflect decisions made by the Typhoon distribution.

pushd /home/core/mycluster
mv manifests-networking/* manifests
popd
diff -rw assets /home/core/mycluster

terraform-render-bootkube's People

Contributors

dghubble avatar acobaugh avatar barakmich avatar hcbraun avatar rubda avatar bzub avatar qbast avatar

Watchers

James Cloos avatar

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.