5.2 Deploying the OHS Container

Create the Oracle HTTP Server (OHS) container on Kubernetes.

  1. To deploy the OHS container run the following command:
    kubectl create -f $MYOHSFILES/ohs.yaml
    The output will look similar to the following:
    configmap/ohs-script-configmap created
    deployment.apps/ohs-domain created
  2. Run the following command to view the status of the pods:
    kubectl get pods -n <namespace> -w
    For example:
    kubectl get pods -n ohsns -w
    Whilst the OHS container is creating you, may see:
    NAME                         READY   STATUS              RESTARTS   AGE
    ohs-domain-d5b648bc5-vkp4s   0/1     ContainerCreating   0          2m13s
    To check what is happening while the pod is in ContainerCreating status, you can run:
    kubectl describe pod <podname> -n <namespace>
    For example:
    kubectl describe pod ohs-domain-d5b648bc5-vkp4s -n ohsns
    Once the container is created, it will go to a READY status of 0/1 with STATUS of Running. For example:
    NAME                         READY   STATUS    RESTARTS   AGE
    ohs-domain-d5b648bc5-vkp4s   1/1     Running   0          3m10s
    To check what is happening while the pod is in this status, you can run:
    kubectl logs -f <pod> -n <namespace>
    For example:
    kubectl logs -f <pod> -n ohsns
    Once everything is started you should see the OHS is running (READY 1/1):
    NAME                         READY   STATUS    RESTARTS   AGE
    ohs-domain-d5b648bc5-vkp4s   1/1     Running   0          4m10s

If there are any failures, see Troubleshooting and Common Problems.