Browse Source
Remove deprecated provider, fix flatcar configs, enable CI tests and refactor hetzner terraform (#10002)
Remove deprecated provider, fix flatcar configs, enable CI tests and refactor hetzner terraform (#10002)
* Remove deprecated provider and fix flatcar configs * Refactor for DRYness * Add missing line endings * Enable tests for hetzner terraform in CI * Add missing inventory for CI testspull/10025/head
Qasim Mehmood
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 178 additions and 179 deletions
Split View
Diff Options
-
6.gitlab-ci/terraform.yml
-
12contrib/terraform/hetzner/default.tfvars
-
43contrib/terraform/hetzner/main.tf
-
154contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/main.tf
-
22contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/outputs.tf
-
5contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/templates/machine.yaml.tmpl
-
4contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/variables.tf
-
5contrib/terraform/hetzner/modules/kubernetes-cluster-flatcar/versions.tf
-
48contrib/terraform/hetzner/modules/kubernetes-cluster/main.tf
-
4contrib/terraform/hetzner/modules/kubernetes-cluster/versions.tf
-
46contrib/terraform/hetzner/sample-inventory/cluster.tfvars
-
1contrib/terraform/hetzner/sample-inventory/group_vars
-
2contrib/terraform/hetzner/variables.tf
-
5contrib/terraform/hetzner/versions.tf
@ -1,13 +1,14 @@ |
|||
terraform { |
|||
required_providers { |
|||
hcloud = { |
|||
source = "hetznercloud/hcloud" |
|||
source = "hetznercloud/hcloud" |
|||
} |
|||
ct = { |
|||
source = "poseidon/ct" |
|||
version = "0.11.0" |
|||
} |
|||
null = { |
|||
source = "hashicorp/null" |
|||
source = "hashicorp/null" |
|||
} |
|||
} |
|||
} |
@ -1,8 +1,8 @@ |
|||
terraform { |
|||
required_providers { |
|||
hcloud = { |
|||
source = "hetznercloud/hcloud" |
|||
version = "1.31.1" |
|||
source = "hetznercloud/hcloud" |
|||
version = "1.38.2" |
|||
} |
|||
} |
|||
required_version = ">= 0.14" |
|||
|
@ -0,0 +1,46 @@ |
|||
prefix = "default" |
|||
zone = "hel1" |
|||
network_zone = "eu-central" |
|||
inventory_file = "inventory.ini" |
|||
|
|||
ssh_public_keys = [ |
|||
# Put your public SSH key here |
|||
"ssh-rsa I-did-not-read-the-docs", |
|||
"ssh-rsa I-did-not-read-the-docs 2", |
|||
] |
|||
|
|||
ssh_private_key_path = "~/.ssh/id_rsa" |
|||
|
|||
machines = { |
|||
"master-0" : { |
|||
"node_type" : "master", |
|||
"size" : "cx21", |
|||
"image" : "ubuntu-22.04", |
|||
}, |
|||
"worker-0" : { |
|||
"node_type" : "worker", |
|||
"size" : "cx21", |
|||
"image" : "ubuntu-22.04", |
|||
}, |
|||
"worker-1" : { |
|||
"node_type" : "worker", |
|||
"size" : "cx21", |
|||
"image" : "ubuntu-22.04", |
|||
} |
|||
} |
|||
|
|||
nodeport_whitelist = [ |
|||
"0.0.0.0/0" |
|||
] |
|||
|
|||
ingress_whitelist = [ |
|||
"0.0.0.0/0" |
|||
] |
|||
|
|||
ssh_whitelist = [ |
|||
"0.0.0.0/0" |
|||
] |
|||
|
|||
api_server_whitelist = [ |
|||
"0.0.0.0/0" |
|||
] |
@ -0,0 +1 @@ |
|||
../../../../inventory/sample/group_vars |
Write
Preview
Loading…
Cancel
Save