Recommended: Validating your production deployment
Instead of manually checking all the URLs and certificates that are created by your deployment, you can run a script to validate these objects automatically in a few minutes.
Before you begin
Make sure that your client machine can connect to the cluster you want to use, and has the necessary tools. Install the appropriate tools from the following list.
- jq (a JSON processor open source tool)
-
- On macOS:
- How to install jq.
brew install jq - Verify the installation.
jq –version jq --help
- How to install jq.
- On CentOS/RHEL:
- Install the EPEL Repository.
sudo yum install epel-release - Update the packages.
sudo yum update - Install jq.
sudo yum install jq - Verify the installation.
jq --version jq --help
- Install the EPEL Repository.
- On macOS:
About this task
The post-installation script (bai-post-install.sh) is found in the
cert-kubernetes-bai repository. The script helps you to assess the readiness of
your bai deployment, and to retrieve and validate connection information to all its services. For
more information about downloading cert-kubernetes-bai, see Preparing a client to connect to the cluster.
After you downloaded the CASE package and extracted the cert-kubernetes-bai
archive, change directory to the /scripts folder under
ibm-ba-insights/inventory/cp4aOperatorSdk/files/deploy/crs/cert-kubernetes-bai.
The /scripts folder is the root folder ($ROOT_FOLDER) of the
post-installation script.
The bai-post-install.sh script has four modes for a production deployment
type:
- precheck
- The
precheckmode gets some basic information about the cluster, the console, and the client. - status
- The
statusmode gets the status of all the components from the custom resource (Ready|Not Ready|Not Installed). - console
- The
consolemode gets the console connection information from the URLs and credentials. - probe
- The
probemode checks the readiness and health of the deployment endpoints.
The script can be run with the following options:
./bai-post-install.sh --help
--precheck This mode gives information about the cluster and the client.
--status This mode gives the status of the services of the deployment.
--console This mode gives the service URLs of the consoles in the deployment.
--probe This mode checks the readiness of the deployment endpoints.
When you run the script in the status, console, or
probe mode, the commands display information about the Business Automation Insights version and interim fix number of the
installed deployment.
If no BAI production deployments are found on the cluster, then information about the cluster is displayed along with the following message:
No resources found for BAI Production deployment types.
If no BAI production deployments are found in the namespace in which you run the script, then information about the cluster is displayed along with the following message:
No BAI Production deployment found in namespace NAMESPACE.
Procedure
What to do next
Some capabilities need you to follow post-deployment steps. For more information, see Completing post-installation tasks.