ibm-cacc-prod

by joaquinito2051

Helm chartv1.4.0App 12.2.0-2610271009

Helm chart for IBM Cognos Analytics certified containers License By installing this product you accept the product license terms

About this chart

Cognos Analytics Certified Containers 12.2.0

Introduction

This Chart configures

  • IBM Cognos Analytics is a business intelligence (BI) platform that helps organizations analyze and interpret data to make better decisions. It provides tools for reporting, dashboarding, analysis, and event management, allowing users to explore data, create visualizations, and share insights
  • Product description - [https://www.ibm.com/products/cognos-analytics]

Chart Details

Chart will deploy Cognos Analytics Certified Containers in a cluster namespace. The Chart will create a number of Kubernetes objects such as:

Deployments
Configmaps
HPA
PVCs
Routes
ServiceMonitors
Services
Statefulsets

Prerequisites

  • Kubernetes Version - "1.31.0 and above"

  • OpenShift Version - "4.16 and above"

  • Helm Level: X86: " 3.17.0 and above" https://helm.sh/docs/intro/install/

  • PersistentVolume requirements - requires one of the following:

    • NFS
    • IBM Cloud File Storage (gold storage class)
    • Google Storage
    • Amazon Storage
    • Azure Storage
    • Red Hat OpenShift Container Storage 4.3 and above
    • or a hostPath PV that is a mounted clustered filesystem
  • For a full list of Cognos settings and configurations see the Cognos Analytics documentation.

CA Services

The following is a list of the Cognos Analytics services that will appear when Cognos is deployed.

  • CA Proxy Service
  • Content Manager Service
  • Reporting Service
  • Rest Service
  • UI Service
  • Smarts Service
  • Data Service
  • Agentic Service(optional)

Resources Required

The minimum required to deploy Cognos Analytics Certified containers is

  • 3 worker nodes
  • Cores: 16
  • Memory: 32 GiB

The following is an estimation of the compute resources for each of the Cognos Analytics services

Pod NameCpu RequestsCpu LimitsMem RequestsMem Limits
ca-cm4,200m8,400m4,200Mi8,800Mi
ca-reporting2,200m6,400m4,200Mi11,800Mi
ca-rest2,200m4,400m4,200Mi6,800Mi
ca-ui3,200m3,400m4,200Mi6,800Mi
ca-smarts2,200m5,400m5,200Mi8,800Mi
ca-dss2,200m6,400m6,200Mi11,800Mi
caproxy400m1,000m200Mi8,00Mi
ca-agentic-ai (optional)2,000m5,000m5,120Mi10,240Mi
Total (Required)16,300m35,400m28,400Mi53,600Mi
Total (with Agentic AI)18,300m40,400m33,520Mi63,840Mi

Red Hat OpenShift SecurityContextConstraints Requirements

Custom SecurityContextConstraints definition: Not applicable

Installing the Chart

IBM Cognos Analytics Certified Containers helm chart is located at https://github.com/IBM/charts/tree/master/repo/ibm-helm.
The name of the chart is ibm-cacc-prod-{HELM_CHART_VERSION}.tgz where HELM_CHART_VERSION is ibm-cacc-prod chart version starting from 1.0.0

1. Pre-install cluster configuration

Create a namespace of your desired name

$ export NAMESPACE=<desired name>

$ kubectl create namespace ${NAMESPACE}

Create the required secrets (secrets are managed outside of Helm). These are the mandatory secrets. These secrets will contain the credentials to log into the Content Store, Audit Store and Noticecast Store

$ kubectl create secret generic ca-cs-credentials-secret    --from-literal=username="${CS_USERNAME}"    --from-literal=password="${CS_PASSWORD}"    --type=kubernetes.io/basic-auth -n ${NAMESPACE}
$ kubectl create secret generic ca-audit-credentials-secret --from-literal=username="${AUDIT_USERNAME}" --from-literal=password="${AUDIT_PASSWORD}" --type=kubernetes.io/basic-auth -n ${NAMESPACE}
$ kubectl create secret generic ca-nc-credentials-secret    --from-literal=username="${NC_USERNAME}"    --from-literal=password="${NC_PASSWORD}"    --type=kubernetes.io/basic-auth -n ${NAMESPACE}

If you plan on using an email server requiring credentials, create the following secret

$ kubectl create secret generic ca-mailserver-credentials-secret --from-literal=username="" --from-literal=password=""  --type=kubernetes.io/basic-auth -n ${NAMESPACE}

If you plan on using an LDAP store requiring credentials, create the following secret

$ kubectl create secret generic ca-ldapbind-credentials-secret --from-literal=username=""  --from-literal=password=""  --type=kubernetes.io/basic-auth -n ${NAMESPACE}

If you plan on using an OpenId identity provider, create the following secret

$ kubectl create secret generic ca-openid-credentials-secret   --from-literal=username=""  --from-literal=password=""  --type=kubernetes.io/basic-auth -n ${NAMESPACE}

Note for the OpenId secret, use the ClientId for the Username, and the ClientSecret as the password.

If you plan on using the Agentic-AI service, create the following secret for OpenSearch:

kubectl create secret generic ca-opensearch-credentials-secret \
  --from-literal=username="admin" \
  --from-literal=password="YourSecurePassword123!" \
  --type=kubernetes.io/basic-auth -n ${NAMESPACE}

Note for the OpenSearch secret: users can modify the password, but it must be sufficiently complex; otherwise, OpenSearch will report an error.

Agentic AI PostgreSQL Database (Conversation History)

The Agentic AI service uses a dedicated PostgreSQL database for long-term conversation history. This database must be provisioned before deploying CACC with services.agenticAIService.enabled: true.

Step 1 — Create the database and user in your PostgreSQL instance

Connect as a superuser and run the following SQL commands. You can choose any database name and user name — they are configurable parameters.

Note: CREATE DATABASE cannot be run inside a transaction block in PostgreSQL, so it must be executed as a separate statement.

-- Step 1a: Create or update the user
-- Replace the values in angle brackets with your own choices
DO $$
BEGIN
  IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = '<DB_USER>') THEN
    EXECUTE format('CREATE USER %I WITH PASSWORD %L', '<DB_USER>', '<DB_PASSWORD>');
  ELSE
    EXECUTE format('ALTER USER %I WITH PASSWORD %L', '<DB_USER>', '<DB_PASSWORD>');
  END IF;
END $$;
-- Step 1b: Create the database (must be run outside a transaction block)
CREATE DATABASE "<DB_NAME>" OWNER "<DB_USER>";
-- Step 1c: Grant privileges on the database
GRANT ALL PRIVILEGES ON DATABASE "<DB_NAME>" TO "<DB_USER>";

Then connect to the new database and apply schema-level grants:

-- Run this connected to <DB_NAME>
GRANT ALL ON SCHEMA public TO <DB_USER>;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO <DB_USER>;
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO <DB_USER>;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO <DB_USER>;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON SEQUENCES TO <DB_USER>;

Step 2 — Create the Kubernetes Secret

kubectl create secret generic ca-agentic-db-credentials-secret \
  --from-literal=password="<DB_PASSWORD>" \
  -n ${NAMESPACE}

Step 3 — Configure the Helm override file

All connection fields are configurable — use only what differs from the defaults:

services:
  agenticAIService:
    agenticDb:
      host: "<pg-hostname>"          # required — your PostgreSQL host
      port: "5432"                   # default: 5432
      user: "<DB_USER>"              # default: agentic
      database: "<DB_NAME>"          # default: agentic_db
      # password is read from Secret ca-agentic-db-credentials-secret (key: password)

Alternatively, provide a full DSN (takes precedence over individual fields):

services:
  agenticAIService:
    agenticDb:
      url: "postgresql://<DB_USER>:<DB_PASSWORD>@<pg-hostname>:5432/<DB_NAME>"

Note: If agenticDb.host (or agenticDb.url) is left empty, the agentic service starts in degraded mode — all other agentic features work normally but conversation history is disabled.

TLS Certificate Setup for HTTPS Deployment (Optional)

If you plan to enable HTTPS and agentic service, you need to configure TLS certificates using your own certificate and key.

Note on OpenShift Service CA: By default, the caproxy-frontdoor-service Service carries an annotation that instructs OpenShift to automatically generate and rotate the frontdoor TLS certificate. When you supply your own certificate (e.g. an IBM-signed or enterprise CA cert), set ingress.tlsManagedByOpenShift: false in your override file to prevent OpenShift from overwriting your Secret.

Certificate SAN Requirements

Your certificate must include Subject Alternative Names (SANs) for every service that acts as a TLS server. The minimum required SANs for a full HTTPS deployment (frontdoor + embedding + MCP) are:

DNS: <your-external-hostname>          # e.g. ca-ingress-route-eca1.apps.example.com
DNS: caproxy-frontdoor-service         # cluster-internal frontdoor name
DNS: embedding-service                 # required when embeddingService.serviceTargetType=https
DNS: ca-mcp-server                     # required when mcpServer.serviceTargetType=https

Generate or request a single certificate covering all four SANs, then use it for all TLS Secrets below.


Step 1: Export Certificate and Key Paths

export TLS_CERT_PATH="<path_to_your_certificate_file>"   # PEM, full chain preferred
export TLS_KEY_PATH="<path_to_your_private_key_file>"
export NAMESPACE="<your-namespace>"
export RELEASE="<your-helm-release-name>"                # e.g. ibm-cacc

Step 2: Create TLS Secret for caproxy-frontdoor Service

This secret is used by the caproxy-frontdoor service to enable HTTPS connections:

kubectl delete secret frontdoor-tls-cert -n ${NAMESPACE} 2>/dev/null || true
kubectl create secret tls frontdoor-tls-cert \
    --cert="${TLS_CERT_PATH}" \
    --key="${TLS_KEY_PATH}" \
    -n ${NAMESPACE}

if [ $? -eq 0 ]; then
    echo "✓ TLS secret 'frontdoor-tls-cert' created successfully"
else
    echo "Error: Failed to create TLS secret"
    exit 1
fi

Step 3: Create CA Bundle ConfigMap for Agentic AI and MCP Server Pods

This ConfigMap (key name must be ca-bundle.crt) is mounted by the ca-agentic-ai and ca-mcp-server pods so they can verify the Cognos HTTPS certificate chain on outbound calls:

kubectl delete configmap ca-certificates -n ${NAMESPACE} 2>/dev/null || true
kubectl create configmap ca-certificates \
    --from-file=ca-bundle.crt="${TLS_CERT_PATH}" \
    -n ${NAMESPACE}

if [ $? -eq 0 ]; then
    echo "✓ ConfigMap 'ca-certificates' created successfully"
else
    echo "Warning: Failed to create CA bundle ConfigMap"
    exit 1
fi

Step 4: Create TLS Secret for Embedding Service (required when embeddingService.serviceTargetType: https)

kubectl delete secret ${RELEASE}-embedding-certs -n ${NAMESPACE} 2>/dev/null || true
kubectl create secret tls ${RELEASE}-embedding-certs \
    --cert="${TLS_CERT_PATH}" \
    --key="${TLS_KEY_PATH}" \
    -n ${NAMESPACE}

echo "✓ TLS secret '${RELEASE}-embedding-certs' created successfully"

Step 5: Create TLS Secret for MCP Server (required when mcpServer.serviceTargetType: https)

kubectl delete secret ca-mcp-server-tls -n ${NAMESPACE} 2>/dev/null || true
kubectl create secret tls ca-mcp-server-tls \
    --cert="${TLS_CERT_PATH}" \
    --key="${TLS_KEY_PATH}" \
    -n ${NAMESPACE}

echo "✓ TLS secret 'ca-mcp-server-tls' created successfully"

Step 6: Configure override values

Add the following to your Helm override file to enable HTTPS for all services and suppress OpenShift certificate auto-generation:

ingress:
  routeEnableTLS: true
  tlsSecret: frontdoor-tls-cert
  # Prevent OpenShift from overwriting the frontdoor Secret with its own CA cert
  tlsManagedByOpenShift: false

spiffe:
  protocol: https

services:
  embeddingService:
    enabled: true
    serviceTargetType: https        # enables inbound TLS on the embedding pod

  mcpServer:
    enabled: true
    serviceTargetType: https        # enables inbound TLS on the MCP server pod
    tlsSecret: ca-mcp-server-tls    # name of the Secret created in Step 5
    cognosVerifySsl: true           # verify Cognos certificate on outbound calls
    cognosSslCaBundle:
      enabled: true                 # mount ca-certificates ConfigMap as COGNOS_SSL_CA_BUNDLE

litellm:
  enabled: true
  sslVerify: true                   # verify embedding cert using combined CA bundle

Step 7: Verify after deployment

# Confirm MCP server is listening on HTTPS
kubectl exec -n ${NAMESPACE} deployment/ca-mcp-server -- \
  python3 -c "
import urllib.request, ssl, json
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
resp = urllib.request.urlopen('https://localhost:8000/health', context=ctx)
print(json.loads(resp.read()))
"

# Confirm frontdoor certificate is signed by your own CA (not OpenShift)
kubectl exec -n ${NAMESPACE} deployment/ca-agentic-ai -c ca-agentic-ai -- \
  python3 -c "
import ssl, socket, subprocess, base64
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
with ctx.wrap_socket(socket.create_connection(('caproxy-frontdoor-service', 9300), timeout=5),
                     server_hostname='caproxy-frontdoor-service') as s:
    pem = b'-----BEGIN CERTIFICATE-----\n' + base64.encodebytes(s.getpeercert(binary_form=True)) + b'-----END CERTIFICATE-----\n'
    r = subprocess.run(['openssl','x509','-noout','-subject','-issuer'], input=pem, capture_output=True)
    print(r.stdout.

Deploy ibm-cacc-prod with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ibm-cacc-prod on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartibm-cacc-prod is pinned at v1.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply