Deploying IBM z/OS Connect for DevOps
How to deploy IBM® z/OS® Connect for a DevOps pipeline.
A DevOps pipeline defines a series of tasks that are run in a predefined sequence to automate the development and deployment of projects for continuous integration and delivery. The following task provides an overview of common pipeline tasks for deploying IBM z/OS Connect API projects. The pipeline technology used to implement these tasks depends on your organization.
Deploying API requester and API provider artifacts requires making the outputs of the build steps available to the runtimes.
REST APIs
zosConnect-2.0 Applies to zosConnect-2.0.
The z/OS Connect administration interface is a set of REST interfaces for managing .sar, .aar, and .ara artifacts.
For more information about deploying an API by using the REST API administration interface, see Deploying an API.
For more information about updating an API by using the REST API administration interface, see Update an API.
For more information about deploying a service by using the REST API administration interface, see Deploy a service.
For more information about deploying an API requester by using the REST API administration interface, see How to deploy an API requester by using the administration interface.
Deploying on z/OS by copying files
Started task Applies to z/OS Connect Servers run by using a z/OS started task procedure.
- Copy the files.
- Refresh the server.
The following information provides more details about how-to copy the files and how-to refresh the z/OS Connect Server.
- Copy the files
-
- zosConnect-2.0 .aar's, .sar's, and .ara's
- zosConnect-2.0 Applies to zosConnect-2.0.
- zosConnect-3.0 API providers and API requesters
- zosConnect-3.0 Applies to zosConnect-3.0.
- Examples - How to copy the files
-
- Ansible
- Ansible task to copy a WAR
file.
For more information, see ansible.builtin.copy module – Copy files to remote locations- name: Copy API to server ansible.builtin.copy: src: api.war dest: {{ zosconnect_server }}/apps/api.war mode: '0755'
- Refresh the z/OS Connect Server
- When you are ready to deploy your z/OS Connect artifacts, use the MVS system MODIFY command to refresh the z/OS Connect Server API and API requester WAR files and configuration files. For more information, depending on which feature you are using, see
Deploying in containers
zosConnect-3.0 Applies to zosConnect-3.0.
Containers Applies to z/OS Connect container deployments.
To deploy z/OS Connect API images to OCI-compliant container platforms, the container image is built by using the z/OS Connect Server image and your z/OS Connect API project. For more information, see Building container images.
When the z/OS Connect API image is built, push the image to your company's image registry to update the image. This image can then be used by the IBM z/OS Connect Operator and deployed into a Kubernetes cluster. The environment variables that are required for a specific environment are configured by using ConfigMaps and Secrets that are defined in the Operator.
For more information on configuring the IBM z/OS Connect Operator and the environment variables in a Red Hat® OpenShift® container platform, see Install the IBM z/OS Connect Operator and Configure environment variables (Optional).
For more information on deploying a z/OS Connect API image by using Podman, Run the z/OS Connect API container.
For more information on deploying in an airgapped (disconnected) environment, Install the z/OS Connect Catalog in Red Hat OpenShift with bastion host.
- If you have changed an API image that is referenced by a deployment running in production, the
cluster administrator must perform the following command to manually restart each pod in the
deployment and distribute the
changes.
oc rollout restart deployment <deployment-name> - If you have published a new version of an API image, for example with a new image tag, and would like to update an existing deployment that references an old version, you can update the zosconnect_v1_zosconnect.yaml Custom Resource Definition with the new API image and apply it to the cluster. The IBM z/OS Connect Operator will automatically restart each pod in the deployment and distribute the changes.