Static IP Address of Openshift Application

How to find the static IP address of my non-scalable application (free tier). I need this for the my dns A (HOST) data entry command. Lx window command

+3
source share
1 answer

If you are trying to set a custom URL name for your OpenShift application , I suggest editing the entry CNAMEinstead of hard-coding the entry A.

  • Edit your domain’s CNAME record to indicate <app>-<namespace>.rhcloud.com
  • Run the command rhc alias add <app> <domain>(OpenShift creates a new VHost for your domain)
  • Wait for the DNS to propagate ( how long will it take )

URL PaaS ( cnames) .


IP- , OPENSHIFT_<cartridge>_IP:

rhc ssh <app> 'echo $OPENSHIFT_PHP_IP'

. , OpenShift.

+4

All Articles