Skip to content

Terraform module to install Kubernetes stack on cloud or self-hosted on-premise infrastructures such as Bare Metal or Virtual Machine in various Hypervisors.

License

Notifications You must be signed in to change notification settings

bayudwiyansatria/terraform-kubernetes-cloud-bootstrap

Repository files navigation

Platforms License Code Of Conduct Support Contributing


Terraform Kubernetes

Contributor Covenant

Kubernetes provisioner using terraform. Installing kubernetes stack on cloud with External Cloud Provider.

Requirements

Name Version
Terraform > = 1.0.11

Machine at least 3 with minum as kubernetes requirements refer to kubernetes docs

Getting Started

There are instructions under demo directory will get you a copy of the project up and running on your local machine for development and testing purposes.

Usage

module "kubernetes" {
  source          = "bayudwiyansatria/cloud-bootstrap/kubernetes"
  master_host     = var.master_host
  worker_host     = var.worker_host
  ssh_private_key = var.cluster_admin_ssh_access
}
module "kubernetes" {
  source          = "bayudwiyansatria/bootstrap/kubernetes"
  master_host     = [
    10.0.0.2
  ]
  worker_host     = [
    10.0.0.3,
    10.0.0.4
  ]
  ssh_private_key = var.cluster_admin_ssh_access
}

Variables

Name Default Description Required
master_host [] List Server IP addresses for Master true
worker_host [] List Server IP addresses for Master true
ssh_private_key "" SSH Private Key true
kubernetes_version 1.20.0 Kubernetes Version false
feature_gates "" Kubernetes feature gate false
pod_network_cidr 192.168.0.0/16 Pod Network CIDR false
docker_enabled true Provisioning Docker Engine false

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Looking to contribute to our code but need some help? There's a few ways to get information:

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Copyright © 2021. All Rights Reserved.

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration