Red Hat Data Grid for Openshift
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat Data Grid 7.3 Red Hat Data Grid for OpenShift Run Data Grid on OpenShift Last Updated: 2021-07-06 Red Hat Data Grid 7.3 Red Hat Data Grid for OpenShift Run Data Grid on OpenShift Legal Notice Copyright © 2021 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 http://creativecommons.org/licenses/by-sa/3.0/ . 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. Abstract Learn how to configure, customize, and run Red Hat Data Grid containers on Red Hat OpenShift. Table of Contents Table of Contents .C . H. .A . P. .T .E . R. 1.. .R . E. .D . .H . A. .T . .D . A. .T . A. G. .R . I.D . .4 . 1.1. DATA GRID DOCUMENTATION 4 1.2. DATA GRID REPOSITORIES 4 1.3. DATA GRID IMAGE DETAILS 4 .C . H. .A . P. .T .E . R. 2. G. E. T. .T . I.N . G. .S .T . A. .R . T. .E .D . 5. 2.1. SYSTEM REQUIREMENTS 5 2.2. CREATING A DATA GRID FOR OPENSHIFT PROJECT 5 2.3. SETTING UP REGISTRY AUTHENTICATION 5 2.3.1. Configuring Hosts with Authentication Tokens 5 2.3.2. Creating Pull Secrets 6 .C . H. .A . P. .T .E . R. 3. S. .E . T. .T .I .N . G. U. .P . .D . A. .T . A. G. .R . I.D . F . O. R. O . .P . E. .N . S. .H . I.F . T. .S . E. .R . V. .I C. .E . S. 7. 3.1. DATA GRID FOR OPENSHIFT SERVICES 7 3.1.1. Container Storage 7 3.1.2. Partition Handling 7 3.1.3. Confirming Service Availability 8 3.1.3.1. Importing Templates 8 3.2. CREATING CACHE SERVICES 8 3.3. CREATING DATA GRID SERVICES 10 .C . H. .A . P. .T .E . R. 4. .I N. .V . O. K. I. N. .G . .T . H. .E . .D . A. .T . A. G. .R . I.D . .R . E. .S .T . .A . P. .I . 1. 3. 4.1. CREATING EXTERNAL ROUTES TO THE REST API 13 4.2. MAKING REST CALLS 13 4.2.1. Using the OpenShift CA to Make REST Calls 14 .C . H. .A . P. .T .E . R. 5. C. .O . .N . F. .I G. .U . .R .I .N . G. H. .O . .T . .R .O . .D . .C . L. .I E. .N . T. .S . 1. 5. 5.1. CONFIGURING TRUSTSTORES WITH HOT ROD 15 5.2. CLIENT INTELLIGENCE 15 5.3. CREATING EXTERNAL ROUTES FOR HOT ROD 16 5.4. HOSTNAMES FOR DATA GRID SERVICES 16 5.5. CONFIGURING HOT ROD CLIENTS PROGRAMMATICALLY 17 5.5.1. Hot Rod Configuration Builder On OpenShift 17 5.5.2. Hot Rod Configuration Builder Outside OpenShift 17 5.6. SETTING HOT ROD CLIENT PROPERTIES 18 5.6.1. Hot Rod Configuration Properties On OpenShift 18 5.6.2. Hot Rod Configuration Properties Outside OpenShift 18 .C . H. .A . P. .T .E . R. 6. .R .E . M. O. .T . E. .L . Y. C . .R .E . A. .T . I.N . G. .C . A. .C . H. .E . S. .2 . 0. .C . H. .A . P. .T .E . R. 7. D. E. F. .I N. .I .N . G. F. .I L. .E .- .B . A. .S . E. .D . .C . A. .C . H. .E . .S . T. O. R. .E .S . 2. 2. .C . H. .A . P. .T .E . R. 8. .U . S. I. N. .G . .D . A. .T . A. G. .R . I.D . D. .E .P . L. .O . Y. .M . .E . N. .T . .C . O. .N . .F .I .G . U. .R . A. .T . I.O . N. T. .E . M. P. .L .A . T. .E . S. .2 . 4. 8.1. DATA GRID DEPLOYMENT CONFIGURATION TEMPLATES 24 8.2. IMPORTING DEPLOYMENT CONFIGURATION TEMPLATES 24 8.3. IMPORTING OPENSHIFT SECRETS 25 8.4. DEPLOYING DATA GRID FOR OPENSHIFT 26 8.5. CONFIGURING DATA GRID FOR OPENSHIFT 26 .C . H. .A . P. .T .E . R. 9. .S .E . T. .T .I .N . G. U. .P . .M . .O . .N . I.T . O. .R . I.N . G. .2 . 7. 9.1. DEPLOYING THE PROMETHEUS OPERATOR 27 9.2. EXPOSING DATA GRID METRICS TO PROMETHEUS 27 9.3. ENABLING PROMETHEUS TO MONITOR DATA GRID 28 1 Red Hat Data Grid 7.3 Red Hat Data Grid for OpenShift .C . H. .A . P. .T .E . R. 1.0 . .. C. .O . .N . F. .I G. .U . R. .I N. G. A. .U . T. .H . E. .N . T. .I C. .A . T. .I O. .N . A. .N . D. E. .N . C. .R . Y. .P . T. I. O. .N . .2 . 9. 10.1. ADDING KEYSTORES TO SECRETS 29 10.2. CONFIGURING DEPLOYMENTS 29 10.3. SETTING UNIQUE KEYSTORES FOR THE HOT ROD PROTOCOL 30 .C . H. .A . P. .T .E . R. 1.1 .. .C . O. .N . .F .I G. U. .R . I.N . G. .D . A. .T .A . G . .R . I.D . .F . O. .R . .O . .P .E . N. .S . H. .I F. .T . .C . L. .U . S. T. .E . R. .S . 3. .1 . ..