5.1 Deploying the OHS Nodeport

Create the Kubernetes service nodeport for Oracle HTTP Server (OHS).

To deploy the OHS nodeport:
  1. Run the following command:
     kubectl create -f $MYOHSFILES/ohs_service.yaml
    The output will look similar to the following:
    service/ohs-domain-nodeport created
  2. Validate the service has been created by running the following:
    kubectl get service -n <namespace>
    For example:
    kubectl get service -n ohsns
    The output will look similar to the following:
    NAME                  TYPE       CLUSTER-IP     EXTERNAL-IP   PORT(S)                         AGE
    ohs-domain-nodeport   NodePort   10.98.163.75   <none>        7777:31777/TCP,4443:31443/TCP   22s
Administrators should be aware of the following:
  • As this is a Kubernetes service, the port is accessible on all the worker nodes in the Kubernetes cluster.
  • If in the future you create another OHS container on a different port, you will need to create another nodeport service for that OHS.