Skip to content

Latest commit

 

History

History

07-datagrid

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Deploy Red Hat DataGrid

To deploy Red Hat DataGrid execute:

oc apply -f secrets/
oc apply -f eda-infinispan.yaml

Secrets contain a set of credentials of the following users:

  • developer: User to allow put and get data from the different caches
  • operator: User to allow the DataGrid operator manages the lifecycle of caches

To check the current status of the DataGrid:

❯ oc get infinispan eda-infinispan -o yaml
# ...
status:
  conditions:
  - status: "True"
    type: PreliminaryChecksPassed
  - message: 'View: eda-infinispan-0-6324,eda-infinispan-1-13135,eda-infinispan-2-45969'
    status: "True"
    type: WellFormed
  consoleUrl: http://eda-infinispan-external-eda-workshop.apps.sandbox.opentlc.com/console
  podStatus:
    ready:
    - eda-infinispan-1
    - eda-infinispan-2
    - eda-infinispan-3
  statefulSetName: eda-infinispan

A set of new pods will be deployed:

❯ oc get pod | grep infinispan
NAME                                               READY   STATUS    RESTARTS   AGE
eda-infinispan-0                                   1/1     Running      0              10m
eda-infinispan-1                                   1/1     Running      0              9m26s
eda-infinispan-2                                   1/1     Running      0              8m44s
eda-infinispan-config-listener-85b985c588-86szv    1/1     Running      0              8m2s

To get the route to access DataGrid Administration Console:

oc get route eda-infinispan-external -o jsonpath='{.spec.host}'

Deploying Data Caches

This architecture requires a set of Data Caches to store some important information.

To deploy Data Caches:

oc apply -f caches/

We could test and verify the Caches:

❯ oc get cache
NAME                               AGE
eda-infinispan-aggregate-metrics   3h47m
eda-infinispan-alerts              3h47m
eda-infinispan-clients             3h47m
eda-infinispan-regions             3h47m

To get the current status of a Data Cache:

❯ oc get cache eda-infinispan-clients -o yaml
apiVersion: infinispan.org/v2alpha1
kind: Cache
metadata:
  name: eda-infinispan-clients
# ...
spec:
  # ...
  clusterName: eda-infinispan
  name: clients
status:
  conditions:
  - status: "True"
    type: Ready
  serviceName: eda-infinispan