./cp4a-clusteradmin-setup.sh
[INFO] Checking the IBM Cert-manager Operator ready or not
[INFO] Checking for IBM Cert-Manager Operator ready or not...
[✔] IBM Cert-manager Operator is running:
[INFO] Pod: cert-manager-controller-5c875b7cd8-mwv8m
cert-manager-webhook-6ffd9d67f4-q2d79
cert-manager-cainjector-5dcd976f6d-r5f9f
ibm-cert-manager-operator-f9c4495dc-lbwz6
[INFO] Starting to set up the cluster for CP4BA deployment
Select the cloud platform to deploy:
1) RedHat OpenShift Kubernetes Service (ROKS) - Public Cloud
2) Openshift Container Platform (OCP) - Private Cloud
3) Other ( Certified Kubernetes Cloud Platform / CNCF)
Enter a valid option [1 to 3]: 2
This script prepares the OLM for the deployment of some Cloud Pak for Business Automation capabilities
What type of deployment is being performed?
1) Starter
2) Production
Enter a valid option [1 to 2]: 2
Do you want CP4BA Operator support 'All Namespaces'? (Yes/No, default: No) No
Where do you want to deploy Cloud Pak for Business Automation?
Enter the name for a new project or an existing project (namespace): bronze
The Cloud Pak for Business Automation Operator (Pod, CSV, Subscription) not found in cluster
Continue....
Project "bronze" already exists! Continue...
Here are the existing users on this cluster:
1) Cluster Admin
2) <my_company_non_admin_user>
Enter an existing username in your cluster, valid option [1 to 2], non-admin is suggested: 2
Follow the instructions on how to get your Entitlement Key:
https://www.ibm.com/docs/en/cloud-paks/cp-biz-automation/23.0.1?topic=deployment-getting-access-images-from-public-entitled-registry
Do you have a Cloud Pak for Business Automation Entitlement Registry key (Yes/No, default: No): Yes
Enter your Entitlement Registry key:
Verifying the Entitlement Registry key...
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Login Succeeded
Entitlement Registry key is valid.
The existing storage classes in the cluster:
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
managed-nfs-storage (default) redhat-emea-ssa-team/hetzner-ocp4 Delete Immediate false 21h
Creating docker-registry secret for Entitlement Registry key in project bronze...
secret/ibm-entitlement-key created
Done
Waiting for the Cloud Pak for Business Automation operator to be ready. This might take a few minutes...
catalogsource.operators.coreos.com/ibm-cp4a-operator-catalog created
catalogsource.operators.coreos.com/ibm-cs-flink-operator-catalog created
catalogsource.operators.coreos.com/ibm-cs-elastic-operator-catalog created
Warning: resource catalogsources/ibm-cert-manager-catalog is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by oc apply. oc apply should only be used on resources created declaratively by either oc create --save-config or oc apply. The missing annotation will be patched automatically.
catalogsource.operators.coreos.com/ibm-cert-manager-catalog configured
Warning: resource catalogsources/ibm-licensing-catalog is missing the kubectl.kubernetes.io/last-applied-configuration annotation which is required by oc apply. oc apply should only be used on resources created declaratively by either oc create --save-config or oc apply. The missing annotation will be patched automatically.
catalogsource.operators.coreos.com/ibm-licensing-catalog configured
catalogsource.operators.coreos.com/opencloud-operators-v4-0 created
catalogsource.operators.coreos.com/bts-operator created
catalogsource.operators.coreos.com/cloud-native-postgresql-catalog created
catalogsource.operators.coreos.com/ibm-fncm-operator-catalog created
IBM Operator Catalog source created!
[INFO] Waiting for CP4BA Operator Catalog pod initialization
[INFO] CP4BA Operator Catalog is running...
ibm-cp4a-operator-catalog-8gc2h 1/1 Running 0 16s
operatorgroup.operators.coreos.com/ibm-cp4a-operator-catalog-group created
CP4BA Operator Group Created!
subscription.operators.coreos.com/ibm-cp4a-operator-catalog-subscription created
CP4BA Operator Subscription Created!
[INFO] Waiting for CP4BA operator pod initialization
......CP4BA operator is running...
ibm-cp4a-operator-596779864c-z648c
[INFO] Waiting for CP4BA Content operator pod initialization
CP4BA Content operator is running...
ibm-content-operator-84467c8648-s6g9n
Adding the user ocadmin to the ibm-cp4a-operator role...Done!
Label the default namespace to allow network policies to open traffic to the ingress controller using a namespaceSelector...namespace/default labeled
Done
Storage classes are needed to run the deployment script. For the Starter deployment scenario, you may use one (1) storage class. For an Production deployment, the deployment script will ask for three (3) storage classes to meet the slow, medium, and fast storage for the configuration of CP4BA components. If you don't have three (3) storage classes, you can use the same one for slow, medium, or fast. Note that you can get the existing storage class(es) in the environment by running the following command: oc get storageclass. Take note of the storage classes that you want to use for deployment.
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
managed-nfs-storage (default) redhat-emea-ssa-team/hetzner-ocp4 Delete Immediate false 21h |