Git Product home page Git Product logo

tf-do-k8s-cluster-module's Introduction

tf-do-k8s-cluster-module

Example

terraform {
  required_version = ">= 1.5"
  required_providers {
    digitalocean = {
      source  = "digitalocean/digitalocean"
      version = "~> 2.30.0"
    }
  }
# Configure the DigitalOcean Provider
# export DIGITALOCEAN_TOKEN="..."
provider "digitalocean" {
  token = var.do_token
}

module "mathminds-w2app-nyc1" {
  source                             = "github.com/CHIP0K/tf-do-k8s-cluster-module.git?ref=v.0.0.0"
  PROJECT_NAME                       = "my-k8s-cluster"
  DO_K8S_VERSION_PREFIX              = "1.28."
  DO_MACHINE_GENERAL_NODES_AUTOSCALE = true
}

Requirements

Name Version
terraform >= 1.0
digitalocean ~> 2.30.0

Providers

Name Version
digitalocean ~> 2.30.0

Modules

No modules.

Resources

Name Type
digitalocean_kubernetes_cluster.k8s-cluster resource
digitalocean_kubernetes_versions.k8s_version data source

Inputs

Name Description Type Default Required
DO_AUTO_UPGRATE_CLUSTER (Optional) A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window. bool true no
DO_K8S_VERSION_PREFIX The Version Kubernetes cluster to deployment string "1.28." no
DO_MACHINE_GENERAL_NODES_AUTOSCALE Enable auto-scaling of the number of nodes in the node pool within the given min/max range. bool false no
DO_MACHINE_GENERAL_NODES_COUNT The number of Droplet instances in the node pool. If auto-scaling is enabled, this should only be set if the desired result is to explicitly reset the number of nodes to this value. If auto-scaling is enabled, and the node count is outside of the given min/max range, it will use the min nodes value. number 2 no
DO_MACHINE_GENERAL_NODES_MAX If auto-scaling is enabled, this represents the maximum number of nodes that the node pool can be scaled up to. number 5 no
DO_MACHINE_GENERAL_NODES_MIN If auto-scaling is enabled, this represents the minimum number of nodes that the node pool can be scaled down to number 1 no
DO_MACHINE_GENERAL_TYPE Droplet size. List all size: doctl compute size list string "s-2vcpu-2gb" no
DO_MAINTENANCE_DAY (Required) The day of the maintenance window policy. May be one of "monday" through "sunday", or "any" to indicate an arbitrary week day. string "monday" no
DO_MAINTENANCE_TIME (Required) The day of the maintenance window policy. May be one of "monday" through "sunday", or "any" to indicate an arbitrary week day. string "04:00" no
DO_REGION DO region to use string "nyc1" no
DO_SURGE_UPGRADE_CLUSTER (Optional) Enable/disable surge upgrades for a cluster. Default: false bool true no
PROJECT_NAME Cluster name string "k8s-demo" no

Outputs

No outputs.

tf-do-k8s-cluster-module's People

Contributors

chip0k avatar

Watchers

 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.