4.10 Preparing the ohs_service.yaml File

Prepare the ohs_service.yaml file for the Oracle HTTP Server (OHS) nodeport.

The OHS nodeport is the entry point for OHS. For example http://ohs.example.com:31777 or https://ohs.example.com:31443

Edit the $MYOHSFILES/ohs_service.yaml and make the following changes:
  • <NAMESPACE> to your namespace, for example ohsns.
  • If you want your OHS node port to listen on something other that 31777 and 31443, change accordingly.
  • If you are using your own httpd.conf file and have changed the port to anything other than 7777, you must change the targetPort and port to match.
  • If you are using your own ssl.conf file and have changed the port to anything other than 4443, you must change the targetPort and port to match.
An example ohs_service.yaml is shown below:
kind: Service
apiVersion: v1
metadata:
  name: ohs-domain-nodeport
  namespace: ohsns
spec:
  selector:
    oracle: ohs
  type: NodePort
  ports:
  - port: 7777
    name: http
    targetPort: 7777
    nodePort: 31777
    protocol: TCP
  - port: 4443
    name: https
    targetPort: 4443
    nodePort: 31443
    protocol: TCP