In this subsection, we will create a demo project hosting a single httpd pod in order to see first-hand how the overlay network is constructed in OpenShift.
- First, let's create the project:
# oc new-project demo...
- Then, create a pod running Apache web server in the project:
# cat httpd-pod.yml apiVersion: v1kind: Podmetadata: name: httpd labels: role: webspec: containers: - name: httpd image: manageiq/httpd resources: requests: cpu: 400m memory: 128Mi# oc create -f httpd-pod.ymlpod "httpd" created
- We will need the IP address allocated to the pod, as well as the address of the node it was scheduled to:
# oc describe po/httpd | grep '\(Node\|IP\):'Node: 172.24.0.13/172.24.0.13IP: 10.129.0.20
- Another step is to get ...