IBM-Cloud / terraform-ibm-openshift

Provision IBM Cloud infrastructure with Terraform, and install Red Hat® OpenShift Container Platform 3.
15 stars 40 forks source link

Terrform script to deploy OCP 3.11 #15

Open JyotiRani opened 5 years ago

JyotiRani commented 5 years ago

Currently these scripts deploy Openshift container platform 3.10. Do you have the updated version of it to deploy 3.11 instead? If not, will the update to inventory.cfg be sufficient to deploy 3.11 or we need more changes? Alternatively, is there a terraform script to upgrade from 3.10 to 3.11?

davetropeano commented 5 years ago

You should be able to just change the kube_version property of the resource. For example:

resource "ibm_container_cluster" "cluster" {
     name = "${var.cluster_name}${random_id.name.hex}"
     datacenter = "${var.datacenter}"
     default_pool_size = 3
     machine_type = "${var.machine_type}"
     hardware = "${var.hardware}"
     kube_version = "3.11.104_openshift"
     public_vlan_id = "${var.public_vlan_id}"
     private_vlan_id = "${var.private_vlan_id}"
     lifecycle {
         ignore_changes = ["kube_version"]
     }
}

resource "random_id" "name" {
     byte_length = 4
}

On Tue, Aug 6, 2019 at 11:27 AM JyotiRani notifications@github.com wrote:

Currently these scripts deploy Openshift container platform 3.10. Do you have the updated version of it to deploy 3.11 instead? If not, will the update to inventory.cfg be sufficient to deploy 3.11 or we need more changes? Alternatively, is there a terraform script to upgrade from 3.10 to 3.11?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IBM-Cloud/terraform-ibm-openshift/issues/15?email_source=notifications&email_token=AAN7NJW2XF4MORK5T6GTFADQDGJ5VA5CNFSM4IJXSW42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDVJEHA, or mute the thread https://github.com/notifications/unsubscribe-auth/AAN7NJQJL3EFN5YT4UDDUPDQDGJ5VANCNFSM4IJXSW4Q .