Este contenido no está disponible en el idioma seleccionado.

Data Grid Operator Quickstart


Red Hat Data Grid 7.3

Data Grid Documentation

Red Hat Customer Content Services

Abstract

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

Prerequisites

Procedure

  1. Expose the Data Grid service for external access.

    $ oc expose svc example-rhdg
    Copy to Clipboard Toggle word wrap
  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="{.spec.host}")
      Copy to Clipboard Toggle word wrap
    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)
      Copy to Clipboard Toggle word wrap
  3. Store some data through the HTTP endpoint.

    $ curl -v \
        -X POST \
        -u developer:${PASS} \
        -H 'Content-type: text/plain' \
        -d 'test-value' \
        ${DATAGRID_HOST}/rest/default/test-key
    ...
    < HTTP/1.1 200 OK
    Copy to Clipboard Toggle word wrap
  4. Retrieve the data from the Data Grid cluster.

    $ curl -v \
        -u developer:${PASS} \
        ${DATAGRID_HOST}/rest/default/test-key
    ...
    < HTTP/1.1 200 OK
    ...
    test-value
    Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat