5.2 Deploying the OHS Container
Create the Oracle HTTP Server (OHS) container on Kubernetes.
- To deploy the OHS container run the following
command:
The output will look similar to the following:kubectl create -f $MYOHSFILES/ohs.yaml
configmap/ohs-script-configmap created deployment.apps/ohs-domain created
- Run the following command to view the status of the
pods:
For example:kubectl get pods -n <namespace> -w
Whilst the OHS container is creating you, may see:kubectl get pods -n ohsns -w
To check what is happening while the pod is inNAME READY STATUS RESTARTS AGE ohs-domain-d5b648bc5-vkp4s 0/1 ContainerCreating 0 2m13s
ContainerCreating
status, you can run:
For example:kubectl describe pod <podname> -n <namespace>
Once the container is created, it will go to akubectl describe pod ohs-domain-d5b648bc5-vkp4s -n ohsns
READY
status of0/1
withSTATUS
ofRunning
. For example:
To check what is happening while the pod is in this status, you can run:NAME READY STATUS RESTARTS AGE ohs-domain-d5b648bc5-vkp4s 1/1 Running 0 3m10s
For example:kubectl logs -f <pod> -n <namespace>
Once everything is started you should see the OHS is runningkubectl logs -f <pod> -n ohsns
(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.