From 2f03de341f1d8d4ed5b89ff37b8d7397c79b3cb5 Mon Sep 17 00:00:00 2001 From: gcoon151 Date: Tue, 21 Jan 2025 15:18:12 -0500 Subject: [PATCH] ibmcloud: Improvements to ROKS demo instructions 1. Replaced kubectl with oc (bc Openshift) 2. Added caution about deleting cluster without deleting workload. 3. fixed version Signed-off-by: gcoon151 --- src/cloud-api-adaptor/ibmcloud/ROKS_SETUP.md | 37 +++++++++++--------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/src/cloud-api-adaptor/ibmcloud/ROKS_SETUP.md b/src/cloud-api-adaptor/ibmcloud/ROKS_SETUP.md index c5006f0af..6f43ab773 100644 --- a/src/cloud-api-adaptor/ibmcloud/ROKS_SETUP.md +++ b/src/cloud-api-adaptor/ibmcloud/ROKS_SETUP.md @@ -50,7 +50,7 @@ If you are using an existing cluster, you can skip this section and proceed to [ 1. Create a ROKS cluster ```bash - ibmcloud ks cluster create vpc-gen2 --flavor bx2.4x16 --name "$CLUSTER_NAME" --subnet-id "$SUBNET_ID" --vpc-id "$VPC_ID" --zone "$ZONE" --operating-system RHCOS --workers 2 --version 4.16.23_openshift --disable-outbound-traffic-protection --cos-instance "$COS_CRN" + ibmcloud ks cluster create vpc-gen2 --flavor bx2.4x16 --name "$CLUSTER_NAME" --subnet-id "$SUBNET_ID" --vpc-id "$VPC_ID" --zone "$ZONE" --operating-system RHCOS --workers 2 --version 4.17.12_openshift --disable-outbound-traffic-protection --cos-instance "$COS_CRN" ``` @@ -80,7 +80,7 @@ By default, your Red Hat OpenShift cluster will not work with the peer pod compo 1. Allow `cloud-api-adaptor` to update pod finalizers ```bash - kubectl apply -n default -f - < [!NOTE] +> Deleting the cluster might persist the podvm created by cloud-api-adaptor. Make sure to delete the Helloworld pod first. + +Otherwise: 1. To delete the Helloworld sample ```bash - kubectl delete -n default -f https://raw.githubusercontent.com/istio/istio/release-1.24/samples/curl/curl.yaml - kubectl delete -n default pod helloworld + oc delete -n default -f https://raw.githubusercontent.com/istio/istio/release-1.24/samples/curl/curl.yaml + oc delete -n default pod helloworld ``` -1. To uninstall the peer pod components +1. To uninstall the peer pod components ```bash pushd test/tools export CLOUD_PROVIDER=ibmcloud export TEST_PROVISION_FILE="$HOME/peerpods-cluster.properties" ./caa-provisioner-cli -action=uninstall - kubectl delete ns confidential-containers-system + oc delete ns confidential-containers-system popd ```