Skip to content
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

Each run i got ~ autoscaler update in terrafrom #48

Open
alexgoddity opened this issue Oct 17, 2024 · 0 comments
Open

Each run i got ~ autoscaler update in terrafrom #48

alexgoddity opened this issue Oct 17, 2024 · 0 comments

Comments

@alexgoddity
Copy link

What happened:
Each run I get:

Terraform will perform the following actions:

  # module.ocean-aws-k8s.spotinst_ocean_aws.ocean will be updated in-place
  ~ resource "spotinst_ocean_aws" "ocean" {
        id                                                 = "xxxxxxxxxx"
        name                                               = "dev-eks-xxxxxxxxx1"
        # (27 unchanged attributes hidden)

      ~ autoscaler {
            # (6 unchanged attributes hidden)

          + autoscale_headroom {
              + cpu_per_unit    = -1
              + gpu_per_unit    = -1
              + memory_per_unit = -1
              + num_of_units    = -1
            }

            # (2 unchanged blocks hidden)
        }

      + scheduled_task {
        }

        # (12 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

What you expected to happen:
How to avoid each plan or apply this massages ?
How to reproduce it (as minimally and precisely as possible):

module "ocean-aws-k8s" {
  source  = "spotinst/ocean-aws-k8s/spotinst"
  version = "1.5.0"
  # Configuration
  cluster_name                = module.eks.cluster_name
  region                      = var.aws_region
  subnet_ids                  = var.subnet_ids
  worker_instance_profile_arn = module.eks_nodes_role.iam_instance_profile_arn
  security_groups             = [module.eks.node_security_group_id]
  ami_id                      = aws_ami_copy.worker.id
  associate_public_ip_address = false
  min_size                    = 0
  blacklist                   = null
  whitelist                   = var.whitelist
  max_size                    = var.max_size
  user_data                   = local.worker_userdata
  should_tag_volumes          = true

  depends_on = [module.eks, module.ocean-kubernetes-controller, module.fargate_profile]
}

Anything else we need to know:

Environment:

Terraform v1.9.7
on darwin_arm64

  • provider registry.terraform.io/hashicorp/aws v5.72.1
  • provider registry.terraform.io/hashicorp/cloudinit v2.3.5
  • provider registry.terraform.io/hashicorp/helm v2.16.1
  • provider registry.terraform.io/hashicorp/kubernetes v2.33.0
  • provider registry.terraform.io/hashicorp/null v3.2.3
  • provider registry.terraform.io/hashicorp/time v0.12.1
  • provider registry.terraform.io/hashicorp/tls v4.0.6
  • provider registry.terraform.io/hashicorp/vault v4.4.0
  • provider registry.terraform.io/spotinst/spotinst v1.195.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant