July 2018
Intermediate to advanced
504 pages
11h 34m
English
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.
# oc new-project demo...
# 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
# oc describe po/httpd | grep '\(Node\|IP\):'Node: 172.24.0.13/172.24.0.13IP: 10.129.0.20