Red Hat Jboss Data Grid 7.2 Data Grid for Openshift
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat JBoss Data Grid 7.2 Data Grid for OpenShift Developing and deploying Red Hat JBoss Data Grid for OpenShift Last Updated: 2019-06-10 Red Hat JBoss Data Grid 7.2 Data Grid for OpenShift Developing and deploying Red Hat JBoss Data Grid for OpenShift 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 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 Develop, test, and deploy JBoss Data Grid on Red Hat OpenShift. Table of Contents Table of Contents .C . H. .A . P. .T .E . R. 1.. .I .N . T. .R .O . .D . U. .C . T. .I O. N. .4 . 1.1. THE JBOSS DATA GRID FOR OPENSHIFT IMAGE 4 1.2. JBOSS DATA GRID DOCUMENTATION 4 1.3. VERSION INFORMATION 4 .C . H. .A . P. .T .E . R. 2. A. .U . T. .H . E. .N . T. .I C. .A . T. .I N. .G . W. I.T . H. T. .H . E. .R . E. .D . .H . A. .T . .C . O. .N . .T .A . I. N. .E . R. .C . .A .T . A. .L . O. .G . 6. 2.1. SETTING UP AUTHENTICATION WITH SERVICE ACCOUNT TOKENS 6 2.1.1. Adding Tokens to Pull Secrets 6 .C . H. .A . P. .T .E . R. 3. G. E. .T .T . I.N . .G . .S . T. A. .R . T. .E . D. W. I.T . H. R. .E .D . H . .A . T. .J . B. .O . S. .S . .D . A. .T . A. G. .R . I.D . .F . O. .R . .O . .P . E. N. .S . H. .I .F .T . 8. 3.1. IMPORTING JBOSS DATA GRID FOR OPENSHIFT IMAGE TEMPLATES 8 3.1.1. Working with the JBoss Data Grid for OpenShift Image 9 3.1.1.1. Viewing Information about the JBoss Data Grid for OpenShift Image 9 3.1.1.2. Importing the JBoss Data Grid for OpenShift Image 10 3.1.2. Importing OpenShift Secrets 10 3.2. CONFIGURING JBOSS DATA GRID FOR OPENSHIFT DEPLOYMENTS 10 3.2.1. Getting Started with Image Configuration 10 3.2.2. Setting Parameters on the Command Line 11 3.2.2.1. Instantiating the Template 12 3.2.2.2. Listing Environment Variables 12 3.2.2.3. Changing Environment Variables 13 3.2.3. Modifying JBoss Data Grid for OpenShift Image Templates 13 3.2.3.1. Exporting the Template 13 3.2.3.2. Modifying the Template 14 3.2.3.3. Importing and Instantiating the Modified Template 15 3.3. INVOKING CACHE OPERATIONS THROUGH THE REST ENDPOINT 15 3.3.1. Creating a Project and Instantiate a Template 15 3.3.2. Examining Deployed Services 16 3.3.3. Invoking a Get Operation on the Cache 16 3.3.4. Inserting and Retrieving an Entry in the Cache 17 3.3.5. Deleting the Entry from the Cache 17 .C . H. .A . P. .T .E . R. 4. .C . O. .N . F. .I G. U. .R . I.N . G. .C . L. U. .S . T. .E . R. I. N. .G . 1.8 . 4.1. CONFIGURING THE KUBERNETES DISCOVERY MECHANISM 18 4.2. CONFIGURING THE DNS DISCOVERY MECHANISM 19 .C . H. .A . P. .T .E . R. 5. S. .E . C. .U . R. .I N. .G . N. .E . T. W. O. R. .K . .T .R . A. .F . F. .I C. .2 . 0. 5.1. ENCRYPTING CLIENT TO SERVER COMMUNICATION 20 5.2. ENCRYPTING TRAFFIC BETWEEN CLUSTERED SERVERS 21 5.2.1. Setting Up Symmetric Encryption 21 5.2.2. Setting Up Asymmetric Encryption 22 .C . H. .A . P. .T .E . R. 6. .C . O. .N . F. .I G. U. .R . I.N . G. P. .E . R. .S . I.S . T. E. .N . T. D. .A . T. .A . S. O. U. .R . C. .E . S. .2 . 3. 6.1. CONFIGURING INTERNAL DATASOURCES 23 6.1.1. Single Datasource Example 23 6.1.2. Multiple Datasource Example 24 6.2. CONFIGURING EXTERNAL DATASOURCES 24 .C . H. .A . P. .T .E . R. 7. M. A. .N . A. .G . .I N. .G . R. E. .D . .H . .A .T . .J . B. .O . S. .S . .D . A. .T .A . G . .R . I.D . .F . O. .R . .O . P. .E . N. .S . H. .I F. .T . .2 . 6. .C . H. .A . P. .T .E . R. 8. .B . U. .I L. D. I.N . G. R. .E . D. H. .A . T. J. .B . O. .S . S. D . .A . T. A. G. R. .I D. F. .O . R. O. .P . E. .N . S. .H . I.F . T. I.M . .A . G. .E . S. .2 . 7. 8.1. USING THE JBOSS DATA GRID FOR OPENSHIFT IMAGE SOURCE-TO-IMAGE (S2I) PROCESS 27 8.2. USING A MODIFIED JBOSS DATA GRID FOR OPENSHIFT IMAGE 27 1 Red Hat JBoss Data Grid 7.2 Data Grid for OpenShift 8.3. BINARY BUILDS 28 .C . H. .A . P. .T .E . R. 9. .D . E. P. .L . O. .Y . I. N. .G . .J . B. .O . S. .S . .D . A. .T . A. G. .R . I.D . .F . O. .R . .O . .P .E . N. .S . H. .I .F .T . .W . .I T. .H . .C . U. .S . T. .O . M. .C . O. .N . .F .I G. U. .R . A. .T .I .O . N. F. .I L. .E . S. .2 . 9. 9.1. SETTING UP THE CONFIGURATION FILES AND CUSTOM TEMPLATE 29 9.2. CREATING DEPLOYMENTS WITH CUSTOM CONFIGURATION 30 .C . H. .A . P. .T .E . R. 1.0 . .. U. .P . G. R. .A .D . .I N. .G . R . E. .D . .H . A. .T . .J . B. .O . S. .S . .D . A. .T .A . .G . .R . I.D . .F . O. .R . .O . P. .E . N. .S . H. .I F. .T . .B . E. T. .W . .E . E. .N . .R . E. L. .E . A. .S .E . S. .3 . 2. CHAPTER 11. DEPLOYING AN EAP INFINISPAN APPLICATION WITH THE JBOSS DATA GRID FOR .O . P. .E . N. .S . H. .I F. .T . I.M . .A . G. E. .3 . 3. ..