5.3 Validating the OHS Deployment
Validate the Oracle HTTP Server (OHS) container and check you can access OHS using the nodeport.
Validating the OHS Container File System
To validate the OHS container file system:
                     
                  
               - Run the following command to get the name of the OHS
            container:
For example:kubectl get pods -n <namespace>
The output will look similar to the following:kubectl get pods -n ohsnsNAME READY STATUS RESTARTS AGE ohs-domain-d5b648bc5-vkp4s 1/1 Running 0 5m34s - Run the following command to create a bash shell inside the
            container:
For example:kubectl exec -n <namespace> -ti <pod> -- /bin/bash
This will take you to a bash shell inside the container:kubectl exec -n ohsns -ti ohs-domain-79f8f99575-8qwfh -- /bin/bash[oracle@ohs-domain-75fbd9b597-z77d8 oracle]$ - Inside the bash shell navigate to the
              
/u01/oracle/user_projects/domains/ohsDomain/config/fmwconfig/components/OHS/ohs1/directory:
From within this directory, you can navigate around and list (cd /u01/oracle/user_projects/domains/ohsDomain/config/fmwconfig/components/OHS/ohs1/ls) orcatany files you configured using the ConfigMaps. 
Validating the OHS Nodeport
Validate the OHS nodeport by accessing the OHS URL's.
In the examples below, 
                        
                  
                  
                  ${OHS-HOSTNAME} refers to the hostname.domain of
        the server where the OHS nodeport was deployed. ${OHS-NODEPORT} refers to
        the nodePort specified in your ohs-service.yaml, for
        example 31777 for HTTP, or 31443 for HTTPS. 
                     Note:
If OHS is accessed via a loadbalancer, replace${OHS-HOSTNAME} and
            ${OHS-NODEPORT} with the loadbalancer hostname.domain and
        port.
                     If you have any problems accessing the URL’s, refer to Troubleshooting and Common Problems.
-  Launch a browser and access the following: 
                           
Note:
If you have deployed OHS with Oracle WebGate, then it will depend on your policy setup as to whether the URL’s below are accessible or not.- The OHS homepage 
http(s)://${OHS-HOSTNAME}:${OHS-NODEPORT}. - Any other files copied in your 
ohs-htdocsConfigMap, for example:http(s)://${OHS-HOSTNAME}:${OHS-NODEPORT}/mypage.html. - Any files from directories created under 
htdocs, for example theohs-myappConfigMap:http(s)://${OHS-HOSTNAME}:${OHS-NODEPORT}/myapp. - Any URI’s defined for mod_wl_ohs in your 
httpd.conf,ssl.conformoduleconf/*.conffiles, for example:http(s)://${OHS-HOSTNAME}:${OHS-NODEPORT}/console. - If Oracle WebGate is deployed, any protected applications, for
                example:
                
http(s)://${OHS-HOSTNAME}:${OHS-NODEPORT}/myprotectedapp. 
 - The OHS homepage