Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.58 KB

File metadata and controls

50 lines (35 loc) · 2.58 KB

SiDemo Cluster Example

This example demonstrates usage of the Equinix Metal K3s module. A Demo application is installed.

Usage

terraform init
terraform apply

Requirements

Name Version
terraform >= 1.3
equinix >= 1.14.2

Providers

No providers.

Modules

Name Source Version
demo ../.. n/a

Resources

No resources.

Inputs

Name Description Type Default Required
metal_auth_token Your Equinix Metal API key string n/a yes
metal_project_id Your Equinix Metal Project ID string n/a yes
clusters K3s cluster definition
list(object({
name = optional(string, "K3s demo cluster")
metro = optional(string, "FR")
plan_control_plane = optional(string, "c3.small.x86")
plan_node = optional(string, "c3.small.x86")
node_count = optional(number, 0)
k3s_ha = optional(bool, false)
os = optional(string, "debian_11")
control_plane_hostnames = optional(string, "k3s-cp")
node_hostnames = optional(string, "k3s-node")
custom_k3s_token = optional(string, "")
ip_pool_count = optional(number, 0)
k3s_version = optional(string, "")
metallb_version = optional(string, "")
}))
[
{}
]
no
deploy_demo Deploys a simple demo using a global IP as ingress and a hello-kubernetes pods bool false no
global_ip Enables a global anycast IPv4 that will be shared for all clusters in all metros bool false no

Outputs

Name Description
demo_cluster Passthrough of the root module output