Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 1. Apicurio Registry Operator quickstart
You can quickly install the Apicurio Registry Operator on the command line by using Custom Resource Definitions (CRDs).
The quickstart example deploys your Apicurio Registry instance with storage in an SQL database:
The recommended installation option for production environments is the OpenShift OperatorHub. The recommended storage option is an SQL database for performance, stability, and data management.
1.1. Quickstart Apicurio Registry Operator installation Link kopierenLink in die Zwischenablage kopiert!
You can quickly install and deploy the Apicurio Registry Operator on the command line, without the Operator Lifecycle Manager, by using a downloaded set of installation files and example CRDs.
Prerequisites
- You are logged in to an OpenShift cluster with administrator access.
-
You have the OpenShift
occommand-line client installed. For more details, see the OpenShift CLI documentation.
Procedure
-
Browse to Red Hat Software Downloads, select the product version, and download the examples in the Apicurio Registry CRDs
.zipfile. -
Extract the downloaded CRDs
.zipfile and change to theapicurio-registry-install-examplesdirectory. Create an OpenShift project for the Apicurio Registry Operator installation, for example:
export NAMESPACE="apicurio-registry" oc new-project "$NAMESPACE"
export NAMESPACE="apicurio-registry" oc new-project "$NAMESPACE"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the following command to apply the example CRD in the
install/install.yamlfile:cat install/install.yaml | sed "s/apicurio-registry-operator-namespace/$NAMESPACE/g" | oc apply -f -
cat install/install.yaml | sed "s/apicurio-registry-operator-namespace/$NAMESPACE/g" | oc apply -f -Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter
oc get deploymentto check the readiness of the Apicurio Registry Operator. For example, the output should be as follows:NAME READY UP-TO-DATE AVAILABLE AGE apicurio-registry-operator 1/1 1 1 XmYs
NAME READY UP-TO-DATE AVAILABLE AGE apicurio-registry-operator 1/1 1 1 XmYsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
1.2. Quickstart Apicurio Registry instance deployment Link kopierenLink in die Zwischenablage kopiert!
To create your Apicurio Registry instance deployment, use the SQL database storage option to connect to an existing PostgreSQL database.
Prerequisites
- Ensure that the Apicurio Registry Operator is installed.
- You have a PostgreSQL database that is reachable from your OpenShift cluster.
Procedure
Open the
examples/apicurioregistry_sql_cr.yamlfile in an editor and view theApicurioRegistrycustom resource (CR):Example CR for SQL storage
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the
dataSourcesection, replace the example settings with your database connection details. For example:dataSource: url: "jdbc:postgresql://postgresql.apicurio-registry.svc:5432/registry" userName: "pgadmin" password: "pgpass"dataSource: url: "jdbc:postgresql://postgresql.apicurio-registry.svc:5432/registry" userName: "pgadmin" password: "pgpass"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enter the following commands to apply the updated
ApicurioRegistryCR in the namespace with the Apicurio Registry Operator, and wait for the Apicurio Registry instance to deploy:oc project "$NAMESPACE" oc apply -f ./examples/apicurioregistry_sql_cr.yaml
oc project "$NAMESPACE" oc apply -f ./examples/apicurioregistry_sql_cr.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter
oc get deploymentto check the readiness of the Apicurio Registry instance. For example, the output should be as follows:NAME READY UP-TO-DATE AVAILABLE AGE example-apicurioregistry-sql-deployment 1/1 1 1 XmYs
NAME READY UP-TO-DATE AVAILABLE AGE example-apicurioregistry-sql-deployment 1/1 1 1 XmYsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter
oc get routesto get theHOST/PORTURL to launch the Apicurio Registry web console in your browser. For example:example-apicurioregistry-sql.apicurio-registry.router-default.apps.mycluster.myorg.mycompany.com
example-apicurioregistry-sql.apicurio-registry.router-default.apps.mycluster.myorg.mycompany.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow