Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 3. Installing the proxy operator
This section provides instructions for installing the Streams for Apache Kafka Proxy Operator. Install the proxy operator using one of the following methods:
- By applying the proxy installation files
- From the OperatorHub in the OpenShift web console (Openshift Clusters only)
Installation options and procedures are demonstrated using the example files included with Streams for Apache Kafka Proxy.
3.1. Install prerequisites Copier lienLien copié sur presse-papiers!
To install Streams for Apache Kafka Proxy, you will need the following:
- An OpenShift 4.18 or later cluster.
-
The
occommand-line tool is installed and configured to connect to the running cluster.
3.2. Streams for Apache Kafka Proxy release artifacts Copier lienLien copié sur presse-papiers!
To deploy Streams for Apache Kafka Proxy using YAML files, download the latest release archive (streams-3.0-ocp-install-examples.zip - Streams for Apache Kafka 3.0 Installation and Example files) from the Streams for Apache Kafka software downloads page.
The release archive contains sample YAML files for deploying Streams for Apache Kafka components to OpenShift using oc.
The proxy artifacts include installation and example files:
- Installation files
-
The
installdirectory contains the YAML manifests to install the proxy operator. - Example files
-
The
examplesdirectory contains example custom resources, which can be used to deploy a proxy once the operator has been installed.
3.3. Installing the operator using installation files Copier lienLien copié sur presse-papiers!
This procedure shows how to install the Streams for Apache Kafka Proxy Operator in your OpenShift cluster.
Prerequisites
-
You need an account with permission to create and manage
CustomResourceDefinitionand RBAC (ClusterRole) resources. - You have downloaded the release artifacts and extracted the contents into the current directory.
Procedure
Edit the Streams for Apache Kafka Proxy installation files to use the namespace the operator is going to be installed into.
For example, in this procedure the operator is installed into the namespace
my-kroxylicious-operator-namespace.On Linux, use:
sed -i 's/namespace: .*/namespace: my-kroxylicious-operator-namespace/' install/*.yamlOn MacOS, use:
sed -i '' 's/namespace: .*/namespace: my-kroxylicious-operator-namespace/' install/*.yamlDeploy the Streams for Apache Kafka Proxy operator:
oc create -f installCheck the status of the deployment:
oc get deployments -n my-kroxylicious-operator-namespaceOutput shows the deployment name and readiness
NAME READY UP-TO-DATE AVAILABLE kroxylicious-operator 1/1 1 1READYshows the number of replicas that are ready/expected. The deployment is successful when theAVAILABLEoutput shows1.
3.4. Installing the operator from the OperatorHub Copier lienLien copié sur presse-papiers!
This procedure describes how to install and subscribe to the Streams for Apache Kafka Proxy operator using the OperatorHub in the OpenShift Container Platform web console.
The procedure describes how to create a project and install the operator to that project. A project is a representation of a namespace. For manageability, it is a good practice to use namespaces to separate functions.
Make sure you use the appropriate update channel. If you are on a supported version of OpenShift, installing the operator from the default alpha channel is generally safe. However, we do not recommend enabling automatic updates on the alpha channel. An automatic upgrade will skip any necessary steps prior to upgrade. Use automatic upgrades only on version-specific channels.
Prerequisites
Procedure
Navigate in the OpenShift web console to the Home > Projects page and create a project (namespace) for the installation.
We use a project named
streams-kafka-proxyin this example.- Navigate to the Operators > OperatorHub page.
Scroll or type a keyword into the Filter by keyword box to find the Streams for Apache Kafka Proxy operator.
The operator is located in the Other category.
- Click Streams for Apache Kafka Proxy to display the operator information.
- Read the information about the operator and click Install.
On the Install Operator page, choose from the following installation and update options:
Update Channel: Choose the update channel for the operator.
- The (default) alpha channel contains all the latest updates and releases, including major, minor, and micro releases, which are assumed to be well tested and stable.
- An amq-streams-X.x channel contains the minor and micro release updates for a major release, where X is the major release version number.
- An amq-streams-X.Y.x channel contains the micro release updates for a minor release, where X is the major release version number and Y is the minor release version number.
Installation Mode: Install the operator to all namespaces in the OpenShift cluster.
A single instance of the operator will watch and manage proxies created throughout the OpenShift cluster.
- Update approval: By default, the Streams for Apache Kafka Proxy operator is automatically upgraded to the latest proxy version by the Operator Lifecycle Manager (OLM). Optionally, select Manual if you want to manually approve future upgrades. For more information on operators, see the OpenShift documentation.
- Click Install to install the operator to your selected namespace.
After the operator is ready for use, navigate to Operators > Installed Operators to verify that the operator has installed to the selected namespace.
The status will show as Succeeded.
- Use the proxy operator to deploy a proxy.