From faf34f658ff4911ab5ebf12e7c4193671287c343 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 8 May 2022 16:01:59 +0200 Subject: [PATCH] with certmanager --- terraform.tfstate | 26 ++++++++- terraform.tfstate.backup | 117 +++++++++++++++++++++++++++++++++++++-- 2 files changed, 134 insertions(+), 9 deletions(-) diff --git a/terraform.tfstate b/terraform.tfstate index f9778fb..af78166 100644 --- a/terraform.tfstate +++ b/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.1.7", - "serial": 57, + "serial": 60, "lineage": "04d648e3-bdd4-2cef-384a-6564647940db", "outputs": {}, "resources": [ @@ -41,15 +41,25 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9", "dependencies": [ + "module.kube-hetzner.data.github_release.hetzner_ccm", + "module.kube-hetzner.data.github_release.hetzner_csi", + "module.kube-hetzner.data.github_release.kured", "module.kube-hetzner.data.hcloud_load_balancer.traefik", + "module.kube-hetzner.data.remote_file.kubeconfig", "module.kube-hetzner.hcloud_firewall.k3s", + "module.kube-hetzner.hcloud_network.k3s", "module.kube-hetzner.hcloud_network_subnet.control_plane", "module.kube-hetzner.hcloud_placement_group.control_plane", "module.kube-hetzner.hcloud_ssh_key.k3s", + "module.kube-hetzner.local_sensitive_file.kubeconfig", "module.kube-hetzner.module.control_planes.data.cloudinit_config.config", "module.kube-hetzner.module.control_planes.hcloud_server.server", "module.kube-hetzner.module.control_planes.hcloud_server_network.server", - "module.kube-hetzner.module.control_planes.random_string.server" + "module.kube-hetzner.module.control_planes.random_string.server", + "module.kube-hetzner.null_resource.control_planes", + "module.kube-hetzner.null_resource.first_control_plane", + "module.kube-hetzner.null_resource.kustomization", + "module.kube-hetzner.random_password.k3s_token" ] }, { @@ -81,15 +91,25 @@ "sensitive_attributes": [], "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9", "dependencies": [ + "module.kube-hetzner.data.github_release.hetzner_ccm", + "module.kube-hetzner.data.github_release.hetzner_csi", + "module.kube-hetzner.data.github_release.kured", "module.kube-hetzner.data.hcloud_load_balancer.traefik", + "module.kube-hetzner.data.remote_file.kubeconfig", "module.kube-hetzner.hcloud_firewall.k3s", + "module.kube-hetzner.hcloud_network.k3s", "module.kube-hetzner.hcloud_network_subnet.control_plane", "module.kube-hetzner.hcloud_placement_group.control_plane", "module.kube-hetzner.hcloud_ssh_key.k3s", + "module.kube-hetzner.local_sensitive_file.kubeconfig", "module.kube-hetzner.module.control_planes.data.cloudinit_config.config", "module.kube-hetzner.module.control_planes.hcloud_server.server", "module.kube-hetzner.module.control_planes.hcloud_server_network.server", - "module.kube-hetzner.module.control_planes.random_string.server" + "module.kube-hetzner.module.control_planes.random_string.server", + "module.kube-hetzner.null_resource.control_planes", + "module.kube-hetzner.null_resource.first_control_plane", + "module.kube-hetzner.null_resource.kustomization", + "module.kube-hetzner.random_password.k3s_token" ] } ] diff --git a/terraform.tfstate.backup b/terraform.tfstate.backup index b88ebc6..dc347a7 100644 --- a/terraform.tfstate.backup +++ b/terraform.tfstate.backup @@ -1,10 +1,119 @@ { "version": 4, "terraform_version": "1.1.7", - "serial": 54, + "serial": 59, "lineage": "04d648e3-bdd4-2cef-384a-6564647940db", "outputs": {}, "resources": [ + { + "module": "module.dns", + "mode": "managed", + "type": "cloudflare_record", + "name": "exact", + "provider": "module.dns.provider[\"registry.terraform.io/cloudflare/cloudflare\"]", + "instances": [ + { + "index_key": "*.kjuulh.app", + "schema_version": 2, + "attributes": { + "allow_overwrite": false, + "created_on": "2022-05-08T13:48:54.289798Z", + "data": [], + "hostname": "*.kjuulh.app", + "id": "7234597988434057f1bc0630efada29b", + "metadata": { + "auto_added": "false", + "managed_by_apps": "false", + "managed_by_argo_tunnel": "false", + "source": "primary" + }, + "modified_on": "2022-05-08T13:48:54.289798Z", + "name": "*.kjuulh.app", + "priority": null, + "proxiable": true, + "proxied": false, + "timeouts": null, + "ttl": 3600, + "type": "A", + "value": "49.12.19.255", + "zone_id": "9454b35cb1010b9eab9aadf206fdf11f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9", + "dependencies": [ + "module.kube-hetzner.data.github_release.hetzner_ccm", + "module.kube-hetzner.data.github_release.hetzner_csi", + "module.kube-hetzner.data.github_release.kured", + "module.kube-hetzner.data.hcloud_load_balancer.traefik", + "module.kube-hetzner.data.remote_file.kubeconfig", + "module.kube-hetzner.hcloud_firewall.k3s", + "module.kube-hetzner.hcloud_network.k3s", + "module.kube-hetzner.hcloud_network_subnet.control_plane", + "module.kube-hetzner.hcloud_placement_group.control_plane", + "module.kube-hetzner.hcloud_ssh_key.k3s", + "module.kube-hetzner.local_sensitive_file.kubeconfig", + "module.kube-hetzner.module.control_planes.data.cloudinit_config.config", + "module.kube-hetzner.module.control_planes.hcloud_server.server", + "module.kube-hetzner.module.control_planes.hcloud_server_network.server", + "module.kube-hetzner.module.control_planes.random_string.server", + "module.kube-hetzner.null_resource.control_planes", + "module.kube-hetzner.null_resource.first_control_plane", + "module.kube-hetzner.null_resource.kustomization", + "module.kube-hetzner.random_password.k3s_token" + ] + }, + { + "index_key": "kjuulh.app", + "schema_version": 2, + "attributes": { + "allow_overwrite": false, + "created_on": "2022-05-08T13:48:54.199417Z", + "data": [], + "hostname": "kjuulh.app", + "id": "5bc099d554ee71ea6ce63f76a4531e77", + "metadata": { + "auto_added": "false", + "managed_by_apps": "false", + "managed_by_argo_tunnel": "false", + "source": "primary" + }, + "modified_on": "2022-05-08T13:48:54.199417Z", + "name": "kjuulh.app", + "priority": null, + "proxiable": true, + "proxied": false, + "timeouts": null, + "ttl": 3600, + "type": "A", + "value": "49.12.19.255", + "zone_id": "9454b35cb1010b9eab9aadf206fdf11f" + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMiJ9", + "dependencies": [ + "module.kube-hetzner.data.github_release.hetzner_ccm", + "module.kube-hetzner.data.github_release.hetzner_csi", + "module.kube-hetzner.data.github_release.kured", + "module.kube-hetzner.data.hcloud_load_balancer.traefik", + "module.kube-hetzner.data.remote_file.kubeconfig", + "module.kube-hetzner.hcloud_firewall.k3s", + "module.kube-hetzner.hcloud_network.k3s", + "module.kube-hetzner.hcloud_network_subnet.control_plane", + "module.kube-hetzner.hcloud_placement_group.control_plane", + "module.kube-hetzner.hcloud_ssh_key.k3s", + "module.kube-hetzner.local_sensitive_file.kubeconfig", + "module.kube-hetzner.module.control_planes.data.cloudinit_config.config", + "module.kube-hetzner.module.control_planes.hcloud_server.server", + "module.kube-hetzner.module.control_planes.hcloud_server_network.server", + "module.kube-hetzner.module.control_planes.random_string.server", + "module.kube-hetzner.null_resource.control_planes", + "module.kube-hetzner.null_resource.first_control_plane", + "module.kube-hetzner.null_resource.kustomization", + "module.kube-hetzner.random_password.k3s_token" + ] + } + ] + }, { "module": "module.kube-hetzner", "mode": "data", @@ -684,17 +793,13 @@ "dependencies": [ "module.kube-hetzner.data.remote_file.kubeconfig", "module.kube-hetzner.hcloud_firewall.k3s", - "module.kube-hetzner.hcloud_network.k3s", "module.kube-hetzner.hcloud_network_subnet.control_plane", "module.kube-hetzner.hcloud_placement_group.control_plane", "module.kube-hetzner.hcloud_ssh_key.k3s", "module.kube-hetzner.module.control_planes.data.cloudinit_config.config", "module.kube-hetzner.module.control_planes.hcloud_server.server", "module.kube-hetzner.module.control_planes.hcloud_server_network.server", - "module.kube-hetzner.module.control_planes.random_string.server", - "module.kube-hetzner.null_resource.control_planes", - "module.kube-hetzner.null_resource.first_control_plane", - "module.kube-hetzner.random_password.k3s_token" + "module.kube-hetzner.module.control_planes.random_string.server" ] } ]