Provision an IBM Cloud cluster using private catalog¶
This method will install a managed cluster and the Cloud-Native Toolkit on IBM Cloud using the private catalog tiles installed in the previous step.
Note
These steps assume the private catalog has been created and populated with the Cloud-Native Toolkit tiles during the prepare the account steps.
Select the preferred environment for the cluster to run in, VPC or Classic infrastructure.
- Log in to the IBM Cloud Console.
- Select Catalog from the top menu.
- From the side menu, select your catalog from the drop-down list (e.g.
Team Catalog). (IBM Cloud catalog should be selected initially.) - Click Private on the side menu to see the private catalog entries
- Click on the 220. Cloud-Native VPC cluster tile
-
Enter values for the variables list provided.
Variable Description eg. Value ibmcloud_api_keyThe API key from IBM Cloud Console that has ClusterAdmin access and supports service creation {guid API key from Console}resource_group_nameThe existing resource group in the account where the cluster will be created dev-team-oneregionThe region where the cluster will be provisioned. us-east,eu-gb, etccluster_nameThe name of the cluster that will be provisioned. dev-team-one-iks-117-vpcvpc_zone_namesA comma-separated list of the VPC zones that should be used for worker nodes. us-south-1orus-east-1,us-east-2cluster_typeThe type of cluster into which the toolkit will be installed. The default is OpenShift 4.5.kubernetes,ocp3,ocp4,ocp44, orocp45flavorThe flavor of machine that should be provisioned for each worker. Defaults to mx2.4x32.mx2.4x32cluster_worker_countThe number of worker nodes that should be provisioned for each zone. Defaults to 33cluster_provision_cosFlag indicating that a new Object Storage instance should be provisioned. Defaults to truetrueorfalsecos_nameThe name of the Object Storage instance (If cluster_provision_cosis set totruethis value is requiredcntk-showcase-cos -
Check the box to accept the Apache 2 license for the tile.
- Click Install to start the install process
This will kick off the installation of the Cloud-Native Toolkit using an IBM Cloud Private Catalog Tile. The progress can be reviewed from the Schematics entry
- Log in to the IBM Cloud Console.
- Select Catalog from the top menu.
- From the side menu, select your catalog from the drop-down list (e.g.
Team Catalog). (IBM Cloud catalog should be selected initially.) - Click Private on the side menu to see the private catalog entries
- Click on the 221. Cloud-Native Classic cluster tile
-
Enter values for the variables list provided.
Variable Description eg. Value ibmcloud_api_keyThe API key from IBM Cloud Console that has ClusterAdmin access and supports service creation {guid API key from Console}resource_group_nameThe existing resource group in the account where the cluster will be created dev-team-oneregionThe region where the cluster will be provisioned. us-east,eu-gb, etccluster_nameThe name of the cluster that will be provisioned. dev-team-one-iks-117-vpcprivate_vlan_idThe id of an existing private VLAN. public_vlan_idThe id of an existing public VLAN. vlan_datacenterThe VLAN datacenter where the cluster will be provisioned. cluster_typeThe type of cluster into which the toolkit will be installed. The default is OpenShift 4.5.kubernetes,ocp3,ocp4,ocp44, orocp45flavorThe flavor of machine that should be provisioned for each worker. Defaults to m3c.4x32.m3c.4x32cluster_worker_countThe number of worker nodes that should be provisioned for each zone. Defaults to 33 -
Check the box to accept the Apache 2 license for the tile.
- Click Install to start the install process
This will kick off the installation of the Cloud-Native Toolkit using an IBM Cloud Private Catalog Tile. The progress can be reviewed from the Schematics entry
Troubleshooting¶
If you find that the Terraform provisioning has failed, for Private Catalog delete the workspace and for Iteration Zero try re-running the runTerraform.sh script again. The state will be saved and Terraform will try and apply the configuration to match the desired end state.
If you find that some of the services have failed to create in the time allocated, try the following with Iteration zero:
- Manually delete the service instances in your resource group
-
Re-run the
runTerraform.shscript with the--deleteargument to clean up the state./runTerraform.sh --delete