Giter Site home page Giter Site logo

Comments (7)

v-ctiutiu avatar v-ctiutiu commented on August 15, 2024 1

Hi @ShurikAg

Thanks for submitting the issue.

Let me try to reproduce this scenario and get back to you. Thanks.

from kubernetes-starter-kit-developers.

bikram20 avatar bikram20 commented on August 15, 2024 1

@v-ctiutiu We should mark this as resolved since the PR is already merged.

from kubernetes-starter-kit-developers.

ShurikAg avatar ShurikAg commented on August 15, 2024

Looks like I had a wrong do_api_token. Fixed that, and not I am getting the following error:

│ Error: Get "http://localhost/api/v1/namespaces/flux-system": dial tcp [::1]:80: connect: connection refused
│
│   with module.doks_flux_cd.kubernetes_namespace.flux_system,
│   on .terraform/modules/doks_flux_cd/create-doks-with-terraform-flux/main.tf line 52, in resource "kubernetes_namespace" "flux_system":
│   52: resource "kubernetes_namespace" "flux_system" {

from kubernetes-starter-kit-developers.

v-ctiutiu avatar v-ctiutiu commented on August 15, 2024

Hi @ShurikAg

Sorry for the late response. I managed to reproduce your issue, and I'm currently working on a fix. Seems to be a bug in our Terraform module. Will let you know when it's ready.

Thanks.

from kubernetes-starter-kit-developers.

v-ctiutiu avatar v-ctiutiu commented on August 15, 2024

A fix is already in progress, via container-blueprints #25.

from kubernetes-starter-kit-developers.

v-ctiutiu avatar v-ctiutiu commented on August 15, 2024

@ShurikAg

Managed to fix the issue in the upstream repository (where the custom TF module is hosted). All you have to do in your existing TF workspace is this:

  1. Fetch the updated TF module from the upstream repository:

    terraform get -update
  2. Modify the doks_cluster_pool_node_count variable to suit your needs in the main.tf file from your workspace.

  3. Create the plan:

    terraform plan -out priz_prod_cluster.out

At the end Terrraform should show you that it is going to modify the node count from the pool. Something similar to (in my tests, I changed to node count from 1 to 2):

# module.doks_flux_cd.digitalocean_kubernetes_cluster.primary will be updated in-place
  ~ resource "digitalocean_kubernetes_cluster" "primary" {
        id             = "70cbf156-9415-43ba-a7b7-4e8cdfc7dc66"
        name           = "fluxcd-demo"
        tags           = []
        # (14 unchanged attributes hidden)


      ~ node_pool {
            id                = "7131414a-05de-47b5-9396-7853ea2f3312"
            name              = "fluxcd-demo-pool"
          ~ node_count        = 1 -> 2
            tags              = []
            # (7 unchanged attributes hidden)
        }
        # (1 unchanged block hidden)
    }

Please test and let me know how it goes.

Thanks.

from kubernetes-starter-kit-developers.

v-ctiutiu avatar v-ctiutiu commented on August 15, 2024

A PR containing the fix was already merged, and it was tested.

Users are encouraged to run terraform get -update, in order to update their local copy of the module.

Closing the issue as fixed.

from kubernetes-starter-kit-developers.

Related Issues (20)

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.