support-agent
A Helm chart for deploying the support-agent
About this chart
IBM Z Support Agent
Overview
The IBM Z Support Agent enables users to execute Ansible playbooks through the Watsonx Assistant for Z chat interface.
Agent capabilities
| Agent capability | Description |
|---|---|
| Take z/OS dump | Collect dump on a z/OS address space |
| Send z/OS dump | Transfer the dump collected on z/OS address space |
| Retrieve job status | Retrieve the launched ansible job status and logs |
Prerequisites
Ensure the following:
- watsonx Assistant for Z is installed
- Ansible Automation Platform instance and its credentials
Deployment Guide
The IBM Z Support Agent is deployed using a Custom Resource (CR) definition. The CR provides a declarative way to manage the agent deployment through the agent operator.
Prerequisites
Before deploying the agent, ensure:
- The agent operator is installed and running in your cluster
- The target namespace exists
- Ansible Automation Platform instance is configured and accessible
Step 1: Create Secrets
The agent requires Kubernetes Secrets containing sensitive configuration values. Never commit secrets to version control.
Secret Types
The agent uses two types of secrets:
- Global Secrets (
wxa4z-watsonx-credentials): Shared across all agents - Agent-Specific Secrets (
wxa4z-support-agent-secrets): Unique to this agent
Agent-Specific Secret Reference
Create a secret with the following structure. All values must be base64-encoded.
apiVersion: v1
kind: Secret
metadata:
name: wxa4z-support-agent-secrets
namespace: "" # REQUIRED: Must match the agent namespace
type: Opaque
data:
# Agent Authentication (base64-encoded, REQUIRED)
AGENT_AUTH_TOKEN: "" # REQUIRED: Agent auth token for registration with WxO
# Ansible Automation Platform Configuration (base64-encoded, REQUIRED)
AAP_ENDPOINT: "" # REQUIRED: Base URL of your AAP instance
AAP_USERNAME: "" # REQUIRED: Username for AAP API access
AAP_PASSWORD: "" # REQUIRED: Password for AAP API access
# Dump Transfer Configuration (base64-encoded, REQUIRED)
SEND_DUMP_TRANSFER_ID: "" # REQUIRED: Transfer ID for send dump job
SEND_DUMP_TRANSFER_PASSWORD: "" # REQUIRED: Transfer password for send dump job
LANGFUSE_API_KEY: "" # REQUIRED: Langfuse API key for translation
LANGFUSE_API_SECRET: "" # REQUIRED: Langfuse API secret for translation
Important:
- AGENT_AUTH_TOKEN is required for agent registration with watsonx Orchestrate.
- All AAP credentials are required for Ansible playbook execution.
Creating the Secret
- Save the secret configuration to a file (e.g.,
support-agent-secret.yaml) - Update the namespace and base64-encode all secret values
- Apply the secret:
oc apply -f support-agent-secret.yaml
- Verify the secret was created:
oc get secret wxa4z-support-agent-secrets -n <namespace>
Step 2: Deploy Agent using Custom Resource (CR)
Configuration Parameters
The following table outlines the key configuration parameters:
| Parameter | Description | Required |
|---|---|---|
| metadata.namespace | Target namespace for agent deployment | Yes |
| spec.tenantId | Tenant identifier for multi-tenancy support | Yes |
| spec.chart.version | Helm chart version to deploy | Yes |
| spec.values.env.WATSONX_MODEL_ID | LLM Model ID (e.g., "meta-llama/llama-3-3-70b-instruct") | Yes |
| spec.values.env.MODEL_RUNTIME | MODEL RUNTIME (e.g., "openai_protocol") | Yes |
| spec.values.secrets.name | Name of agent-specific secrets | Yes |
| spec.values.global.secrets.name | Name of global shared secrets | Yes |
| spec.values.env.TAKE_DUMP_JOB_TEMPLATE | Template name of take dump ansible job | Yes |
| spec.values.env.SEND_DUMP_JOB_TEMPLATE | Template name of send dump ansible job | Yes |
CR Definition
Below is the complete Custom Resource definition. Update the placeholder values according to your environment:
apiVersion: wxa4z.watsonx.ibm.com/v1alpha1
kind: AgentService
metadata:
name: support-agent
namespace: "" # REQUIRED: Target namespace (e.g., wxa4z-agents)
labels:
wxa4z.watsonx.ibm.com/managed-by: agent-operator
spec:
releaseName: support-agent
namespace: "" # REQUIRED: Must match metadata.namespace
tenantId: "" # REQUIRED: Tenant identifier for multi-tenancy support
wxa4z-core-services-namespace: wxa4z-zad # Namespace where wxa4z core services are deployed
agentDetails:
- agentName: support-agent
agentId: wxa4z:support-agent:agent
description: 'Enables users to execute Ansible playbooks for z/OS support tasks'
bootstrapConfig:
name: "support-agent-bootstrap-config"
fileName: "support_agent_bootstrap_config.yaml"
chart:
repository: oci://cp.icr.io/cp/ibm-watsonx-assistant-for-z
name: support-agent
version: "1.5.0" # Update to the desired chart version
# Uncomment if using a private registry:
# pullSecrets:
# - name: wxa4z-image-pull-secret
values:
# Note: For WXO version 5.4.2+, the route.tls section below is required. For versions prior to WXO 5.4.2, it is not required.
route:
tls:
enableTlsCertMount: false
replicaCount: 1
global:
secrets:
name: wxa4z-watsonx-credentials # Global secrets shared across agents
secrets:
name: wxa4z-support-agent-secrets # Agent-specific secrets
env:
# LLM Configuration
WATSONX_MODEL_ID: "meta-llama/llama-3-3-70b-instruct"
MODEL_RUNTIME: "openai_protocol"
# Ansible Job Templates
TAKE_DUMP_JOB_TEMPLATE: "" # REQUIRED: Template name for take dump job
SEND_DUMP_JOB_TEMPLATE: "" # REQUIRED: Template name for send dump job
Installing the Agent
- Save the CR configuration to a file (e.g.,
support-agent-cr.yaml) - Update all placeholder values marked as
REQUIRED - Apply the CR to your cluster:
oc apply -f support-agent-cr.yaml
- Verify the deployment:
# Check CR status
oc get agentservice support-agent -n <namespace>
# Check agent pods
oc get pods -n <namespace> -l app=support-agent
# View agent logs
oc logs -n <namespace> -l app=support-agent --tail=100
Step 3: Subscribe to the agent
After successfully deploying the agent, you need to subscribe to it to make it available in watsonx Orchestrate.
-
Open the Cloud Pak for Data (CPD) home page.
- Example:
https://cpd-<instance>.apps.<cluster-domain>/zen/?context=icp4data#/homepage
- Example:
-
Click on the Launch WXA4Z console tab.
- This opens the WXA4Z Content Ingestion UI (Tenant Overview page).
- Example:
https://wxa4z-content-ingestion-ui-route-wxa4z-zad.apps.<cluster-domain>/en
-
On the Tenant Overview page, click on your Tenant name.
-
Navigate to the Subscriptions tab.
- You will see a list of deployed agents with a Subscribe button next to each.
-
Click the Subscribe button next to the IBM Z Support Agent.
- This action adds the agent to watsonx Orchestrate (WXO) and makes it available for deployment.
Step 4: Deploy the agent
- Log in to watsonx Orchestrate.
- From the main menu, navigate to Build > Agent Builder.
- Select the IBM Z Support Agent tile.
- In the AI Assistant window, enter a query to confirm that the response aligns with your expectations.
- Click Deploy to activate the agent and make it available in the live environment.
Step 5: Upgrade the Agent
To upgrade the agent to a new version:
Note: If the agent was previously subscribed to watsonx Orchestrate, you must first unsubscribe it before upgrading. After the upgrade is complete, re-subscribe the agent. See the Uninstall the Agent section for unsubscribe steps and the Subscribe to the agent section for subscribe steps.
- Update the
spec.chart.versionfield in your CR file:
spec:
chart:
version: "1.1.0" # Update to the new version
- Apply the updated CR:
oc apply -f support-agent-cr.yaml
- Monitor the upgrade progress:
# Watch the agent pods rolling update
oc get pods -n <namespace> -l app=support-agent -w
# Check the CR status
oc describe agentservice support-agent -n <namespace>
The agent operator will automatically handle the upgrade process, including rolling updates of the agent pods.
Step 6: Uninstall the Agent
To uninstall the agent:
If the agent was previously subscribed to watsonx Orchestrate, first unsubscribe it:
-
Open the Cloud Pak for Data (CPD) home page.
- Example:
https://cpd-<instance>.apps.<cluster-domain>/zen/?context=icp4data#/homepage
- Example:
-
Click on the Launch WXA4Z console tab.
- This opens the WXA4Z Content Ingestion UI (Tenant Overview page).
- Example:
https://wxa4z-content-ingestion-ui-route-wxa4z-zad.apps.<cluster-domain>/en
-
On the Tenant Overview page, click on your Tenant name.
-
Navigate to the Subscriptions tab.
- You will see a list of deployed agents with an Unsubscribe button next to each.
-
Click the Unsubscribe button next to the IBM Z Support Agent.
- This action removes the agent from watsonx Orchestrate (WXO).
Then, delete the agent resources:
- Delete the Custom Resource:
oc delete agentservice support-agent -n <namespace>
- Verify the agent resources are removed:
# Check that the agent pods are terminated
oc get pods -n <namespace> -l app=support-agent
# Verify the CR is deleted
oc get agentservice -n <namespace>
- (Optional) Clean up secrets if no longer needed:
# Delete agent-specific secrets
oc delete secret wxa4z-support-agent-secrets -n <namespace>
# Note: Do not delete global secrets if other agents are using them
Note: The agent operator will automatically clean up all resources created by the agent, including deployments, services, and configmaps. However, secrets must be manually deleted if they are no longer needed.
Test the agent
After deployment, the agent becomes active and is available for selection in the live environment.
-
From the main menu, click Chat.
-
Choose your agent from the list.
-
Enter your queries using the AI Assistant. For example:
- Can you take dump of z/os?
Responses are displayed either in a tabular format or as a sentence, depending on the context.
-
Verify that the responses returned by the AI Assistant are accurate.
Troubleshooting installation errors
If you run into any errors during installation, see Troubleshooting for troubleshooting steps.
Uninstalling the agent
For uninstallation instructions, see Uninstall specific agent.
Troubleshooting agent runtime errors
Follow these steps to troubleshoot agent runtime errors:
- Ansible Connection Error: Verify that your AAP_ENDPOINT is correct and accessible from the cluster
- Authentication Failed: Check that AAP_USERNAME and AAP_PASSWORD are correct and have proper permissions
- Job Template Not Found: Ensure TAKE_DUMP_JOB_TEMPLATE and SEND_DUMP_JOB_TEMPLATE match the template names in your Ansible Automation Platform
Deploy support-agent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has support-agent 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsupport-agent is pinned at v1.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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