IBM Connectivity pack consists of connector framework and a huge set of connectors that are designed to help IBM Software products to solve their connectivity requirements. It is a reusable asset that can deployed within a product scope. It offers consistent interface through REST APIs, using Open standards.
- Kubernetes 1.16+
- Helm 3.0+
- OpenShift 4.x (for Route and OpenShift-specific features)
- Credentials used for APIC image pull secret.
The Connectivity Pack acts as an interface between connector endpoints and Codegen service. It can be deployed on OpenShift and other Kubernetes platforms by using the Connectivity Pack Helm chart.
Clone the repository in your enviroment.
The connector service provides an option to enable MTLS communication.
Run the below command to set the environment variable
export MTLS_ENABLED=true
Run the below command to set the environment variables
export RELEASE_NAME=<RELEASE_NAME>
export RELEASE_NAMESPACE=<RELEASE_NAMESPACE>
export DNS2=$RELEASE_NAME-service.$RELEASE_NAME.svc.cluster.local
export DNS3=<route.domain>
export PKCS_PASSWORD=<certificate.pkcsPassword>
Where:
<RELEASE_NAME>
is the release name of your choice. For example,ibm-connectivity-pack
<RELEASE_NAMESPACE>
is the namespace where you want to install the Connectivity Pack.<route.domain>
is the subdomain of OpenShift cluster where connector service is being deployed. It's value should be same as mentioned invalues.yaml
file.<certificate.pkcsPassword>
Only needed when MTLS is enabled. This password protects certificate and private key. It's value should be same as mentioned invalues.yaml
file.
Now login to your Openshift instance using oc
commmand line tool.
Navigate to the scripts
directory and run the following commands:
chmod +x createCert.sh
./createCert.sh
The above command will create new secret/s in your Openshift namespace.
Navigate to helm
directory.
If image pull secret name if already exists, please specify here
image.imagePullSecretName
Else give below values for creating new Image pull secret
image.imagePullEmail
image.imagePullUsername
image.imagePullPassword
If MTLS is enabled, update the following in the values.yaml
file:
certificate.MTLSenable
: truecertificate.pkcsPassword
: A strong password to protect certificate and private key.
Navigate to the helm
directory.
Run the following command to package your helm chart.
helm package ./
To install the Connectivity Pack, run the following command:
helm install $RELEASE_NAME ./ibm-connectivity-pack-1.4.2.tgz -n $RELEASE_NAMESPACE --set license.accept=true --set certificate.serverSecretName=$RELEASE_NAME-server-secrets --set certificate.clientSecretName=$RELEASE_NAME-client-secrets
Where: license.accept determines whether the license is accepted (default is false if not specified). certificate.serverSecretName points connectivity pack to server secrets certificate.clientSecretName points connectivity pack to client secrets
You can override the default configuration parameters by using the --set
flag or by using a custom YAML file. For example, to set the replicaCount
as 3
, you can use --set replicaCount=3
.
For more information about installing the Connectivity Pack, including a complete list of configuration parameters supported by the Helm chart, see installing the Connectivity Pack.
To access connectivity pack, use the host URL present in the Routes section of Openshift.
If MTLS is enabled, the client certificates can be fetched from the Secrets section of Openshift. Secret with name RELEASE_NAME-client-secrets
contains the secrets.