eveuf.blogg.se

Redhat linux command cheat sheet
Redhat linux command cheat sheet












redhat linux command cheat sheet

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"

redhat linux command cheat sheet

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"

  • Select Display token and copy the line that starts with " oc login -token=sha256".
  • Log into site-1 and copy the authentication token by clicking on the username in the upper-right corner and selecting Copy login command.
  • Let's use the OpenShift Client to create the secrets. After generating the certificates, we will create secrets on both sites using these same certificates which will be used later by Data Grid. Save the above content in a generate_certs.sh file and then run it to generate the certificates. For this demo, we generated certificates using the following script: #!/bin/bashĬA_KEYSTORE="$ -storetype pkcs12

    redhat linux command cheat sheet

    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.














    Redhat linux command cheat sheet