k8s
hajowieland/k8s/digitalocean
Terraform module for creating a Kubernetes cluster on Digital Ocean with latest available version, kubeconfig file creation and addititonal node pool.
Install
README
Terraform Kubernetes on Digital Ocean This repository contains the Terraform module for creating a Kubernetes Cluster on Digital Ocean. It uses the latest available Digital Ocean Kubernetes slug version available and creates a kubeconfig file at completion. - Terraform Kubernetes on Digital Ocean - Requirements - Features - Notes - Defaults - Runtime - Terraform Inputs - Outputs Requirements You need a Digital Ocean account and a Personal access token. Features Always uses latest available Kubernetes version on Digital Ocean Kubernetes Cluster with 1 + 2 = 3 worker nodes (default node pool + additional node pool) kubeconfig file generation at completion Notes The resources will be created in your default Digital Ocean project If you want to add/remove worker nodes, just edit the do_k8s_nod
Inputs (11)
| Name | Type | Description | Default |
|---|---|---|---|
| enable_digitalocean | bool | Enable / Disable Digital Ocean (e.g. `true`) | true |
| random_cluster_suffix | string | Random 6 byte hex suffix for cluster name | "" |
| do_k8s_name | string | Digital Ocean Kubernetes cluster name (e.g. `k8s-do`) | "k8s-do" |
| do_k8s_pool_name | string | Digital Ocean Kubernetes default node pool name (e.g. `k8s-do-nodepool`) | "k8s-mainpool" |
| do_k8s_node_type | string | Digital Ocean Kubernetes default node pool type (e.g. `s-1vcpu-2gb` => 1vCPU, 2G | "s-1vcpu-2gb" |
| do_k8s_nodepool_name | string | Digital Ocean Kubernetes additional node pool name (e.g. `k8s-do-nodepool`) | "k8s-nodepool" |
| do_k8s_nodepool_size | number | Digital Ocean Kubernetes additional node pool size (e.g. `3`) | 2 |
| do_token | string | Digital Ocean Personal access token | "" |
| do_region | string | Digital Ocean region (e.g. `fra1` => Frankfurt) | "fra1" |
| do_k8s_nodes | number | Digital Ocean Kubernetes default node pool size (e.g. `2`) | 1 |
| do_k8s_nodepool_type | string | Digital Ocean Kubernetes additional node pool type (e.g. `s-1vcpu-2gb` => 1vCPU, | "s-1vcpu-2gb" |
Outputs (1)
kubeconfig_path_doResources (4)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,