

Repeat the steps above, creating the secrets in Red Hat OpenShift, but this time, point to site-2. monitor oc create secret -n rhdg-xsite generic -from-file=identities.yaml dg-identities-secret We can use the file structure below as an example: Now let's create a secret with identities that will be used to authenticate users who will access the Data Grid. Oc -n rhdg-xsite create secret generic xsite-truststore "-from-file=truststore.p12=$(pwd)/ca-keystore.p12" "-from-literal=password=caSecret"

Run the commands below to create the secrets using the previously generated keys, using the correct project (-n rhdg-xsite in our example) and the correct files ( dg-keystore.p12 and ca-keystore.p12): oc -n rhdg-xsite create secret generic xsite-keystore "-from-file=keystore.p12=$(pwd)/dg-keystore.p12" "-from-literal=password=secret" "-from-literal=type=pkcs12"

Data Grid uses these artifacts for communication between clients and distributed clusters. Generate certificates and Identitiesįirst, we need to generate some identities files, certificates, and a key pair. However, there is a vast collection of documents and articles about OpenShift and Data Grid available at .Ĭreate a new project: name _rhdg-xsite_ (Figure 1).įigure 1: Creating the OpenShift project. In this learning path created by Marcelo Daniel Sales, we will not go into detail about each of the tools used. In each OpenShift cluster, we will use the facilities provided by the Operators to deploy and configure Data Grid and cache instances. We will work with two independent OpenShift clusters, site-1 and site-2. NET Core 7, and Golang) share data with each other through the Red Hat Data Grid and are distributed in two different Red Hat OpenShift clusters, thus demonstrating the power of the functionality cross-site replication offered by Data Grid. In this learning path, we will demonstrate how an application developed in three different technologies (Quarkus. This task becomes even more complex when different technologies are involved, and even more so when we are dealing with applications distributed in different clusters. One of the biggest problems in distributed applications is data replication.
