Code Monkey home page Code Monkey logo

terraform-hcloud-rke2's People

Contributors

amreesht avatar dependabot[bot] avatar mpepping avatar wenzel-felix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

terraform-hcloud-rke2's Issues

Ignore annotation changes

  # module.rancher.module.rke2.kubernetes_secret.hcloud_ccm[0] will be updated in-place
  ~ resource "kubernetes_secret" "hcloud_ccm" {
        id                             = "kube-system/hcloud"
        # (4 unchanged attributes hidden)

      ~ metadata {
          ~ annotations      = {
              - "field.cattle.io/projectId" = "local:p-9hx5b" -> null
            }
            name             = "hcloud"
            # (5 unchanged attributes hidden)
        }
    }

Add Hetzner "addons" for the default cluster

Add a bool to disable default addons - normally the module should install similar components like:

resource "rancher2_cluster" "test_cluster" {
  name        = "test-cluster"
  description = "Foo rancher2 custom cluster"
  rke_config {
    addons = <<EOF
---
apiVersion: v1
stringData:
  token: ${var.hetzner_token}
  network: ${hcloud_network.main.name}
kind: Secret
metadata:
  name: hcloud
  namespace: kube-system
    EOF
    addons_include = [ "https://github.com/hetznercloud/hcloud-cloud-controller-manager/releases/latest/download/ccm-networks.yaml" ]
    services {
      kubelet {
        extra_args = {
          "cloud-provider" = "external"
        }
      }
    }
    enable_cri_dockerd = true
    network {
      plugin = "canal"
    }
  }
}

cannot re-use a name that is still in use

Thanks for this module.

I am getting error while running terraform apply inside rancher-setup folder.

Plan was successfully executed which showed to add 55 resources. But failed after adding 44 resources.

Screenshot from 2023-12-31 22-51-08

I checked that there are two resources named as resource "helm_release" "cert_manager"
In file cluster-certmanager.tf and rancher-setup/helm.tf too which may be conflicting here. I renamed cert_manager to kube_cert_manager but still getting the same error. Any idea?

Add ignore annotation changes for hcloud ccm

# module.rancher.module.rke2.kubernetes_deployment.hcloud_ccm[0] will be updated in-place
  ~ resource "kubernetes_deployment" "hcloud_ccm" {
        id               = "kube-system/hcloud-cloud-controller-manager"
        # (1 unchanged attribute hidden)

      ~ metadata {
          ~ annotations      = {
              - "field.cattle.io/publicEndpoints" = jsonencode(
                    [
                      - {
                          - addresses = [
                              - "65.109.162.5",
                            ]
                          - allNodes  = false
                          - nodeName  = ":rke2-master-onpehl"
                          - podName   = "kube-system:hcloud-cloud-controller-manager-54657b4b54-8fzhx"
                          - port      = 8233
                          - protocol  = "TCP"
                        },
                    ]
                ) -> null
            }
            name             = "hcloud-cloud-controller-manager"
            # (5 unchanged attributes hidden)
        }

      ~ spec {
            # (5 unchanged attributes hidden)

          ~ template {

              ~ spec {
                    # (14 unchanged attributes hidden)

                  ~ container {
                        name                       = "hcloud-cloud-controller-manager"
                        # (9 unchanged attributes hidden)

                      ~ port {
                          - host_port      = 8233 -> null
                            name           = "metrics"
                            # (2 unchanged attributes hidden)
                        }

                        # (4 unchanged blocks hidden)
                    }

                  + toleration {
                      + effect   = "NoExecute"
                      + key      = "node.kubernetes.io/not-ready"
                      + operator = "Equal"
                    }

                    # (4 unchanged blocks hidden)
                }

                # (1 unchanged block hidden)
            }

            # (2 unchanged blocks hidden)
        }
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.