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

Update RKE to latest #443

Closed
timursaikaliev opened this issue Feb 2, 2024 · 6 comments
Closed

Update RKE to latest #443

timursaikaliev opened this issue Feb 2, 2024 · 6 comments
Assignees
Milestone

Comments

@timursaikaliev
Copy link

https://github.com/rancher/rke/releases

@kingnarmer
Copy link

Will be good if provider updated to latest.

@ajchiarello
Copy link

More specifically, can we upgrade to the 1.5 branch of RKE, so that we can deploy Kubernetes 1.27+? 1.26 is EOL at the end of February 2024. https://kubernetes.io/releases/#release-v1-26

@raelix
Copy link

raelix commented Feb 26, 2024

any updates on this?

@enrico9034
Copy link
Contributor

Sorry any update?

@jiaqiluo
Copy link
Member

This can be validated with https://github.com/rancher/terraform-provider-rke/releases/tag/v1.4.4-rc1

@Josh-Diamond
Copy link

Josh-Diamond commented Mar 14, 2024

Ticket #443 - Test Results - ✅

Verified using tfp-rke v1.4.4-rc1:

Scenario Test Case Result
1. Using tfp-rke v1.4.4-rc1, create a standalone rke cluster w/ k8s v1.27.11-rancher1-1, ensuring cluster is active and fully functional

Testing was conducted by utilizing the following main.tf file:

terraform {
  required_providers {
    rke = {
      source  = "terraform.local/local/rke"
      version = "1.4.4-rc1"
    }
    local = {
      source = "hashicorp/local"
      version = "2.4.0"
    }
  }
}

# Create a new RKE cluster using arguments
resource "rke_cluster" "rke_cluster" {
  kubernetes_version = "v1.27.11-rancher1-1"
  enable_cri_dockerd = true
  nodes {
    address = "<REDACTED>"
    internal_address = "<REDACTED>"
    user    = "ubuntu"
    role    = ["controlplane", "worker", "etcd"]
    ssh_key = file("<REDACTED>")
  }
  upgrade_strategy {
      drain = true
      max_unavailable_worker = "20%"
  }
}

# Save kubeconfig file locally
resource "local_file" "kube_config" {
  content     = "${rke_cluster.rke_cluster.kube_config_yaml}"
  filename = "<REDACTED_FILE_PATH>/kube_config.yaml"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants