이 콘텐츠는 선택한 언어로 제공되지 않습니다.
4.2. TCP Endpoint Example
This section provides an example
Endpoints
entry in a $cartridge_name/metadata/manifest.yml
file, and demonstrates how OpenShift Enterprise uses this entry to create environment variables, public proxy port mappings, and httpd
routes.
Example 4.3. Endpoints Entry
Environment Variables
Several environment variables are created for the cartridge using the information in the Endpoints
entry.
Example 4.4. Environment Variables
Proxy Port Mapping
Proxy port mapping is assigned using the information in the Endpoints
entry.
Example 4.5. Proxy Port Mapping
<assigned external IP>:<assigned public port 1> => OPENSHIFT_CUSTOMCART_HTTP_IP:OPENSHIFT_CUSTOMCART_WEB_PORT <assigned external IP>:<assigned public port 2> => OPENSHIFT_CUSTOMCART_HTTP_IP:OPENSHIFT_CUSTOMCART_ADMIN_PORT
<assigned external IP>:<assigned public port 1> => OPENSHIFT_CUSTOMCART_HTTP_IP:OPENSHIFT_CUSTOMCART_WEB_PORT
<assigned external IP>:<assigned public port 2> => OPENSHIFT_CUSTOMCART_HTTP_IP:OPENSHIFT_CUSTOMCART_ADMIN_PORT
httpd Routing
The httpd
routes are assigned using the Endpoints
entry.
Example 4.6. httpd Routing
http://<app dns>/web_front => http://OPENSHIFT_CUSTOMCART_HTTP_IP:8080/web_back http://<app dns>/socket_front => http://OPENSHIFT_CUSTOMCART_HTTP_IP:8080/socket_back http://<app dns>/admin_front => http://OPENSHIFT_CUSTOMCART_HTTP_IP:9000/admin_back
http://<app dns>/web_front => http://OPENSHIFT_CUSTOMCART_HTTP_IP:8080/web_back
http://<app dns>/socket_front => http://OPENSHIFT_CUSTOMCART_HTTP_IP:8080/socket_back
http://<app dns>/admin_front => http://OPENSHIFT_CUSTOMCART_HTTP_IP:9000/admin_back