generated from mrsimonemms/new
-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add flannel-external-ip command to manager nodes #57
Draft
mrsimonemms
wants to merge
1
commit into
main
Choose a base branch
from
sje/worker-nodes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Execution result of "run-all plan" in "stacks/prod"time=2025-01-15T17:09:55Z level=info msg=The stack at /github/workspace/stacks/prod will be processed in the following order for command plan:
Group 1
- Module /github/workspace/stacks/prod/hetzner
Group 2
- Module /github/workspace/stacks/prod/kubernetes
time=2025-01-15T17:09:55Z level=info msg=Downloading Terraform configurations from file:///github/workspace/modules/hetzner into /github/workspace/stacks/prod/hetzner/.terragrunt-cache/7n5v_ZVOv4gLIvn-SLBHuU7F7OI/B-HSI5LUu0nLTnyopQYP4SLEkoU prefix=[/github/workspace/stacks/prod/hetzner]
Initializing the backend...
Successfully configured the backend "remote"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing modules...
Downloading git::https://github.com/mrsimonemms/terraform-module-k3s.git for k3s...
- k3s in .terraform/modules/k3s
Initializing provider plugins...
- Reusing previous version of hashicorp/local from the dependency lock file
- Reusing previous version of loafoe/ssh from the dependency lock file
- Reusing previous version of hetznercloud/hcloud from the dependency lock file
- Installing hashicorp/local v2.5.1...
- Installed hashicorp/local v2.5.1 (signed by HashiCorp)
- Installing loafoe/ssh v2.7.0...
- Installed loafoe/ssh v2.7.0 (self-signed, key ID C0E4EB79E9E6A23D)
- Installing hetznercloud/hcloud v1.48.0...
- Installed hetznercloud/hcloud v1.48.0 (signed by a HashiCorp partner, key ID 5219EACB3A77198B)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has been successfully initialized!
hcloud_network.network: Refreshing state... [id=10450405]
hcloud_ssh_key.server: Refreshing state... [id=25470100]
hcloud_placement_group.managers[0]: Refreshing state... [id=435853]
hcloud_load_balancer.k3s_manager[0]: Refreshing state... [id=2216184]
hcloud_network_subnet.subnet: Refreshing state... [id=10450405-10.0.0.0/16]
hcloud_firewall.firewall: Refreshing state... [id=1791909]
hcloud_load_balancer_network.k3s_manager[0]: Refreshing state... [id=2216184-10450405]
hcloud_load_balancer_service.k3s_manager[0]: Refreshing state... [id=2216184__6443]
hcloud_load_balancer_target.k3s_manager[0]: Refreshing state... [id=lb-label-selector-tgt-f13103f1b53f748a64e813b07b8a0a70830ba59574b0885e6b5f98eac68e9d58-2216184]
hcloud_server.manager[0]: Refreshing state... [id=57514830]
hcloud_server.manager[1]: Refreshing state... [id=57514828]
hcloud_server.manager[2]: Refreshing state... [id=57514827]
ssh_resource.manager_ready[2]: Refreshing state... [id=485939443034857097]
ssh_resource.manager_ready[1]: Refreshing state... [id=2114671585054001821]
ssh_resource.manager_ready[0]: Refreshing state... [id=6387643183444380621]
module.k3s.ssh_resource.initial_manager: Refreshing state... [id=7874766205231490794]
module.k3s.ssh_sensitive_resource.join_token: Refreshing state... [id=2601839593514969138]
module.k3s.ssh_sensitive_resource.kubeconfig: Refreshing state... [id=9017648876876848976]
module.k3s.ssh_resource.additional_managers["prod-k3s-manager-1"]: Refreshing state... [id=455786700003009396]
module.k3s.ssh_resource.additional_managers["prod-k3s-manager-2"]: Refreshing state... [id=1824332216746966711]
local_sensitive_file.kubeconfig: Refreshing state... [id=1867d3d02a8a162be5e687d0f709e525bb947ba2]
module.k3s.ssh_resource.drain_managers["prod-k3s-manager-2"]: Refreshing state... [id=6493647296127044723]
module.k3s.ssh_resource.drain_managers["prod-k3s-manager-1"]: Refreshing state... [id=8873005755387765223]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
~ update in-place
Terraform will perform the following actions:
# local_sensitive_file.kubeconfig will be created
+ resource "local_sensitive_file" "kubeconfig" {
+ content = (sensitive value)
+ content_base64sha256 = (known after apply)
+ content_base64sha512 = (known after apply)
+ content_md5 = (known after apply)
+ content_sha1 = (known after apply)
+ content_sha256 = (known after apply)
+ content_sha512 = (known after apply)
+ directory_permission = "0755"
+ file_permission = "0600"
+ filename = "/github/workspace/.kubeconfig"
+ id = (known after apply)
}
# module.k3s.ssh_resource.additional_managers["prod-k3s-manager-1"] will be updated in-place
~ resource "ssh_resource" "additional_managers" {
id = "455786700003009396"
~ result = <<-EOT
NAME STATUS ROLES AGE VERSION
prod-k3s-manager-1 Ready etcd 2s v1.31.3+k3s1
EOT -> (known after apply)
# (13 unchanged attributes hidden)
- file {
# At least one attribute in this block is (or was) sensitive,
# so its contents will not be displayed.
}
+ file {
# At least one attribute in this block is (or was) sensitive,
# so its contents will not be displayed.
}
}
# module.k3s.ssh_resource.additional_managers["prod-k3s-manager-2"] will be updated in-place
~ resource "ssh_resource" "additional_managers" {
id = "1824332216746966711"
~ result = <<-EOT
NAME STATUS ROLES AGE VERSION
prod-k3s-manager-2 Ready etcd 2s v1.31.3+k3s1
EOT -> (known after apply)
# (13 unchanged attributes hidden)
- file {
# At least one attribute in this block is (or was) sensitive,
# so its contents will not be displayed.
}
+ file {
# At least one attribute in this block is (or was) sensitive,
# so its contents will not be displayed.
}
}
# module.k3s.ssh_resource.initial_manager will be updated in-place
~ resource "ssh_resource" "initial_manager" {
id = "7874766205231490794"
~ result = <<-EOT
NAME STATUS ROLES AGE VERSION
prod-k3s-manager-0 Ready etcd 3s v1.31.3+k3s1
EOT -> (known after apply)
# (13 unchanged attributes hidden)
- file {
- content = <<-EOT
"advertise-address": "10.0.0.5"
"cluster-cidr": "10.42.0.0/16"
"cluster-dns": "10.43.0.10"
"cluster-domain": "cluster.local"
"cluster-init": true
"disable":
- "local-storage"
- "servicelb"
- "traefik"
"disable-cloud-controller": true
"flannel-backend": "wireguard-native"
"https-listen-port": 6443
"kubelet-arg":
- "cloud-provider=external"
"node-external-ip": "94.130.184.170"
"node-ip": "10.0.0.5"
"node-label": []
"node-name": "prod-k3s-manager-0"
"node-taint": []
"service-cidr": "10.43.0.0/16"
"tls-san":
- "162.55.152.166"
"write-kubeconfig-mode": "0644"
EOT -> null
- destination = "/tmp/k3sconfig.yaml" -> null
# (4 unchanged attributes hidden)
}
+ file {
+ content = <<-EOT
"advertise-address": "10.0.0.5"
"cluster-cidr": "10.42.0.0/16"
"cluster-dns": "10.43.0.10"
"cluster-domain": "cluster.local"
"cluster-init": true
"disable":
- "local-storage"
- "servicelb"
- "traefik"
"disable-cloud-controller": true
"flannel-backend": "wireguard-native"
"flannel-external-ip": true
"https-listen-port": 6443
"kubelet-arg":
- "cloud-provider=external"
"node-external-ip": "94.130.184.170"
"node-ip": "10.0.0.5"
"node-label": []
"node-name": "prod-k3s-manager-0"
"node-taint": []
"service-cidr": "10.43.0.0/16"
"tls-san":
- "162.55.152.166"
"write-kubeconfig-mode": "0644"
EOT
+ destination = "/tmp/k3sconfig.yaml"
# (4 unchanged attributes hidden)
}
}
Plan: 1 to add, 3 to change, 0 to destroy.
time=2025-01-15T17:10:10Z level=info msg=Downloading Terraform configurations from file:///github/workspace/modules/kubernetes into /github/workspace/stacks/prod/kubernetes/.terragrunt-cache/-HGVTuUtXSFDQCN7IIesL6CulRY/z4vfL_CY3720zQ-fo9fFtb8YbxA prefix=[/github/workspace/stacks/prod/kubernetes]
Initializing the backend...
Successfully configured the backend "remote"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Reusing previous version of infisical/infisical from the dependency lock file
- Reusing previous version of hashicorp/kubernetes from the dependency lock file
- Reusing previous version of hashicorp/helm from the dependency lock file
- Installing hashicorp/kubernetes v2.31.0...
- Installed hashicorp/kubernetes v2.31.0 (signed by HashiCorp)
- Installing hashicorp/helm v2.14.1...
- Installed hashicorp/helm v2.14.1 (signed by HashiCorp)
- Installing infisical/infisical v0.12.4...
- Installed infisical/infisical v0.12.4 (self-signed, key ID 2513406FB39E8BB6)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
Terraform has been successfully initialized!
kubernetes_namespace_v1.argocd: Refreshing state... [id=argocd]
kubernetes_namespace_v1.metallb: Refreshing state... [id=metallb-system]
kubernetes_namespace_v1.external_secrets: Refreshing state... [id=external-secrets]
kubernetes_secret_v1.hcloud: Refreshing state... [id=kube-system/hcloud]
data.infisical_secrets.common_secrets: Reading...
kubernetes_secret_v1.bitwarden: Refreshing state... [id=external-secrets/bitwarden]
kubernetes_secret_v1.infisical: Refreshing state... [id=external-secrets/infisical]
helm_release.hcloud_ccm: Refreshing state... [id=hccm]
helm_release.hcloud_csi: Refreshing state... [id=hcsi]
data.infisical_secrets.common_secrets: Read complete after 0s
kubernetes_secret_v1.oidc_secret: Refreshing state... [id=argocd/oidc]
helm_release.argocd: Refreshing state... [id=argocd]
data.kubernetes_nodes.cluster: Reading...
data.kubernetes_nodes.cluster: Read complete after 0s [id=55af53b9b2d677d02341b48e2ee179970020864c036aabcbc62b6d74f76e320c]
kubernetes_config_map_v1.metallb: Refreshing state... [id=metallb-system/nodes]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# kubernetes_secret_v1.oidc_secret will be updated in-place
~ resource "kubernetes_secret_v1" "oidc_secret" {
id = "argocd/oidc"
# (4 unchanged attributes hidden)
~ metadata {
~ annotations = {
- "argocd.argoproj.io/sync-wave" = "10" -> null
- "reconcile.external-secrets.io/data-hash" = "e00fa68f65771c11139b918505920fd8" -> null
}
~ labels = {
- "argocd.argoproj.io/instance" = "argocd-components" -> null
- "reconcile.external-secrets.io/created-by" = "90873bbc804f7cdb791481efb85e3ecf" -> null
- "reconcile.external-secrets.io/managed" = "true" -> null
# (1 unchanged element hidden)
}
name = "oidc"
# (5 unchanged attributes hidden)
}
}
Plan: 0 to add, 1 to change, 0 to destroy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Related Issue(s)
Fixes #
How to test