Important: Do not install this operator directly. Only install this operator using the IBM Common Services Operator. For more information about installing this operator and other Common Services operators, see Installer documentation. If you are using this operator as part of an IBM Cloud Pak, see the documentation for that IBM Cloud Pak to learn more about how to install and use the operator service. For more information about IBM Cloud Paks, see IBM Cloud Paks that use Common Services.
The IBM Crossplane Operator installs an IBM modified version of Crossplane, an open source Kubernetes add-on that extends any cluster with the ability to provision and manage cloud infrastructure, services, and applications using kubectl, GitOps, or any tool that works with the Kubernetes API.
For more information about the available IBM Cloud Platform Common Services, see the IBM Knowledge Center.
Red Hat OpenShift Container Platform 4.3 or newer installed on one of the following platforms:
- Linux x86_64
- 1.0.0
Before you install this operator, you need to first install the operator dependencies and prerequisites:
-
For the list of operator dependencies, see the IBM Knowledge Center Common Services dependencies documentation.
-
For the list of prerequisites for installing the operator, see the IBM Knowledge Center Preparing to install services documentation.
See IBM Crossplane Chart README
To install the operator with the IBM Common Services Operator follow the the installation and configuration instructions within the IBM Knowledge Center.
- If you are using the operator as part of an IBM Cloud Pak, see the documentation for that IBM Cloud Pak. For a list of IBM Cloud Paks, see IBM Cloud Paks that use Common Services.
- If you are using the operator with an IBM Containerized Software, see the IBM Cloud Platform Common Services Knowledge Center Installer documentation.
The Platform API service requires running with the OpenShift Container Platform 4.x default restricted Security Context Constraints (SCCs).
To use a custom SCC
- Create and customize the following
ibm-crossplane-scc
SCC
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
annotations:
kubernetes.io/description: "This policy is the most restrictive for ibm-crossplane,
requiring pods to run with a non-root UID, and preventing pods from accessing the host.
The UID and GID will be bound by ranges specified at the Namespace level."
cloudpak.ibm.com/version: "1.1.0"
name: ibm-crossplane-scc
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities: null
defaultAddCapabilities: null
fsGroup:
type: MustRunAs
groups:
- system:authenticated
priority: null
readOnlyRootFilesystem: false
requiredDropCapabilities:
- KILL
- MKNOD
- SETUID
- SETGID
runAsUser:
type: MustRunAsRange
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
users: []
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret
- Add the
ibm-crossplane-scc
SCC toibm-crossplane
service account
# oc adm policy add-scc-to-user ibm-crossplane-scc -z ibm-ibm-crossplane-operand
- Restart the ibm-crossplane pods
# oc delete po -l app=ibm-crossplane
- Verify the SCC is applied
# oc describe po -l app=ibm-crossplane | grep scc
For more information about the OpenShift Container Platform Security Context Constraints, see Managing Security Context Constraints.
This operator does not persist any data. There is no backup and recovery procedure needed.
If, as a developer, you are looking to build and test this operator to try out and learn more about the operator and its capabilities, you can use the following developer guide. This guide provides commands for a quick install and initial validation for running the operator.
Important: The following developer guide is provided as-is and only for trial and education purposes. IBM and IBM Support does not provide any support for the usage of the operator with this developer guide. For the official supported install and usage guide for the operator, see the the IBM Knowledge Center documentation for your IBM Cloud Pak or for IBM Cloud Platform Common Services.
Use the following quick start commands for building and testing the operator:
- Build the bundle manifest to verify the CSV and the generated manifests
# make bundle
- Build the operator
# make build-dev
- Install the operator and deploy a sample CR
# make install
- Verify the installation in
ibm-crossplane-system
namespace
# oc -n ibm-crossplane-system get po
NAME READY STATUS RESTARTS AGE
ibm-crossplane-7d6ff947df-pvg5t 1/1 Running 0 25s
ibm-crossplane-operator-6cc44f4c5c-p74lg 1/1 Running 0 73s
- Verify the ibm-crossplane-bedrock-shim configuration package is installed
# oc get pkg
NAME INSTALLED HEALTHY PACKAGE AGE
configuration.pkg.crossplane.io/ibm-crossplane-bedrock-shim-config True True quay.io/opencloudio/ibm-crossplane-bedrock-shim-config:latest 59s
- Build the bundle manifest to verify the CSV and the generated manifests
# make bundle
- Build the operator
# make build
- Build multi-arch images
# make images
- Build the catalog source
# make build-catalog
- Install the operator
# oc project ibm-common-services
# make install-operator
- Verify the operator is running in
ibm-common-services
namespace
# oc -n ibm-common-services get po | grep crossplane
ibm-crossplane-operator-57bff8d56-98752 1/1 Running 0 3m35s
- Install the sample Crossplane CR
# make install-cr
- Verify the Crossplane installation and configuration package.
# oc -n ibm-common-services get po | grep crossplane
ibm-crossplane-5d4bb64b5b-nx8w6 1/1 Running 0 24s
ibm-crossplane-operator-57bff8d56-98752 1/1 Running 0 6m18s
# oc get pkg
NAME INSTALLED HEALTHY PACKAGE AGE
configuration.pkg.crossplane.io/ibm-crossplane-bedrock-shim-config True True quay.io/opencloudio/ibm-crossplane-bedrock-shim-config:latest 59s
Use the following commands to debug the operator:
# oc get csv
# oc describe csv ibm-crossplane-operator.<version>
# oc describe crossplanes ibm-crossplane
# oc get crossplanes ibm-crossplane -o yaml
# oc get configurations
# oc get xrds
# oc get compositions
For example, for Kafka
# oc get kafkacomposites
For example, for Kafka
# oc get kafkaclaims
# oc describe po -l name=ibm-crossplane-operator
# oc logs -f -l name=ibm-crossplane-operator
# oc describe po -l app=ibm-crossplane
# oc logs -f -l app=ibm-crossplane
For more instructions on how to run end-to-end testing with the Operand Deployment Lifecycle Manager, see ODLM guide.