5.1 Deploying the OHS Nodeport
Create the Kubernetes service nodeport for Oracle HTTP Server (OHS).
To deploy the OHS nodeport:
- Run the following
command:
The output will look similar to the following:kubectl create -f $MYOHSFILES/ohs_service.yaml
service/ohs-domain-nodeport created
- Validate the service has been created by running the
following:
For example:kubectl get service -n <namespace>
The output will look similar to the following:kubectl get service -n ohsns
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.