Installation with Helm
IBM DataPower Operator can be installed using helm.
Prerequisites
Platform
IBM DataPower Operator currently supports installation via Helm on both Kubernetes and OpenShift Container Platform (OCP), see Prerequisites for supported versions.
Note: While it is supported to use Helm to install on OCP, the preferred installation method for OCP is OLM.
Coexistence
When installing via Helm, the values.yaml in the DataPower Operator Helm Chart offers an operator.installMode configuration in which you can choose between the following modes:
OwnNamespaceSingleNamespaceMultiNamespaceAllNamespaces
See the README.md in the Helm chart directory (same directory as values.yaml) for details on this configuration.
The following rules apply:
- If installing more than one instance of DataPower Operator on the same cluster (e.g., two
OwnNamespaceinstalls in different namespaces), all installs MUST be at the exact same version. - It is unsupported for two Operator installs to overlap their watched namespace(s).
As a best-practice:
- If you wish to manage DataPower operands across several namespaces, use a single
AllNamespacesinstall. - If you wish to isolate the DataPower Operator and Operands to a single namespace, use a single
OwnNamespaceinstall, and create your Operands in the same namespace as the Operator.
Chart
The IBM DataPower Operator Helm Chart is hosted on GitHub:
https://github.com/IBM/datapower-operator-chart
Downloading a release
The preferred method for acquiring the chart is to download the desired version from releases.
Documentation
Refer to the chart's README.md for details on the available configuration options in values.yaml that control the Operator's installation.
Install
This process assumes a fresh install is being performed, and that DataPower Operator is not already installed on the target cluster.
-
Download the desired release source code ZIP or tarball. The file will be named similar to one of the following, where
X.Y.Zcorresponds to the version you chose:datapower-operator-chart-X.Y.Z.zipdatapower-operator-chart-X.Y.Z.tar.gz
-
Unpack the chart archive using your preferred tooling (e.g.,
unzip,tar, or some alternative). This should yield a directory nameddatapower-operator-chart-X.Y.Z(whereX.Y.Zcorrespond to the version you chose in step 1). -
In the terminal of your choice,
cdinto the chart directory (example shown below). This directory should contain theChart.yamlandvalues.yamlfiles, as well as other files and directories.cd datapower-operator-chart-X.Y.Z/charts/stable/datapower-operator -
Customize the
values.yamlas desired. Review theREADME.mdin this directory for available configuration options. -
Check if your cluster has any DataPower Operator CustomResourceDefinitions (CRDs) installed already.
kubectl get crd | grep 'datapower.ibm.com'If any exist, continue with step 6; otherwise, proceed to step 7.
-
Manually apply the CRDs from the Helm chart to update them in the cluster.
for crd in crds/*; do kubectl apply -f $crd; done -
Install the DataPower Operator using
helm install.helm install datapower-operator .Here
datapower-operatoris the Helm release name. You can customize this if you wish; note that this is the name you'll use in the future when performing an upgrade. -
Validate the install via
helm list.