Menu Close

Data Grid Operator Quickstart

Red Hat Data Grid 7.3

Data Grid Documentation

Red Hat Customer Content Services


Store and retrieve data on Data Grid clusters with the Data Grid Operator.

The Data Grid Operator provides operational intelligence and reduces management complexity for deploying Data Grid clusters on OpenShift.

Authors: Galder Zamarreño
Technologies: Data Grid, Operator, Kubernetes, OKD, Red Hat OpenShift

1. Storing and Retrieving Data on Data Grid Clusters



  1. Expose the Data Grid service for external access.

    $ oc expose svc example-rhdg
  2. Create local variables for the public route and credentials.

    1. Export the host for the public route to a local variable.

      $ export DATAGRID_HOST=$(oc get route example-rhdg -o jsonpath="{}")
    2. Export the generated password from the secret to a local variable.

      $ export PASS=$(oc get secret example-rhdg-app-generated-secret -o jsonpath="{.data.password}" | base64 --decode)
  3. Store some data through the HTTP endpoint.

    $ curl -v \
        -X POST \
        -u developer:${PASS} \
        -H 'Content-type: text/plain' \
        -d 'test-value' \
    < HTTP/1.1 200 OK
  4. Retrieve the data from the Data Grid cluster.

    $ curl -v \
        -u developer:${PASS} \
    < HTTP/1.1 200 OK

Legal Notice

Copyright © 2019 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.