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

Cluster Autoscaler installation fail #919

Open
shunsukew opened this issue May 3, 2024 · 2 comments
Open

Cluster Autoscaler installation fail #919

shunsukew opened this issue May 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@shunsukew
Copy link

shunsukew commented May 3, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Terraform v1.6.6
on darwin_arm64
+ provider registry.terraform.io/hashicorp/cloudinit v2.3.3
+ provider registry.terraform.io/hashicorp/helm v2.12.1
+ provider registry.terraform.io/hashicorp/http v3.4.2
+ provider registry.terraform.io/hashicorp/null v3.2.2
+ provider registry.terraform.io/hashicorp/oci v5.33.0
+ provider registry.terraform.io/hashicorp/random v3.6.0
+ provider registry.terraform.io/hashicorp/time v0.10.0
+ provider registry.terraform.io/oracle/oci v5.30.0

Your version of Terraform is out of date! The latest version
is 1.8.2. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

module.{module_name}.module.extensions[0].null_resource.cluster_autoscaler[0]

Terraform Configuration Files

  // Autoscaler
  // https://oracle-terraform-modules.github.io/terraform-oci-oke/guide/extensions_cluster_autoscaler.html
  cluster_autoscaler_install           = true
  cluster_autoscaler_namespace         = "kube-system"
  cluster_autoscaler_helm_version      = "9.36.0"
  cluster_autoscaler_helm_values       = {}
  cluster_autoscaler_helm_values_files = []

  worker_pools = {
    oke-vm-autoscaler = {
      size = 1, // Do not scale out. Scale out below worker pool such as oke-vm-optimized.
      description      = "Node pool with cluster autoscaler scheduling allowed",
      allow_autoscaler = true,
      shape = "VM.Standard3.Flex"
      ocpus = 1,
      memory = 4,
      boot_volume_size: 50,
    },
    ...
}

Expected Behavior

Autoscaler is properly installed.

Actual Behavior

Installation fails due to remote-exec error. error message is here.
Error message says, It looks like you are trying to use a client-go credential plugin that is not installed. which should be installed on the node.

Steps to Reproduce

Create OKE cluster with version 5.1.5, and set autoscaler config.

@shunsukew shunsukew added the bug Something isn't working label May 3, 2024
@hyder
Copy link
Contributor

hyder commented May 6, 2024

hi,
Thanks for logging this issue. In order for autoscaler installation to work, kubectl needs to be working too and it depends on oci-cli for authentication. The logs show that oci cli was not installed yet.

Can you please check on the operator host and confirm if that's the case?

@shunsukew
Copy link
Author

shunsukew commented May 8, 2024

Hello,
Yes, oci command is available on the operator host.

ubuntu@o-dev-japaneast-oke:~$ oci --version
3.40.1

Also, kubectl is available on the operator host.
However, oci-cli was installed manually because it was not installed by default when provisioning by this oke module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants