You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
Error: Experiment has concluded
on ../../main.tf line 3, in terraform:
3: experiments = [variable_validation]
Experiment "variable_validation" is no longer available. Custom variable
validation can now be used by default, without enabling an experiment.
Error: Failed to install providers
Could not find required providers, but found possible alternatives:
hashicorp/hcloud -> terraform-providers/hcloud
If these suggestions look correct, upgrade your configuration with the
following command:
terraform 0.13upgrade .
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
module.k3s.data.http.k3s_version: Refreshing state...
data.hcloud_image.ubuntu: Refreshing state...
module.k3s.data.http.k3s_installer: Refreshing state...------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:+ create
Terraform will perform the following actions:# hcloud_network.k3s will be created+resource"hcloud_network""k3s" {
+id=(known after apply)
+ip_range="10.0.0.0/8"+name="k3s-network"
}
# hcloud_network_subnet.k3s_nodes will be created+resource"hcloud_network_subnet""k3s_nodes" {
+gateway=(known after apply)
+id=(known after apply)
+ip_range="10.254.1.0/24"+network_id=(known after apply)
+network_zone="eu-central"+type="server"
}
# hcloud_server.agents[0] will be created+resource"hcloud_server""agents" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "agent"+"nodepool" = "gpu"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-agent-0"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.agents[1] will be created+resource"hcloud_server""agents" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "agent"+"nodepool" = "general"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-agent-1"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.agents[2] will be created+resource"hcloud_server""agents" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "agent"+"nodepool" = "general"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-agent-2"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.control_planes[0] will be created+resource"hcloud_server""control_planes" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "control-plane"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-control-plane-0"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.control_planes[1] will be created+resource"hcloud_server""control_planes" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "control-plane"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-control-plane-1"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.control_planes[2] will be created+resource"hcloud_server""control_planes" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "control-plane"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-control-plane-2"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server_network.agents_network[0] will be created+resource"hcloud_server_network""agents_network" {
+id=(known after apply)
+ip="10.254.1.4"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.agents_network[1] will be created+resource"hcloud_server_network""agents_network" {
+id=(known after apply)
+ip="10.254.1.5"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.agents_network[2] will be created+resource"hcloud_server_network""agents_network" {
+id=(known after apply)
+ip="10.254.1.6"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.control_planes[0] will be created+resource"hcloud_server_network""control_planes" {
+id=(known after apply)
+ip="10.254.1.1"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.control_planes[1] will be created+resource"hcloud_server_network""control_planes" {
+id=(known after apply)
+ip="10.254.1.2"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.control_planes[2] will be created+resource"hcloud_server_network""control_planes" {
+id=(known after apply)
+ip="10.254.1.3"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_ssh_key.default will be created+resource"hcloud_ssh_key""default" {
+fingerprint=(known after apply)
+id=(known after apply)
+name="K3S terraform module - Provisionning SSH key"
}
# module.k3s.null_resource.agents_drain["k3s-agent-0_node"] will be created+resource"null_resource""agents_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_drain["k3s-agent-1_node"] will be created+resource"null_resource""agents_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_drain["k3s-agent-2_node"] will be created+resource"null_resource""agents_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_install["k3s-agent-0_node"] will be created+resource"null_resource""agents_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "231c2099d0850d7cc82da54dad821067a7f24c4f"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.agents_install["k3s-agent-1_node"] will be created+resource"null_resource""agents_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "231c2099d0850d7cc82da54dad821067a7f24c4f"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.agents_install["k3s-agent-2_node"] will be created+resource"null_resource""agents_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "231c2099d0850d7cc82da54dad821067a7f24c4f"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.agents_label["k3s-agent-0_node|node.kubernetes.io/pool"] will be created+resource"null_resource""agents_label" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_label["k3s-agent-1_node|node.kubernetes.io/pool"] will be created+resource"null_resource""agents_label" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_label["k3s-agent-2_node|node.kubernetes.io/pool"] will be created+resource"null_resource""agents_label" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_taint["k3s-agent-0_node|dedicated"] will be created+resource"null_resource""agents_taint" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_drain["k3s-control-plane-0"] will be created+resource"null_resource""servers_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_drain["k3s-control-plane-1"] will be created+resource"null_resource""servers_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_drain["k3s-control-plane-2"] will be created+resource"null_resource""servers_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_install["k3s-control-plane-0"] will be created+resource"null_resource""servers_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "5bbc5b363504fa478032f0d97c877f884a076d94"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.servers_install["k3s-control-plane-1"] will be created+resource"null_resource""servers_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "5bbc5b363504fa478032f0d97c877f884a076d94"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.servers_install["k3s-control-plane-2"] will be created+resource"null_resource""servers_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "5bbc5b363504fa478032f0d97c877f884a076d94"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.random_password.k3s_cluster_secret will be created+resource"random_password""k3s_cluster_secret" {
+id=(known after apply)
+length=48+lower=true+min_lower=0+min_numeric=0+min_special=0+min_upper=0+number=true+result=(sensitive value)
+special=false+upper=true
}
Plan:32 to add, 0 to change, 0 to destroy.------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
module.k3s.data.http.k3s_version: Refreshing state...
data.hcloud_image.ubuntu: Refreshing state...
module.k3s.data.http.k3s_installer: Refreshing state...------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:+ create
Terraform will perform the following actions:# hcloud_network.k3s will be created+resource"hcloud_network""k3s" {
+id=(known after apply)
+ip_range="10.0.0.0/8"+name="k3s-network"
}
# hcloud_network_subnet.k3s_nodes will be created+resource"hcloud_network_subnet""k3s_nodes" {
+gateway=(known after apply)
+id=(known after apply)
+ip_range="10.254.1.0/24"+network_id=(known after apply)
+network_zone="eu-central"+type="server"
}
# hcloud_server.agents[0] will be created+resource"hcloud_server""agents" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "agent"+"nodepool" = "gpu"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-agent-0"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.agents[1] will be created+resource"hcloud_server""agents" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "agent"+"nodepool" = "general"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-agent-1"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.agents[2] will be created+resource"hcloud_server""agents" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "agent"+"nodepool" = "general"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-agent-2"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.control_planes[0] will be created+resource"hcloud_server""control_planes" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "control-plane"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-control-plane-0"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.control_planes[1] will be created+resource"hcloud_server""control_planes" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "control-plane"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-control-plane-1"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server.control_planes[2] will be created+resource"hcloud_server""control_planes" {
+backup_window=(known after apply)
+backups=false+datacenter=(known after apply)
+id=(known after apply)
+image="ubuntu-20.04"+ipv4_address=(known after apply)
+ipv6_address=(known after apply)
+ipv6_network=(known after apply)
+keep_disk=false+labels={
+"engine" = "k3s"+"node_type" = "control-plane"+"provisioner" = "terraform"
}
+location=(known after apply)
+name="k3s-control-plane-2"+server_type="cx11-ceph"+ssh_keys=(known after apply)
+status=(known after apply)
}
# hcloud_server_network.agents_network[0] will be created+resource"hcloud_server_network""agents_network" {
+id=(known after apply)
+ip="10.254.1.4"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.agents_network[1] will be created+resource"hcloud_server_network""agents_network" {
+id=(known after apply)
+ip="10.254.1.5"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.agents_network[2] will be created+resource"hcloud_server_network""agents_network" {
+id=(known after apply)
+ip="10.254.1.6"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.control_planes[0] will be created+resource"hcloud_server_network""control_planes" {
+id=(known after apply)
+ip="10.254.1.1"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.control_planes[1] will be created+resource"hcloud_server_network""control_planes" {
+id=(known after apply)
+ip="10.254.1.2"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_server_network.control_planes[2] will be created+resource"hcloud_server_network""control_planes" {
+id=(known after apply)
+ip="10.254.1.3"+mac_address=(known after apply)
+server_id=(known after apply)
+subnet_id=(known after apply)
}
# hcloud_ssh_key.default will be created+resource"hcloud_ssh_key""default" {
+fingerprint=(known after apply)
+id=(known after apply)
+name="K3S terraform module - Provisionning SSH key"
}
# module.k3s.null_resource.agents_drain["k3s-agent-0_node"] will be created+resource"null_resource""agents_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_drain["k3s-agent-1_node"] will be created+resource"null_resource""agents_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_drain["k3s-agent-2_node"] will be created+resource"null_resource""agents_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_install["k3s-agent-0_node"] will be created+resource"null_resource""agents_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "231c2099d0850d7cc82da54dad821067a7f24c4f"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.agents_install["k3s-agent-1_node"] will be created+resource"null_resource""agents_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "231c2099d0850d7cc82da54dad821067a7f24c4f"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.agents_install["k3s-agent-2_node"] will be created+resource"null_resource""agents_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "231c2099d0850d7cc82da54dad821067a7f24c4f"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.agents_label["k3s-agent-0_node|node.kubernetes.io/pool"] will be created+resource"null_resource""agents_label" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_label["k3s-agent-1_node|node.kubernetes.io/pool"] will be created+resource"null_resource""agents_label" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_label["k3s-agent-2_node|node.kubernetes.io/pool"] will be created+resource"null_resource""agents_label" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.agents_taint["k3s-agent-0_node|dedicated"] will be created+resource"null_resource""agents_taint" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_drain["k3s-control-plane-0"] will be created+resource"null_resource""servers_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_drain["k3s-control-plane-1"] will be created+resource"null_resource""servers_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_drain["k3s-control-plane-2"] will be created+resource"null_resource""servers_drain" {
+id=(known after apply)
+triggers=(known after apply)
}
# module.k3s.null_resource.servers_install["k3s-control-plane-0"] will be created+resource"null_resource""servers_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "5bbc5b363504fa478032f0d97c877f884a076d94"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.servers_install["k3s-control-plane-1"] will be created+resource"null_resource""servers_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "5bbc5b363504fa478032f0d97c877f884a076d94"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.null_resource.servers_install["k3s-control-plane-2"] will be created+resource"null_resource""servers_install" {
+id=(known after apply)
+triggers={
+"on_immutable_changes" = "5bbc5b363504fa478032f0d97c877f884a076d94"+"on_new_version" = "v1.18.8+k3s1"
}
}
# module.k3s.random_password.k3s_cluster_secret will be created+resource"random_password""k3s_cluster_secret" {
+id=(known after apply)
+length=48+lower=true+min_lower=0+min_numeric=0+min_special=0+min_upper=0+number=true+result=(sensitive value)
+special=false+upper=true
}
Plan:32 to add, 0 to change, 0 to destroy.------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, the Terraform workflow always fails. This PR will try to fix that.