6.3. Hot Rod の外部ルートの作成
OpenShift の外部で実行されている Hot Rod クライアントは、passthrough 中断が含まれるルートを使用して Data Grid Pod にアクセスします。
前提条件
- クライアント接続を暗号化するように Data Grid Server を設定します。
手順
passthrough中断を含めてルートを作成します。oc create route passthrough ${ROUTE_NAME} \ --port=hotrod \ --service ${APPLICATION_NAME}$ oc create route passthrough ${ROUTE_NAME} \ --port=hotrod \ --service ${APPLICATION_NAME}Copy to Clipboard Copied! Toggle word wrap Toggle overflow 以下に例を示します。
oc create route passthrough cache-service-hotrod-route \ --port=hotrod \ --service cache-service
$ oc create route passthrough cache-service-hotrod-route \ --port=hotrod \ --service cache-serviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow .spec.hostから Hot Rod ルートホスト名を取得します。oc get route cache-service-hotrod-route -o jsonpath="{.spec.host}" cache-service-hotrod-route-rhdg-helloworld.192.0.2.0.nip.io$ oc get route cache-service-hotrod-route -o jsonpath="{.spec.host}" cache-service-hotrod-route-rhdg-helloworld.192.0.2.0.nip.ioCopy to Clipboard Copied! Toggle word wrap Toggle overflow