Skip to content

Latest commit

 

History

History
91 lines (80 loc) · 8.44 KB

USAGE.md

File metadata and controls

91 lines (80 loc) · 8.44 KB

Requirements

Name Version
terraform >=0.13.1
local >=1.4.0
null >=2.1.2
random >=3.1.0

Providers

Name Version
local >=1.4.0
null >=2.1.2
random >=3.1.0

Modules

Name Source Version
client_certificate Invicton-Labs/shell-resource/external 0.4.1
client_key Invicton-Labs/shell-resource/external 0.4.1
cluster_ca_certificate Invicton-Labs/shell-resource/external 0.4.1
host Invicton-Labs/shell-resource/external 0.4.1
keypair ./modules/keypair n/a
network ./modules/network n/a
secgroup ./modules/secgroup n/a
server ./modules/node n/a

Resources

Name Type
local_file.tmpdirfile resource
null_resource.write_kubeconfig resource
random_string.rke2_token resource

Inputs

Name Description Type Default Required
additional_configs_gzb64 RKE2 additional configs in gz+b64 in the form { "config_file_name": "gzb64_manifests" } map(string) {} no
additional_configs_path RKE2 additional config files string "" no
additional_san RKE2 additional SAN list(string) [] no
availability_zones The list of AZs to deploy nodes into list(string) [] no
boot_from_volume Boot nodes from volume bool false no
boot_volume_size The size of the boot volume number 20 no
boot_volume_type The type of the boot volume string "" no
cluster_name Name of the cluster string "rke2" no
containerd_config_file containerd config file for servers string "" no
dns_domain DNS domain for DNS integration. DNS domain names must have a dot at the end string null no
dns_servers DNS servers list(string) null no
do_upgrade Trigger upgrade provisioner bool false no
flavor_name Server flavor name string n/a yes
image_id ID of image nodes (must fullfill RKE2 requirements) string "" no
image_name ID of image nodes (must fullfill RKE2 requirements) string "" no
instance_tags Tags added to the instance list(string) [] no
manifests_gzb64 RKE2 addons manifests in gz+b64 in the form { "addon_name": "gzb64_manifests" } map(string) {} no
manifests_path RKE2 addons manifests directory string "" no
no_proxy Hosts that should not be proxied list(string) [] no
nodes_config_drive Whether to use the config_drive feature to configure the instances bool "false" no
nodes_count Number of server nodes (should be odd number...) number 1 no
nodes_net_cidr Neutron network CIDR string "192.168.42.0/24" no
output_kubernetes_config Output Kubernetes config to state (for use with Kubernetes provider) bool "false" no
proxy_url URL of proxy server string null no
public_net_name External network name string n/a yes
registries_conf Containerd registries config in gz+b64 string "" no
rke2_config RKE2 config contents string "" no
rke2_version RKE2 version string "" no
secgroup_rules Security group rules list(any)
[
{
"port": 22,
"protocol": "tcp",
"source": "0.0.0.0/0"
},
{
"port": 6443,
"protocol": "tcp",
"source": "0.0.0.0/0"
},
{
"port": 80,
"protocol": "tcp",
"source": "0.0.0.0/0"
},
{
"port": 443,
"protocol": "tcp",
"source": "0.0.0.0/0"
}
]
no
server_group_affinity Server group affinity string "soft-anti-affinity" no
ssh_key_file Local path to SSH key string "~/.ssh/id_rsa" no
ssh_keypair_name SSH keypair name string null no
system_user Default OS image user string "ubuntu" no
use_ssh_agent Whether to use ssh agent bool "true" no
user_data_file User data file to provide when launching the instance string null no
write_kubeconfig Write kubeconfig file to disk bool "false" no

Outputs

Name Description
floating_ip Nodes floating IP
internal_ip Nodes internal IP
kubernetes_config Kubernetes config to feed Kubernetes or Helm provider
node_config Nodes config
router_ip Router external_ip
subnet_id Nodes Subnet ID